Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001027/0.001027, allocations: 93.05 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001781/0.001781, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.8 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2129/0.2129, allocations: 46.2 MB / 345.3 MB, free: 11.38 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0004418/0.0004419, allocations: 8 kB / 419.6 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1329, allocations: 63.56 MB / 483.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002741/0.1357, allocations: 1.997 MB / 485.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.1372, allocations: 0.8648 MB / 486 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.1373, allocations: 11.94 kB / 486 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.1374, allocations: 23.72 kB / 486 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002078/0.1377, allocations: 47.58 kB / 486.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003431/0.138, allocations: 159.8 kB / 486.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003983/0.1384, allocations: 351 kB / 486.6 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002455/0.1387, allocations: 130.1 kB / 486.7 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002028/0.1389, allocations: 119.3 kB / 486.8 MB, free: 428 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001916/0.1391, allocations: 139.2 kB / 487 MB, free: 288 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.173e-05/0.1391, allocations: 12 kB / 487 MB, free: 276 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.893e-05/0.1392, allocations: 28 kB / 487 MB, free: 248 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.694e-05/0.1393, allocations: 55.69 kB / 487.1 MB, free: 192 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.1395, allocations: 172.7 kB / 487.2 MB, free: 12 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004022/0.1399, allocations: 370.8 kB / 487.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1399, allocations: 0 / 487.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1399, allocations: 0 / 487.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.1399, allocations: 4 kB / 487.6 MB, free: 15.64 MB / 366.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.001052/0.141, allocations: 0.5759 MB / 488.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.141, allocations: 12.88 kB / 488.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004712/0.1415, allocations: 88.42 kB / 488.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005744/0.1421, allocations: 363.8 kB / 488.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.372e-05/0.1421, allocations: 24.94 kB / 488.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.073e-05/0.1422, allocations: 40.28 kB / 488.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005852/0.1428, allocations: 276.9 kB / 489 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.1428, allocations: 3.938 kB / 489 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.324e-05/0.1429, allocations: 12 kB / 489 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.1429, allocations: 8 kB / 489 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004903/0.1434, allocations: 206.1 kB / 489.2 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.145, allocations: 0.8461 MB / 490 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004701/0.1455, allocations: 206.8 kB / 490.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/0.1457, allocations: 104.8 kB / 490.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.122e-05/0.1458, allocations: 19.91 kB / 490.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005127/0.1463, allocations: 231.7 kB / 490.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.934e-06/0.1463, allocations: 0 / 490.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009237/0.1472, allocations: 393.1 kB / 491 MB, free: 12.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.1473, allocations: 55.41 kB / 491 MB, free: 12.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003066/0.1476, allocations: 267 kB / 491.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.917e-05/0.1477, allocations: 37.7 kB / 491.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.1478, allocations: 184.5 kB / 491.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.1479, allocations: 102.5 kB / 491.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.243e-05/0.148, allocations: 37.7 kB / 491.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.1482, allocations: 346.8 kB / 492 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/0.1484, allocations: 92.7 kB / 492.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003359/0.1488, allocations: 234.3 kB / 492.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005984/0.1494, allocations: 364.8 kB / 492.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.707e-06/0.1494, allocations: 4 kB / 492.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007409/0.1502, allocations: 388.6 kB / 493 MB, free: 9.855 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.1502, allocations: 8.469 kB / 493 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.1502, allocations: 8 kB / 493.1 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.1502, allocations: 4 kB / 493.1 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003093/0.1506, allocations: 83.83 kB / 493.1 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.1506, allocations: 7.938 kB / 493.1 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001852/0.1508, allocations: 39.67 kB / 493.2 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.929e-05/0.1508, allocations: 20 kB / 493.2 MB, free: 9.688 MB / 366.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_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.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.000203/0.151, allocations: 161.8 kB / 493.4 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.983e-05/0.1511, allocations: 31.66 kB / 493.4 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007363/0.1518, allocations: 340.2 kB / 493.7 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1518, allocations: 0 / 493.7 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.1518, allocations: 7.984 kB / 493.7 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1518, allocations: 0 / 493.7 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.1529, allocations: 0.7285 MB / 494.5 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1529, allocations: 144 / 494.5 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002636/0.1532, allocations: 59.89 kB / 494.5 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.914e-06/0.1532, allocations: 3.984 kB / 494.5 MB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.521e-05/0.1533, allocations: 15.94 kB / 494.5 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.1533, allocations: 4 kB / 494.5 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1533, allocations: 4 kB / 494.5 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009954/0.1543, allocations: 0.5422 MB / 495.1 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.886e-05/0.1544, allocations: 108.7 kB / 495.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.823e-05/0.1544, allocations: 8.062 kB / 495.2 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.1546, allocations: 15.98 kB / 495.2 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.633e-05/0.1547, allocations: 23.97 kB / 495.2 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.981e-05/0.1548, allocations: 15.98 kB / 495.3 MB, free: 7.523 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001942/0.155, allocations: 186 kB / 495.4 MB, free: 7.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.155, allocations: 4 kB / 495.4 MB, free: 7.336 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003823/0.1553, allocations: 71.88 kB / 495.5 MB, free: 7.266 MB / 366.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_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.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.0001409/0.1555, allocations: 119.8 kB / 495.6 MB, free: 7.141 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006113/0.1561, allocations: 283.5 kB / 495.9 MB, free: 6.863 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1561, allocations: 0 / 495.9 MB, free: 6.863 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002675/0.1564, allocations: 128.8 kB / 496 MB, free: 6.738 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003758/0.1568, allocations: 40.88 kB / 496.1 MB, free: 6.699 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.158, allocations: 0.7773 MB / 496.9 MB, free: 5.891 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004933/0.1585, allocations: 0.7841 MB / 497.6 MB, free: 5.074 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001624/0.1587, allocations: 47.22 kB / 497.7 MB, free: 5.027 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.422e-05/0.1588, allocations: 35.42 kB / 497.7 MB, free: 4.992 MB / 366.1 MB Notification: Performance of SimCode: time 2.305e-06/0.1588, allocations: 0 / 497.7 MB, free: 4.992 MB / 366.1 MB Notification: Performance of Templates: time 0.006677/0.1655, allocations: 2.475 MB / 0.4885 GB, free: 2.531 MB / 366.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches