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.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.001763/0.001763, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001696/0.001696, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.517/1.517, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.2464/0.2464, allocations: 44.91 MB / 358.8 MB, free: 6.281 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.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_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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002174/0.002174, allocations: 63.91 kB / 0.4931 GB, free: 10.72 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.358/0.3601, allocations: 65.47 MB / 0.557 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00393/0.3641, allocations: 2.337 MB / 0.5593 GB, free: 5.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00177/0.3658, allocations: 0.9085 MB / 0.5602 GB, free: 4.516 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001405/0.366, allocations: 7.938 kB / 0.5602 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.3661, allocations: 43.47 kB / 0.5602 GB, free: 4.465 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000243/0.3664, allocations: 67.38 kB / 0.5603 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004444/0.3668, allocations: 191.6 kB / 0.5605 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004557/0.3673, allocations: 386.9 kB / 0.5609 GB, free: 3.832 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/0.3675, allocations: 96.58 kB / 0.5609 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002883/0.3678, allocations: 163.3 kB / 0.5611 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002543/0.3681, allocations: 159.2 kB / 0.5613 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.089e-05/0.3681, allocations: 36 kB / 0.5613 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.3682, allocations: 55.97 kB / 0.5613 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.811e-05/0.3683, allocations: 83.64 kB / 0.5614 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.3685, allocations: 175 kB / 0.5616 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005112/0.369, allocations: 412.3 kB / 0.562 GB, free: 2.672 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.369, allocations: 4 kB / 0.562 GB, free: 2.668 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.369, allocations: 0 / 0.562 GB, free: 2.668 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.369, allocations: 0 / 0.562 GB, free: 2.668 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.001348/0.3704, allocations: 0.7327 MB / 0.5627 GB, free: 1.891 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.3704, allocations: 8.031 kB / 0.5627 GB, free: 1.883 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00013/0.3706, allocations: 87.25 kB / 0.5628 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004656/0.371, allocations: 80.61 kB / 0.5629 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000606/0.3716, allocations: 298.9 kB / 0.5632 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.542e-05/0.3717, allocations: 25.02 kB / 0.5632 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.629e-05/0.3717, allocations: 40.38 kB / 0.5632 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005836/0.3723, allocations: 286 kB / 0.5635 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.3723, allocations: 0 / 0.5635 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.587e-05/0.3724, allocations: 15.98 kB / 0.5635 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.3724, allocations: 8 kB / 0.5635 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004501/0.3728, allocations: 198.5 kB / 0.5637 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.3743, allocations: 0.8314 MB / 0.5645 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004255/0.3747, allocations: 186.8 kB / 0.5647 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.375, allocations: 92.75 kB / 0.5648 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.375, allocations: 7.984 kB / 0.5648 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004668/0.3755, allocations: 239.6 kB / 0.565 GB, free: 15.41 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.034e-06/0.3755, allocations: 0 / 0.565 GB, free: 15.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008634/0.3763, allocations: 369.3 kB / 0.5654 GB, free: 15.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.568e-05/0.3764, allocations: 63.41 kB / 0.5654 GB, free: 14.97 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.3767, allocations: 268.2 kB / 0.5657 GB, free: 14.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.185e-05/0.3767, allocations: 33.7 kB / 0.5657 GB, free: 14.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.3769, allocations: 192.9 kB / 0.5659 GB, free: 14.47 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.606e-05/0.377, allocations: 99.16 kB / 0.566 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.3771, allocations: 74.06 kB / 0.5661 GB, free: 14.29 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002505/0.3773, allocations: 350.7 kB / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.3775, allocations: 92.7 kB / 0.5665 GB, free: 13.85 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003175/0.3778, allocations: 226.5 kB / 0.5667 GB, free: 13.57 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005456/0.3784, allocations: 344.8 kB / 0.567 GB, free: 13.17 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.3784, allocations: 7.938 kB / 0.567 GB, free: 13.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006956/0.3791, allocations: 377 kB / 0.5674 GB, free: 12.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.3791, allocations: 8 kB / 0.5674 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.3791, allocations: 4 kB / 0.5674 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.3792, allocations: 8.469 kB / 0.5674 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003097/0.3795, allocations: 79.83 kB / 0.5675 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.3795, allocations: 8 kB / 0.5675 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001915/0.3797, allocations: 31.83 kB / 0.5675 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.44e-05/0.3797, allocations: 27.88 kB / 0.5676 GB, free: 12.62 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.0002037/0.3799, allocations: 162.7 kB / 0.5677 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.148e-05/0.38, allocations: 31.81 kB / 0.5677 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000722/0.3807, allocations: 324.4 kB / 0.5681 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3807, allocations: 3.938 kB / 0.5681 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.3807, allocations: 7.984 kB / 0.5681 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.3807, allocations: 0 / 0.5681 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.3818, allocations: 0.708 MB / 0.5688 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.3818, allocations: 0 / 0.5688 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000259/0.3821, allocations: 47.91 kB / 0.5688 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.3821, allocations: 3.938 kB / 0.5688 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.046e-05/0.3821, allocations: 11.98 kB / 0.5688 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.3821, allocations: 3.938 kB / 0.5688 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.3821, allocations: 0 / 0.5688 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009629/0.3831, allocations: 0.5272 MB / 0.5693 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.035e-05/0.3831, allocations: 31.75 kB / 0.5694 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.298e-05/0.3832, allocations: 12.05 kB / 0.5694 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.3834, allocations: 15.94 kB / 0.5694 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.322e-05/0.3835, allocations: 23.95 kB / 0.5694 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-05/0.3835, allocations: 11.98 kB / 0.5694 GB, free: 10.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002189/0.3837, allocations: 191.1 kB / 0.5696 GB, free: 10.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3837, allocations: 4 kB / 0.5696 GB, free: 10.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000398/0.3841, allocations: 75.78 kB / 0.5697 GB, free: 10.36 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.00129/0.3854, allocations: 1.075 MB / 0.5707 GB, free: 9.258 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005532/0.3859, allocations: 243.6 kB / 0.571 GB, free: 9.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.386, allocations: 4.938 kB / 0.571 GB, free: 9.016 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002483/0.3862, allocations: 124.2 kB / 0.5711 GB, free: 8.895 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003875/0.3866, allocations: 49.31 kB / 0.5711 GB, free: 8.844 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004721/0.3913, allocations: 3.245 MB / 0.5743 GB, free: 5.398 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005707/0.3919, allocations: 0.7998 MB / 0.5751 GB, free: 4.574 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001792/0.3921, allocations: 38.97 kB / 0.5751 GB, free: 4.535 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.3923, allocations: 131.5 kB / 0.5753 GB, free: 4.406 MB / 414.1 MB Notification: Performance of SimCode: time 1.432e-06/0.3923, allocations: 3.938 kB / 0.5753 GB, free: 4.402 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03632/0.4286, allocations: 6.333 MB / 0.5814 GB, free: 14.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.21, allocations: 3.375 kB / 0.5814 GB, free: 14.2 MB / 430.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219736 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.34994466113858]