Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 110.5 kB / 17.32 MB, free: 6.008 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.001029/0.001029, allocations: 193.3 kB / 18.25 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 222.9 MB / 241.9 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2043/0.2043, allocations: 44.18 MB / 336.2 MB, free: 2.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 61.19 kB / 407.9 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1217, allocations: 60.82 MB / 468.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003675/0.1255, allocations: 2.281 MB / 471 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.1267, allocations: 0.7558 MB / 471.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.1269, allocations: 4 kB / 471.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.127, allocations: 23.72 kB / 471.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002053/0.1273, allocations: 47.66 kB / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004343/0.1277, allocations: 127.8 kB / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003328/0.128, allocations: 359.1 kB / 472.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/0.1283, allocations: 132.2 kB / 472.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.1285, allocations: 147.4 kB / 472.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001993/0.1287, allocations: 155.2 kB / 472.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.629e-05/0.1288, allocations: 40 kB / 472.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.86e-05/0.1288, allocations: 32 kB / 472.8 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.438e-05/0.1289, allocations: 91.67 kB / 472.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002099/0.1291, allocations: 163.1 kB / 473 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003536/0.1295, allocations: 363 kB / 473.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1295, allocations: 0 / 473.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1295, allocations: 0 / 473.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.1295, allocations: 0 / 473.4 MB, free: 10.03 MB / 350.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.001211/0.1307, allocations: 0.6304 MB / 474 MB, free: 9.352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.1308, allocations: 12.03 kB / 474 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.764e-05/0.1309, allocations: 36.56 kB / 474.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005369/0.1314, allocations: 331.1 kB / 474.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/0.1315, allocations: 20.94 kB / 474.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.721e-05/0.1316, allocations: 36.38 kB / 474.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005834/0.1321, allocations: 272.9 kB / 474.7 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.1322, allocations: 3.906 kB / 474.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.215e-05/0.1322, allocations: 15.94 kB / 474.7 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.1322, allocations: 4 kB / 474.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004447/0.1327, allocations: 198.1 kB / 474.9 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.1343, allocations: 0.8148 MB / 475.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004561/0.1348, allocations: 198.8 kB / 475.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002158/0.135, allocations: 100.8 kB / 476 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.454e-05/0.1351, allocations: 11.92 kB / 476.1 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000472/0.1356, allocations: 223.7 kB / 476.3 MB, free: 6.984 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.224e-06/0.1356, allocations: 4 kB / 476.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008723/0.1364, allocations: 373.1 kB / 476.6 MB, free: 6.609 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.1365, allocations: 59.41 kB / 476.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/0.1368, allocations: 236.9 kB / 476.9 MB, free: 6.297 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.863e-05/0.1368, allocations: 41.64 kB / 477 MB, free: 6.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.137, allocations: 168.4 kB / 477.1 MB, free: 6.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.596e-05/0.137, allocations: 94.7 kB / 477.2 MB, free: 5.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.943e-05/0.1371, allocations: 78.05 kB / 477.3 MB, free: 5.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.1373, allocations: 338.8 kB / 477.6 MB, free: 5.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.1375, allocations: 84.7 kB / 477.7 MB, free: 5.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.1377, allocations: 234.3 kB / 477.9 MB, free: 5.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004641/0.1382, allocations: 344.8 kB / 478.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1382, allocations: 0 / 478.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006027/0.1388, allocations: 376.6 kB / 478.6 MB, free: 4.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.1388, allocations: 8 kB / 478.7 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.1389, allocations: 4 kB / 478.7 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.1389, allocations: 8 kB / 478.7 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002989/0.1392, allocations: 76.3 kB / 478.7 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/0.1392, allocations: 4 kB / 478.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.1394, allocations: 43.67 kB / 478.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.793e-05/0.1394, allocations: 16 kB / 478.8 MB, free: 4.262 MB / 350.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.0002082/0.1397, allocations: 170.7 kB / 479 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.286e-05/0.1397, allocations: 27.66 kB / 479 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006488/0.1404, allocations: 324.2 kB / 479.3 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.1404, allocations: 7.984 kB / 479.3 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.1404, allocations: 3.984 kB / 479.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1404, allocations: 0 / 479.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009527/0.1414, allocations: 0.7168 MB / 480 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1414, allocations: 0 / 480 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002397/0.1416, allocations: 47.91 kB / 480.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.1416, allocations: 0 / 480.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.1417, allocations: 11.98 kB / 480.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1417, allocations: 4 kB / 480.1 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1417, allocations: 0 / 480.1 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007959/0.1425, allocations: 0.5266 MB / 480.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.126e-05/0.1426, allocations: 100.9 kB / 480.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.025e-05/0.1426, allocations: 12.06 kB / 480.7 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.1428, allocations: 15.98 kB / 480.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.356e-05/0.1429, allocations: 19.97 kB / 480.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/0.1429, allocations: 15.98 kB / 480.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001466/0.1431, allocations: 168.5 kB / 481 MB, free: 2.004 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1431, allocations: 4 kB / 481 MB, free: 2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00036/0.1434, allocations: 67.75 kB / 481 MB, free: 1.934 MB / 350.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.0001445/0.1436, allocations: 118.8 kB / 481.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005875/0.1442, allocations: 280.3 kB / 481.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1442, allocations: 3.938 kB / 481.4 MB, free: 1.535 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002286/0.1444, allocations: 127.8 kB / 481.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003835/0.1448, allocations: 35.95 kB / 481.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.1458, allocations: 0.724 MB / 482.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003279/0.1462, allocations: 0.7841 MB / 483.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001541/0.1463, allocations: 39.23 kB / 483.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.152e-05/0.1464, allocations: 35.42 kB / 483.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1464, allocations: 0 / 483.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of Templates: time 0.005492/0.1519, allocations: 2.427 MB / 485.6 MB, free: 13.32 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches