Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001266/0.001266, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.218/1.218, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007194/0.0007191, allocations: 102.4 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.285/0.285, allocations: 43.56 MB / 363.1 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003431/0.0003432, allocations: 15.98 kB / 432 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08943/0.08979, allocations: 58.86 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002102/0.09192, allocations: 1.849 MB / 492.7 MB, free: 9.023 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.09316, allocations: 0.7569 MB / 493.4 MB, free: 8.258 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.09332, allocations: 7.938 kB / 493.4 MB, free: 8.25 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000108/0.09344, allocations: 23.78 kB / 493.5 MB, free: 8.227 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.09364, allocations: 31.66 kB / 493.5 MB, free: 8.195 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002647/0.09391, allocations: 103.8 kB / 493.6 MB, free: 8.094 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003085/0.09423, allocations: 315.1 kB / 493.9 MB, free: 7.785 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002257/0.09447, allocations: 120.2 kB / 494 MB, free: 7.668 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.09464, allocations: 107.5 kB / 494.1 MB, free: 7.562 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.09481, allocations: 115.4 kB / 494.2 MB, free: 7.449 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.657e-05/0.09486, allocations: 8 kB / 494.2 MB, free: 7.441 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.261e-05/0.0949, allocations: 12 kB / 494.3 MB, free: 7.43 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.069e-05/0.09496, allocations: 51.75 kB / 494.3 MB, free: 7.379 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.09509, allocations: 149 kB / 494.4 MB, free: 7.227 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.09532, allocations: 239.7 kB / 494.7 MB, free: 6.992 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.09534, allocations: 4 kB / 494.7 MB, free: 6.988 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09534, allocations: 0 / 494.7 MB, free: 6.988 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.09536, allocations: 4 kB / 494.7 MB, free: 6.984 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008783/0.09624, allocations: 0.5482 MB / 495.2 MB, free: 6.387 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.09628, allocations: 8.031 kB / 495.2 MB, free: 6.379 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.853e-05/0.09637, allocations: 48.5 kB / 495.3 MB, free: 6.332 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004558/0.09683, allocations: 331.2 kB / 495.6 MB, free: 5.973 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.332e-05/0.09687, allocations: 24.94 kB / 495.6 MB, free: 5.949 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.948e-05/0.09693, allocations: 32.28 kB / 495.7 MB, free: 5.918 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004728/0.09741, allocations: 261 kB / 495.9 MB, free: 5.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.09743, allocations: 0 / 495.9 MB, free: 5.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.09747, allocations: 15.98 kB / 495.9 MB, free: 5.645 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.09748, allocations: 4 kB / 495.9 MB, free: 5.641 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004005/0.09789, allocations: 194.1 kB / 496.1 MB, free: 5.449 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001223/0.09913, allocations: 0.7913 MB / 496.9 MB, free: 4.609 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003916/0.09953, allocations: 210.6 kB / 497.1 MB, free: 4.398 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.09975, allocations: 112.7 kB / 497.2 MB, free: 4.285 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.09978, allocations: 0 / 497.2 MB, free: 4.285 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003965/0.1002, allocations: 243 kB / 497.5 MB, free: 4.035 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 1.784e-06/0.1002, allocations: 0 / 497.5 MB, free: 4.035 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007933/0.101, allocations: 389.2 kB / 497.9 MB, free: 3.648 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.101, allocations: 55.41 kB / 497.9 MB, free: 3.582 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.1013, allocations: 233 kB / 498.1 MB, free: 3.348 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.491e-05/0.1013, allocations: 41.69 kB / 498.2 MB, free: 3.301 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.1014, allocations: 168.5 kB / 498.3 MB, free: 3.133 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.47e-05/0.1015, allocations: 102.7 kB / 498.4 MB, free: 3.031 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.686e-05/0.1015, allocations: 4 kB / 498.4 MB, free: 3.027 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.1016, allocations: 338.8 kB / 498.8 MB, free: 2.688 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001991/0.1019, allocations: 92.7 kB / 498.9 MB, free: 2.594 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002804/0.1021, allocations: 230.4 kB / 499.1 MB, free: 2.309 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004897/0.1026, allocations: 352.8 kB / 499.4 MB, free: 1.902 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.1027, allocations: 4 kB / 499.4 MB, free: 1.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006355/0.1033, allocations: 385 kB / 499.8 MB, free: 1.516 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1033, allocations: 8 kB / 499.8 MB, free: 1.508 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.1033, allocations: 7.938 kB / 499.8 MB, free: 1.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.1034, allocations: 8 kB / 499.8 MB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.1037, allocations: 79.83 kB / 499.9 MB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.1037, allocations: 8 kB / 499.9 MB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001685/0.1038, allocations: 47.67 kB / 500 MB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.443e-05/0.1039, allocations: 12 kB / 500 MB, free: 1.348 MB / 378.7 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,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001662/0.1041, allocations: 169.5 kB / 0.4884 GB, free: 1.172 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.835e-05/0.1041, allocations: 27.72 kB / 0.4885 GB, free: 1.145 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006224/0.1047, allocations: 339.3 kB / 0.4888 GB, free: 0.8086 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.1047, allocations: 4 kB / 0.4888 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1048, allocations: 0 / 0.4888 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.1048, allocations: 3.984 kB / 0.4888 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008942/0.1057, allocations: 0.7167 MB / 0.4895 GB, free: 28 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.1057, allocations: 0 / 0.4895 GB, free: 28 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1528/0.2585, allocations: 50.92 kB / 0.4895 GB, free: 43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.2585, allocations: 3.625 kB / 0.4895 GB, free: 43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.944e-05/0.2586, allocations: 8.938 kB / 0.4895 GB, free: 43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.2586, allocations: 1.766 kB / 0.4896 GB, free: 43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2586, allocations: 1.406 kB / 0.4896 GB, free: 43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.2596, allocations: 0.5346 MB / 0.4901 GB, free: 42.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.846e-05/0.2597, allocations: 112.1 kB / 0.4902 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.694e-05/0.2598, allocations: 9.469 kB / 0.4902 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001912/0.26, allocations: 15.28 kB / 0.4902 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.758e-05/0.2601, allocations: 24.72 kB / 0.4902 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/0.2601, allocations: 16.14 kB / 0.4902 GB, free: 42.78 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001493/0.2603, allocations: 159.8 kB / 0.4904 GB, free: 42.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2603, allocations: 4.609 kB / 0.4904 GB, free: 42.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003893/0.2607, allocations: 68.27 kB / 0.4905 GB, free: 42.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001273/0.2608, allocations: 108.1 kB / 0.4906 GB, free: 42.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000583/0.2614, allocations: 275.2 kB / 0.4908 GB, free: 42.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.2614, allocations: 2.953 kB / 0.4908 GB, free: 42.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.2617, allocations: 138.2 kB / 0.491 GB, free: 42.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000355/0.262, allocations: 37.72 kB / 0.491 GB, free: 42.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009688/0.263, allocations: 0.7246 MB / 0.4917 GB, free: 42.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.2632, allocations: 0.7779 MB / 0.4925 GB, free: 41.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.982e-05/0.2634, allocations: 33.55 kB / 0.4925 GB, free: 41.51 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.2634, allocations: 3 kB / 0.4925 GB, free: 41.51 MB / 378.7 MB Notification: Performance of Templates: time 0.006172/0.2695, allocations: 3.512 MB / 0.4959 GB, free: 41.31 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches