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.002268/0.002273, allocations: 182.7 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.079/2.079, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001384/0.001383, allocations: 90.67 kB / 270.9 MB, free: 8.367 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.5326/0.5326, allocations: 43.55 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006765/0.0006768, allocations: 16 kB / 431.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1591/0.1598, allocations: 58.85 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003224/0.1631, allocations: 1.822 MB / 492 MB, free: 9.398 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.1651, allocations: 0.7569 MB / 492.8 MB, free: 8.633 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001996/0.1653, allocations: 7.938 kB / 492.8 MB, free: 8.625 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.1655, allocations: 23.78 kB / 492.8 MB, free: 8.602 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002689/0.1658, allocations: 47.84 kB / 492.9 MB, free: 8.555 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004052/0.1662, allocations: 103.8 kB / 493 MB, free: 8.453 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003713/0.1666, allocations: 199.6 kB / 493.2 MB, free: 8.258 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002708/0.1669, allocations: 98.61 kB / 493.3 MB, free: 8.168 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.1671, allocations: 103.5 kB / 493.4 MB, free: 8.066 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002414/0.1674, allocations: 119.4 kB / 493.5 MB, free: 7.949 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.435e-05/0.1675, allocations: 8 kB / 493.5 MB, free: 7.941 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.165e-05/0.1675, allocations: 12 kB / 493.5 MB, free: 7.93 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.335e-05/0.1676, allocations: 51.75 kB / 493.5 MB, free: 7.879 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.1677, allocations: 77.52 kB / 493.6 MB, free: 7.797 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003826/0.1681, allocations: 251.6 kB / 493.9 MB, free: 7.551 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1681, allocations: 0 / 493.9 MB, free: 7.551 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1682, allocations: 0 / 493.9 MB, free: 7.551 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1682, allocations: 0 / 493.9 MB, free: 7.551 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.0014/0.1696, allocations: 0.5442 MB / 494.4 MB, free: 6.949 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.1696, allocations: 8.031 kB / 494.4 MB, free: 6.941 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.1698, allocations: 39.58 kB / 494.5 MB, free: 6.902 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007602/0.1705, allocations: 337.9 kB / 494.8 MB, free: 6.535 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.184e-05/0.1706, allocations: 24.5 kB / 494.8 MB, free: 6.512 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.694e-05/0.1707, allocations: 35.94 kB / 494.8 MB, free: 6.477 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008101/0.1715, allocations: 252.8 kB / 495.1 MB, free: 6.227 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.1716, allocations: 3.984 kB / 495.1 MB, free: 6.223 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.101e-05/0.1716, allocations: 16 kB / 495.1 MB, free: 6.207 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.1716, allocations: 4 kB / 495.1 MB, free: 6.203 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007227/0.1724, allocations: 194.1 kB / 495.3 MB, free: 6.016 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002112/0.1745, allocations: 0.7951 MB / 496.1 MB, free: 5.168 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006872/0.1752, allocations: 206.8 kB / 496.3 MB, free: 4.957 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.537e-05/0.1753, allocations: 8.438 kB / 496.3 MB, free: 4.949 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006869/0.176, allocations: 231.1 kB / 496.5 MB, free: 4.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 3.517e-06/0.176, allocations: 0 / 496.5 MB, free: 4.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.001379/0.1774, allocations: 385.2 kB / 496.9 MB, free: 4.328 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.1775, allocations: 55.41 kB / 497 MB, free: 4.262 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003589/0.1778, allocations: 236.9 kB / 497.2 MB, free: 4.023 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.876e-05/0.1779, allocations: 41.69 kB / 497.2 MB, free: 3.977 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.1781, allocations: 223 kB / 497.5 MB, free: 3.758 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.1783, allocations: 94.7 kB / 497.5 MB, free: 3.664 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.558e-05/0.1783, allocations: 4 kB / 497.6 MB, free: 3.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1785, allocations: 330.8 kB / 497.9 MB, free: 3.328 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003695/0.1789, allocations: 92.7 kB / 498 MB, free: 3.234 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004805/0.1793, allocations: 234.2 kB / 498.2 MB, free: 2.945 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004453/0.1798, allocations: 127.9 kB / 498.3 MB, free: 2.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.1798, allocations: 4 kB / 498.3 MB, free: 2.816 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001104/0.1809, allocations: 361.3 kB / 498.7 MB, free: 2.457 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.181, allocations: 8.094 kB / 498.7 MB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.181, allocations: 7.938 kB / 498.7 MB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.762e-05/0.181, allocations: 8 kB / 498.7 MB, free: 2.434 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00055/0.1816, allocations: 79.83 kB / 498.8 MB, free: 2.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.966e-05/0.1816, allocations: 11.98 kB / 498.8 MB, free: 2.344 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003173/0.182, allocations: 39.73 kB / 498.8 MB, free: 2.305 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/0.182, allocations: 20 kB / 498.8 MB, free: 2.285 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.0003068/0.1823, allocations: 173.5 kB / 499 MB, free: 2.105 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.515e-05/0.1824, allocations: 23.72 kB / 499 MB, free: 2.082 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001097/0.1835, allocations: 335.3 kB / 499.4 MB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.1836, allocations: 4 kB / 499.4 MB, free: 1.746 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1836, allocations: 0 / 499.4 MB, free: 1.746 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.1836, allocations: 0 / 499.4 MB, free: 1.746 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001532/0.1851, allocations: 0.7206 MB / 0.4884 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1852, allocations: 0 / 0.4884 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005038/0.1857, allocations: 63.89 kB / 0.4884 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.1857, allocations: 0 / 0.4884 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.491e-05/0.1857, allocations: 8 kB / 0.4884 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.1858, allocations: 0 / 0.4884 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1858, allocations: 3.938 kB / 0.4884 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/0.1873, allocations: 0.5346 MB / 0.489 GB, free: 352 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.1874, allocations: 104.7 kB / 0.4891 GB, free: 228 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.139e-05/0.1875, allocations: 12.06 kB / 0.4891 GB, free: 216 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003097/0.1878, allocations: 19.98 kB / 0.4891 GB, free: 196 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.767e-05/0.1879, allocations: 19.97 kB / 0.4891 GB, free: 176 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.541e-05/0.188, allocations: 15.98 kB / 0.4891 GB, free: 160 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.3213/0.5093, allocations: 160.9 kB / 0.4893 GB, free: 42.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.82e-07/0.5093, allocations: 2.531 kB / 0.4893 GB, free: 42.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006397/0.51, allocations: 65.5 kB / 0.4893 GB, free: 42.97 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.0002322/0.5102, allocations: 115.6 kB / 0.4895 GB, free: 42.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.5113, allocations: 267.5 kB / 0.4897 GB, free: 42.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/0.5114, allocations: 0 / 0.4897 GB, free: 42.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005104/0.5119, allocations: 139.9 kB / 0.4898 GB, free: 42.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.5123, allocations: 37.02 kB / 0.4899 GB, free: 42.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001598/0.514, allocations: 0.7208 MB / 0.4906 GB, free: 42.49 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.5143, allocations: 0.793 MB / 0.4914 GB, free: 41.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002032/0.5146, allocations: 33.97 kB / 0.4914 GB, free: 41.78 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5146, allocations: 0 / 0.4914 GB, free: 41.78 MB / 378.7 MB Notification: Performance of Templates: time 0.01064/0.5252, allocations: 3.454 MB / 0.4948 GB, free: 41.61 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/jenkins1/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