Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 210.4 kB / 23.73 MB, free: 4.41 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.494/1.494, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2764/0.2764, allocations: 46.95 MB / 360.9 MB, free: 4.152 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 59.84 kB / 0.4961 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3837/0.3858, allocations: 66.05 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003611/0.3894, allocations: 2.178 MB / 0.5627 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.391, allocations: 0.8658 MB / 0.5636 GB, free: 1.188 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.3911, allocations: 7.938 kB / 0.5636 GB, free: 1.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.3913, allocations: 35.53 kB / 0.5636 GB, free: 1.145 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002341/0.3915, allocations: 71.31 kB / 0.5637 GB, free: 1.074 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004142/0.3919, allocations: 187.7 kB / 0.5638 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004288/0.3924, allocations: 390.9 kB / 0.5642 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000223/0.3926, allocations: 96.56 kB / 0.5643 GB, free: 420 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.3928, allocations: 151.4 kB / 0.5645 GB, free: 268 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002374/0.3931, allocations: 155.1 kB / 0.5646 GB, free: 112 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.05e-05/0.3931, allocations: 36 kB / 0.5646 GB, free: 76 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.809e-05/0.3932, allocations: 44 kB / 0.5647 GB, free: 32 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.3933, allocations: 95.61 kB / 0.5648 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001525/0.3935, allocations: 131.3 kB / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004795/0.394, allocations: 428.2 kB / 0.5653 GB, free: 15.39 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.394, allocations: 0 / 0.5653 GB, free: 15.39 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.394, allocations: 0 / 0.5653 GB, free: 15.39 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.394, allocations: 0 / 0.5653 GB, free: 15.39 MB / 414.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.001279/0.3953, allocations: 0.7228 MB / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.3953, allocations: 12.03 kB / 0.566 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000116/0.3954, allocations: 79.27 kB / 0.5661 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000446/0.3959, allocations: 80.61 kB / 0.5662 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005733/0.3964, allocations: 303 kB / 0.5665 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.3965, allocations: 33.03 kB / 0.5665 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.46e-05/0.3965, allocations: 28.38 kB / 0.5665 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005554/0.3971, allocations: 293.9 kB / 0.5668 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.3971, allocations: 4 kB / 0.5668 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.096e-05/0.3971, allocations: 11.98 kB / 0.5668 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.3971, allocations: 8 kB / 0.5668 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004593/0.3976, allocations: 198.5 kB / 0.567 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001445/0.399, allocations: 0.7496 MB / 0.5677 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004185/0.3995, allocations: 186.8 kB / 0.5679 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002166/0.3997, allocations: 92.81 kB / 0.568 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/0.3997, allocations: 4 kB / 0.568 GB, free: 12.47 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004337/0.4001, allocations: 223.7 kB / 0.5682 GB, free: 12.24 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.873e-06/0.4001, allocations: 0 / 0.5682 GB, free: 12.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008515/0.401, allocations: 385.2 kB / 0.5686 GB, free: 11.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.401, allocations: 59.41 kB / 0.5687 GB, free: 11.79 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000291/0.4013, allocations: 268.2 kB / 0.5689 GB, free: 11.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/0.4014, allocations: 33.7 kB / 0.5689 GB, free: 11.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.4015, allocations: 196.9 kB / 0.5691 GB, free: 11.28 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.746e-05/0.4016, allocations: 99.16 kB / 0.5692 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.4017, allocations: 74.06 kB / 0.5693 GB, free: 11.1 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.4019, allocations: 346.8 kB / 0.5696 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002214/0.4021, allocations: 96.69 kB / 0.5697 GB, free: 10.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003278/0.4024, allocations: 222.6 kB / 0.5699 GB, free: 10.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005899/0.403, allocations: 352.7 kB / 0.5703 GB, free: 9.977 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.403, allocations: 0 / 0.5703 GB, free: 9.977 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007029/0.4037, allocations: 380.9 kB / 0.5706 GB, free: 9.598 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.4038, allocations: 11.98 kB / 0.5706 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/0.4038, allocations: 4.469 kB / 0.5706 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.4038, allocations: 8 kB / 0.5707 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002995/0.4041, allocations: 71.94 kB / 0.5707 GB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/0.4041, allocations: 15.92 kB / 0.5707 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001781/0.4043, allocations: 31.84 kB / 0.5708 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.099e-05/0.4043, allocations: 27.86 kB / 0.5708 GB, free: 9.43 MB / 414.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.0001903/0.4045, allocations: 165.7 kB / 0.571 GB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.865e-05/0.4045, allocations: 27.81 kB / 0.571 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006945/0.4052, allocations: 328.3 kB / 0.5713 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.4052, allocations: 4 kB / 0.5713 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.4053, allocations: 0 / 0.5713 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.4053, allocations: 3.984 kB / 0.5713 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.4063, allocations: 0.669 MB / 0.572 GB, free: 8.172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.4063, allocations: 4 kB / 0.572 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002773/0.4066, allocations: 51.91 kB / 0.572 GB, free: 8.117 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.4066, allocations: 4 kB / 0.572 GB, free: 8.113 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.634e-05/0.4066, allocations: 7.984 kB / 0.572 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.4066, allocations: 7.938 kB / 0.572 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.4066, allocations: 0 / 0.572 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009396/0.4075, allocations: 0.5234 MB / 0.5725 GB, free: 7.559 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.731e-05/0.4076, allocations: 31.88 kB / 0.5726 GB, free: 7.527 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.977e-05/0.4076, allocations: 12.06 kB / 0.5726 GB, free: 7.516 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000189/0.4078, allocations: 19.91 kB / 0.5726 GB, free: 7.496 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.015e-05/0.4079, allocations: 27.89 kB / 0.5726 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/0.4079, allocations: 12.12 kB / 0.5726 GB, free: 7.457 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001933/0.4081, allocations: 191.1 kB / 0.5728 GB, free: 7.273 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4081, allocations: 0 / 0.5728 GB, free: 7.273 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003846/0.4085, allocations: 75.78 kB / 0.5729 GB, free: 7.199 MB / 414.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.001268/0.4098, allocations: 1.084 MB / 0.5739 GB, free: 6.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005513/0.4103, allocations: 248.9 kB / 0.5742 GB, free: 5.848 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4103, allocations: 0 / 0.5742 GB, free: 5.848 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002583/0.4106, allocations: 123.9 kB / 0.5743 GB, free: 5.727 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003672/0.411, allocations: 41.09 kB / 0.5743 GB, free: 5.684 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004414/0.4154, allocations: 3.249 MB / 0.5775 GB, free: 2.238 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/0.4156, allocations: 191.3 kB / 0.5777 GB, free: 2.027 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001597/0.4157, allocations: 47.22 kB / 0.5777 GB, free: 1.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002261/0.416, allocations: 127.4 kB / 0.5779 GB, free: 1.855 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.416, allocations: 0 / 0.5779 GB, free: 1.855 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03609/0.4521, allocations: 6.711 MB / 0.5844 GB, free: 11.3 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.98, allocations: 11.06 kB / 0.5844 GB, free: 11.3 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable Time from file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.x in file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.141077009961009]