Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 103 kB / 16.27 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00191/0.00191, allocations: 190.1 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.845/1.845, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2428/0.2428, allocations: 43.52 MB / 313.9 MB, free: 0.5117 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 73.97 kB / 382.7 MB, free: 56.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1257, allocations: 57.8 MB / 440.5 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00436/0.1301, allocations: 2.202 MB / 442.7 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.1318, allocations: 0.815 MB / 443.5 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003214/0.1322, allocations: 4 kB / 443.5 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.1324, allocations: 35.48 kB / 443.6 MB, free: 3.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003205/0.1328, allocations: 55.45 kB / 443.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004004/0.1332, allocations: 147.7 kB / 443.8 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003189/0.1335, allocations: 351.1 kB / 444.1 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003042/0.1338, allocations: 141.8 kB / 444.3 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/0.134, allocations: 135.4 kB / 444.4 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001746/0.1342, allocations: 147.3 kB / 444.5 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.599e-05/0.1343, allocations: 36 kB / 444.6 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.779e-05/0.1343, allocations: 32 kB / 444.6 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.281e-05/0.1344, allocations: 83.69 kB / 444.7 MB, free: 2.688 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.1345, allocations: 163.1 kB / 444.8 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003064/0.1348, allocations: 346.9 kB / 445.2 MB, free: 2.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1348, allocations: 4 kB / 445.2 MB, free: 2.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1348, allocations: 0 / 445.2 MB, free: 2.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.1349, allocations: 0 / 445.2 MB, free: 2.184 MB / 318.1 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.001058/0.1359, allocations: 0.6066 MB / 445.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.875e-05/0.136, allocations: 15.89 kB / 445.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.371e-05/0.1361, allocations: 36.56 kB / 445.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.1365, allocations: 327.2 kB / 446.2 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.1366, allocations: 24.94 kB / 446.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.259e-05/0.1366, allocations: 32.28 kB / 446.2 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004553/0.1371, allocations: 260.9 kB / 446.5 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.1371, allocations: 0 / 446.5 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.044e-05/0.1372, allocations: 12 kB / 446.5 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.1372, allocations: 8 kB / 446.5 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003794/0.1376, allocations: 186.1 kB / 446.7 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.1389, allocations: 0.7794 MB / 447.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005115/0.1394, allocations: 202.8 kB / 447.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002401/0.1396, allocations: 97.67 kB / 447.7 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.34e-05/0.1397, allocations: 15.97 kB / 447.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005197/0.1402, allocations: 231 kB / 448 MB, free: 15.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 2.504e-06/0.1402, allocations: 0 / 448 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009717/0.1412, allocations: 370 kB / 448.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.914e-05/0.1413, allocations: 55.41 kB / 448.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003102/0.1416, allocations: 233 kB / 448.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.87e-05/0.1417, allocations: 37.7 kB / 448.7 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.1419, allocations: 164.6 kB / 448.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.142, allocations: 102.5 kB / 448.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.1421, allocations: 78.06 kB / 449 MB, free: 14.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1423, allocations: 334.8 kB / 449.3 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001995/0.1425, allocations: 88.69 kB / 449.4 MB, free: 13.72 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000295/0.1428, allocations: 234.3 kB / 449.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005141/0.1433, allocations: 340.8 kB / 450 MB, free: 13.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1433, allocations: 4 kB / 450 MB, free: 13.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006575/0.144, allocations: 369.2 kB / 450.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.144, allocations: 12 kB / 450.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-05/0.144, allocations: 11.92 kB / 450.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.144, allocations: 4 kB / 450.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002837/0.1443, allocations: 67.91 kB / 450.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.451e-05/0.1444, allocations: 15.92 kB / 450.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001916/0.1446, allocations: 31.84 kB / 450.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.1446, allocations: 19.98 kB / 450.5 MB, free: 12.51 MB / 334.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,mean.y,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean2.y,$PRE.harmonic.mean2.y,harmonic.mean1.y,$PRE.harmonic.mean1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000219/0.1448, allocations: 165.7 kB / 450.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.858e-05/0.1449, allocations: 31.62 kB / 450.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006847/0.1456, allocations: 319.5 kB / 451 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.1456, allocations: 7.984 kB / 451 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1456, allocations: 0 / 451 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1456, allocations: 4 kB / 451 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.1467, allocations: 0.7128 MB / 451.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1467, allocations: 0 / 451.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.147, allocations: 43.97 kB / 451.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.147, allocations: 0 / 451.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.235e-05/0.1471, allocations: 15.98 kB / 451.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.1471, allocations: 0 / 451.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.1471, allocations: 7.938 kB / 451.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008647/0.148, allocations: 0.5261 MB / 452.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.075e-05/0.148, allocations: 104.8 kB / 452.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.1481, allocations: 8 kB / 452.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.1483, allocations: 15.98 kB / 452.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.852e-05/0.1483, allocations: 23.97 kB / 452.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.368e-05/0.1484, allocations: 15.98 kB / 452.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00016/0.1485, allocations: 164.5 kB / 452.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1485, allocations: 0 / 452.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003921/0.1489, allocations: 67.84 kB / 452.7 MB, free: 10.19 MB / 334.1 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 (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.0001577/0.1491, allocations: 123.4 kB / 452.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006324/0.1497, allocations: 279.5 kB / 453.1 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1498, allocations: 0 / 453.1 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002482/0.15, allocations: 132.8 kB / 453.2 MB, free: 9.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003637/0.1504, allocations: 32.36 kB / 453.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.1515, allocations: 0.5989 MB / 453.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004895/0.152, allocations: 0.784 MB / 454.7 MB, free: 8.195 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001582/0.1522, allocations: 43.22 kB / 454.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.413e-05/0.1523, allocations: 27.44 kB / 454.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1523, allocations: 0 / 454.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of Templates: time 0.006787/0.1591, allocations: 2.506 MB / 457.2 MB, free: 5.633 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches