Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001948/0.001948, allocations: 112.4 kB / 21.1 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001908/0.001908, allocations: 189.5 kB / 24.36 MB, free: 4.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 225.6 MB / 253.1 MB, free: 13.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2199/0.2199, allocations: 44.9 MB / 353.2 MB, free: 11.89 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 63.89 kB / 496.8 MB, free: 1.648 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.3376, allocations: 64.29 MB / 0.5479 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003802/0.3414, allocations: 2.266 MB / 0.5501 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.3432, allocations: 0.7845 MB / 0.5509 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.3433, allocations: 8.25 kB / 0.5509 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.3435, allocations: 31.61 kB / 0.551 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002504/0.3438, allocations: 68 kB / 0.551 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003363/0.3441, allocations: 150.4 kB / 0.5512 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003947/0.3445, allocations: 371.4 kB / 0.5515 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002227/0.3447, allocations: 92.52 kB / 0.5516 GB, free: 9.984 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.3449, allocations: 153 kB / 0.5517 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002269/0.3452, allocations: 151.9 kB / 0.5519 GB, free: 9.773 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.886e-05/0.3452, allocations: 35.69 kB / 0.5519 GB, free: 9.773 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.539e-05/0.3453, allocations: 33.41 kB / 0.552 GB, free: 9.773 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.3454, allocations: 85.52 kB / 0.552 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001743/0.3456, allocations: 159.3 kB / 0.5522 GB, free: 9.582 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004655/0.346, allocations: 386.4 kB / 0.5526 GB, free: 9.289 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.346, allocations: 0 / 0.5526 GB, free: 9.289 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.346, allocations: 1.531 kB / 0.5526 GB, free: 9.289 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.346, allocations: 0 / 0.5526 GB, free: 9.289 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001364/0.3474, allocations: 0.6967 MB / 0.5532 GB, free: 8.699 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.3475, allocations: 10.39 kB / 0.5533 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001256/0.3476, allocations: 82.77 kB / 0.5533 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.639e-05/0.3477, allocations: 41.55 kB / 0.5534 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005515/0.3482, allocations: 281.8 kB / 0.5536 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.892e-05/0.3482, allocations: 29.8 kB / 0.5537 GB, free: 8.344 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.362e-05/0.3483, allocations: 36.28 kB / 0.5537 GB, free: 8.332 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005797/0.3489, allocations: 285.7 kB / 0.554 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.3489, allocations: 1.062 kB / 0.554 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.832e-05/0.349, allocations: 19.61 kB / 0.554 GB, free: 8.141 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.349, allocations: 6.344 kB / 0.554 GB, free: 8.141 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004686/0.3494, allocations: 201.9 kB / 0.5542 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001489/0.3509, allocations: 0.783 MB / 0.555 GB, free: 7.418 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004446/0.3514, allocations: 193 kB / 0.5551 GB, free: 7.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002136/0.3516, allocations: 89.09 kB / 0.5552 GB, free: 7.262 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.3516, allocations: 10.47 kB / 0.5552 GB, free: 7.254 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004475/0.3521, allocations: 225.2 kB / 0.5555 GB, free: 7.105 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.063e-06/0.3521, allocations: 3.938 kB / 0.5555 GB, free: 7.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008828/0.3529, allocations: 378.2 kB / 0.5558 GB, free: 6.914 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.353, allocations: 56.5 kB / 0.5559 GB, free: 6.852 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002534/0.3532, allocations: 230 kB / 0.5561 GB, free: 6.684 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.385e-05/0.3533, allocations: 40.72 kB / 0.5561 GB, free: 6.641 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.3534, allocations: 181.9 kB / 0.5563 GB, free: 6.477 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.252e-05/0.3535, allocations: 103.3 kB / 0.5564 GB, free: 6.387 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.3536, allocations: 77.75 kB / 0.5565 GB, free: 6.328 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.3538, allocations: 345.6 kB / 0.5568 GB, free: 5.988 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.354, allocations: 84.23 kB / 0.5569 GB, free: 5.953 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003177/0.3543, allocations: 225.3 kB / 0.5571 GB, free: 5.734 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005807/0.3549, allocations: 337.2 kB / 0.5574 GB, free: 5.461 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.3549, allocations: 4 kB / 0.5574 GB, free: 5.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007059/0.3556, allocations: 378.1 kB / 0.5578 GB, free: 5.086 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.3556, allocations: 15.94 kB / 0.5578 GB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.3556, allocations: 4 kB / 0.5578 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.3557, allocations: 4 kB / 0.5578 GB, free: 5.062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003081/0.356, allocations: 71.89 kB / 0.5579 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.426e-05/0.356, allocations: 11.94 kB / 0.5579 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.3562, allocations: 35.83 kB / 0.5579 GB, free: 4.945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.171e-05/0.3562, allocations: 19.94 kB / 0.5579 GB, free: 4.926 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001926/0.3564, allocations: 174.7 kB / 0.5581 GB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.7e-05/0.3564, allocations: 23.86 kB / 0.5581 GB, free: 4.723 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007104/0.3572, allocations: 324.2 kB / 0.5584 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.3572, allocations: 12.08 kB / 0.5585 GB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.3572, allocations: 3.984 kB / 0.5585 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3572, allocations: 3.984 kB / 0.5585 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.3582, allocations: 0.6925 MB / 0.5591 GB, free: 3.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.3582, allocations: 0 / 0.5591 GB, free: 3.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002794/0.3585, allocations: 47.91 kB / 0.5592 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.3585, allocations: 4 kB / 0.5592 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.738e-05/0.3585, allocations: 7.984 kB / 0.5592 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.337e-06/0.3585, allocations: 7.938 kB / 0.5592 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3585, allocations: 0 / 0.5592 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009362/0.3595, allocations: 0.5229 MB / 0.5597 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.37e-05/0.3595, allocations: 27.75 kB / 0.5597 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.259e-05/0.3596, allocations: 12.06 kB / 0.5598 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.3598, allocations: 15.92 kB / 0.5598 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.127e-05/0.3598, allocations: 27.95 kB / 0.5598 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.7e-05/0.3598, allocations: 15.98 kB / 0.5598 GB, free: 2.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001977/0.36, allocations: 168.5 kB / 0.56 GB, free: 2.766 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.36, allocations: 0 / 0.56 GB, free: 2.766 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003719/0.3604, allocations: 71.78 kB / 0.56 GB, free: 2.695 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.y_last) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001288/0.3617, allocations: 1.071 MB / 0.5611 GB, free: 1.602 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005789/0.3623, allocations: 249.1 kB / 0.5613 GB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.3623, allocations: 4.062 kB / 0.5613 GB, free: 1.355 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002602/0.3625, allocations: 123.7 kB / 0.5614 GB, free: 1.234 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003539/0.3629, allocations: 44.56 kB / 0.5615 GB, free: 1.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004318/0.3672, allocations: 3.088 MB / 0.5645 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.3677, allocations: 0.7881 MB / 0.5653 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001527/0.3678, allocations: 47.22 kB / 0.5653 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001923/0.368, allocations: 111.4 kB / 0.5654 GB, free: 12.93 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.368, allocations: 0 / 0.5654 GB, free: 12.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03189/0.3999, allocations: 5.757 MB / 0.571 GB, free: 7.266 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.42/8.82, allocations: 0 / 0.571 GB, free: 7.266 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219736 ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mean.x in file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.y in file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.y from file ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.770173315890133]