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.001094/0.001094, allocations: 177.5 kB / 16.41 MB, free: 5.707 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.764/1.764, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0008067/0.0008067, allocations: 88.95 kB / 270.9 MB, free: 8.352 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.4128/0.4128, allocations: 43.56 MB / 362.7 MB, free: 51.85 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003867/0.0003869, allocations: 12 kB / 431.4 MB, free: 5.938 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1371, allocations: 58.85 MB / 490.2 MB, free: 11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002504/0.1397, allocations: 1.841 MB / 492.1 MB, free: 9.148 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.141, allocations: 0.7608 MB / 492.8 MB, free: 8.379 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.1411, allocations: 7.938 kB / 492.8 MB, free: 8.371 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.1412, allocations: 19.78 kB / 492.9 MB, free: 8.352 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002061/0.1414, allocations: 43.59 kB / 492.9 MB, free: 8.309 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002576/0.1417, allocations: 99.86 kB / 493 MB, free: 8.211 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003608/0.1421, allocations: 311.1 kB / 493.3 MB, free: 7.906 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002316/0.1423, allocations: 98.62 kB / 493.4 MB, free: 7.816 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.1425, allocations: 103.5 kB / 493.5 MB, free: 7.715 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.1427, allocations: 115.3 kB / 493.6 MB, free: 7.602 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.141e-05/0.1427, allocations: 12 kB / 493.6 MB, free: 7.59 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.132e-05/0.1428, allocations: 8 kB / 493.6 MB, free: 7.582 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.743e-05/0.1428, allocations: 55.75 kB / 493.7 MB, free: 7.527 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.748e-05/0.1429, allocations: 69.58 kB / 493.8 MB, free: 7.453 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002436/0.1432, allocations: 247.7 kB / 494 MB, free: 7.211 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.1432, allocations: 8 kB / 494 MB, free: 7.203 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1432, allocations: 0 / 494 MB, free: 7.203 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1432, allocations: 0 / 494 MB, free: 7.203 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.0009952/0.1442, allocations: 0.552 MB / 494.6 MB, free: 6.598 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.1442, allocations: 11.97 kB / 494.6 MB, free: 6.586 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.884e-05/0.1443, allocations: 39.58 kB / 494.6 MB, free: 6.547 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004942/0.1448, allocations: 326 kB / 494.9 MB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/0.1449, allocations: 24.56 kB / 494.9 MB, free: 6.168 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.235e-05/0.1449, allocations: 31.98 kB / 495 MB, free: 6.137 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005045/0.1455, allocations: 260.8 kB / 495.2 MB, free: 5.879 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.1455, allocations: 4 kB / 495.2 MB, free: 5.875 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/0.1455, allocations: 8 kB / 495.2 MB, free: 5.867 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.1455, allocations: 11.94 kB / 495.3 MB, free: 5.855 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004318/0.146, allocations: 202 kB / 495.5 MB, free: 5.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.1473, allocations: 0.7834 MB / 496.2 MB, free: 4.824 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004089/0.1477, allocations: 214.8 kB / 496.4 MB, free: 4.605 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.1479, allocations: 112.7 kB / 496.6 MB, free: 4.492 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.504e-05/0.148, allocations: 7.984 kB / 496.6 MB, free: 4.484 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004259/0.1484, allocations: 231.1 kB / 496.8 MB, free: 4.246 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 2.104e-06/0.1484, allocations: 0 / 496.8 MB, free: 4.246 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.000806/0.1492, allocations: 381.2 kB / 497.2 MB, free: 3.867 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/0.1493, allocations: 63.34 kB / 497.2 MB, free: 3.793 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002388/0.1495, allocations: 228.9 kB / 497.5 MB, free: 3.562 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.316e-05/0.1496, allocations: 41.7 kB / 497.5 MB, free: 3.516 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.1497, allocations: 172.5 kB / 497.7 MB, free: 3.344 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.377e-05/0.1498, allocations: 90.7 kB / 497.7 MB, free: 3.254 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.696e-05/0.1498, allocations: 8 kB / 497.8 MB, free: 3.246 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1499, allocations: 342.8 kB / 498.1 MB, free: 2.902 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.1502, allocations: 88.7 kB / 498.2 MB, free: 2.812 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002858/0.1505, allocations: 238.3 kB / 498.4 MB, free: 2.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002458/0.1507, allocations: 127.8 kB / 498.5 MB, free: 2.395 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1507, allocations: 0 / 498.5 MB, free: 2.395 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006327/0.1514, allocations: 381.2 kB / 498.9 MB, free: 2.016 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.123e-05/0.1514, allocations: 10.34 kB / 498.9 MB, free: 2.008 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.1514, allocations: 4 kB / 498.9 MB, free: 2.004 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.1514, allocations: 8 kB / 498.9 MB, free: 1.996 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002927/0.1517, allocations: 75.89 kB / 499 MB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.1518, allocations: 11.94 kB / 499 MB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001717/0.1519, allocations: 43.77 kB / 499.1 MB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.766e-05/0.152, allocations: 19.94 kB / 499.1 MB, free: 1.848 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.0001764/0.1522, allocations: 169.5 kB / 499.2 MB, free: 1.672 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.025e-05/0.1522, allocations: 23.72 kB / 499.3 MB, free: 1.648 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000658/0.1529, allocations: 339.2 kB / 499.6 MB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1529, allocations: 4 kB / 499.6 MB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.1529, allocations: 0 / 499.6 MB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.1529, allocations: 0 / 499.6 MB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000931/0.1538, allocations: 0.7206 MB / 0.4886 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1539, allocations: 0 / 0.4886 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003177/0.1542, allocations: 51.95 kB / 0.4886 GB, free: 492 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.1542, allocations: 4 kB / 0.4886 GB, free: 488 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.1542, allocations: 8 kB / 0.4887 GB, free: 480 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.1542, allocations: 0 / 0.4887 GB, free: 480 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.1543, allocations: 7.938 kB / 0.4887 GB, free: 472 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2245/0.3788, allocations: 0.5344 MB / 0.4892 GB, free: 42.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.3789, allocations: 106 kB / 0.4893 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.237e-05/0.379, allocations: 8.688 kB / 0.4893 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002233/0.3792, allocations: 19.02 kB / 0.4893 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.416e-05/0.3793, allocations: 27.36 kB / 0.4893 GB, free: 42.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.924e-05/0.3794, allocations: 13.48 kB / 0.4894 GB, free: 42.78 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001717/0.3795, allocations: 162.8 kB / 0.4895 GB, free: 42.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3796, allocations: 0 / 0.4895 GB, free: 42.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005065/0.3801, allocations: 67 kB / 0.4896 GB, free: 42.71 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.0001342/0.3802, allocations: 116.5 kB / 0.4897 GB, free: 42.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006167/0.3808, allocations: 276.8 kB / 0.4899 GB, free: 42.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3808, allocations: 0 / 0.4899 GB, free: 42.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002756/0.3811, allocations: 134.1 kB / 0.4901 GB, free: 42.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003703/0.3815, allocations: 43.67 kB / 0.4901 GB, free: 42.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.3826, allocations: 0.7247 MB / 0.4908 GB, free: 42.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002385/0.3829, allocations: 0.7802 MB / 0.4916 GB, free: 41.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.438e-05/0.383, allocations: 32.58 kB / 0.4916 GB, free: 41.52 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.383, allocations: 0 / 0.4916 GB, free: 41.52 MB / 378.7 MB Notification: Performance of Templates: time 0.005963/0.3889, allocations: 3.511 MB / 0.495 GB, free: 41.33 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