Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001802/0.001802, allocations: 104.2 kB / 17.2 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001518/0.001518, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.3 MB, free: 10.85 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2295/0.2295, allocations: 46.1 MB / 343.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 80.88 kB / 416.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1228, allocations: 62.44 MB / 479.3 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00527/0.1281, allocations: 2.363 MB / 481.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.13, allocations: 0.8881 MB / 482.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002525/0.1303, allocations: 7.938 kB / 482.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.1305, allocations: 19.8 kB / 482.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003116/0.1309, allocations: 47.58 kB / 482.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005056/0.1314, allocations: 171.7 kB / 482.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004559/0.1319, allocations: 355 kB / 483.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002809/0.1321, allocations: 122.1 kB / 483.2 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003118/0.1325, allocations: 135.4 kB / 483.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.1327, allocations: 155.1 kB / 483.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.897e-05/0.1328, allocations: 20 kB / 483.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.133, allocations: 32 kB / 483.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.1331, allocations: 75.61 kB / 483.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.1333, allocations: 151.1 kB / 483.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.1337, allocations: 382.9 kB / 484.2 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.1337, allocations: 4 kB / 484.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1337, allocations: 0 / 484.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.447e-05/0.1337, allocations: 0 / 484.2 MB, free: 0.8242 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.00131/0.1351, allocations: 0.6538 MB / 484.8 MB, free: 128 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.1351, allocations: 12.88 kB / 484.8 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004883/0.1356, allocations: 80.33 kB / 484.9 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000576/0.1362, allocations: 351.8 kB / 485.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.1362, allocations: 24.92 kB / 485.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.765e-05/0.1363, allocations: 36.38 kB / 485.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000548/0.1369, allocations: 272.9 kB / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.1369, allocations: 4 kB / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.1369, allocations: 12 kB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.1369, allocations: 4 kB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004573/0.1374, allocations: 198.1 kB / 485.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001522/0.1389, allocations: 0.8343 MB / 486.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004416/0.1394, allocations: 206.8 kB / 486.8 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002112/0.1396, allocations: 92.81 kB / 486.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.713e-05/0.1397, allocations: 7.938 kB / 486.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004457/0.1401, allocations: 227.6 kB / 487.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 2.374e-06/0.1401, allocations: 0 / 487.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008404/0.141, allocations: 373.2 kB / 487.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.788e-05/0.141, allocations: 59.41 kB / 487.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000283/0.1413, allocations: 274.9 kB / 487.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.1414, allocations: 37.7 kB / 487.9 MB, free: 12.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.1415, allocations: 172.6 kB / 488.1 MB, free: 12.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.229e-05/0.1416, allocations: 102.5 kB / 488.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.1417, allocations: 74.05 kB / 488.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.1419, allocations: 342.8 kB / 488.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.1421, allocations: 88.69 kB / 488.6 MB, free: 12.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002911/0.1424, allocations: 230.5 kB / 488.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005374/0.1429, allocations: 352.8 kB / 489.2 MB, free: 11.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.1429, allocations: 0 / 489.2 MB, free: 11.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007037/0.1437, allocations: 380.6 kB / 489.6 MB, free: 11.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.1437, allocations: 8 kB / 489.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.1437, allocations: 4 kB / 489.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.1437, allocations: 4 kB / 489.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003118/0.144, allocations: 79.83 kB / 489.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.934e-05/0.1441, allocations: 12.45 kB / 489.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002046/0.1443, allocations: 43.61 kB / 489.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.118e-05/0.1443, allocations: 16 kB / 489.8 MB, free: 10.89 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.0002035/0.1445, allocations: 165.7 kB / 489.9 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.472e-05/0.1446, allocations: 31.56 kB / 489.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007155/0.1453, allocations: 328.3 kB / 490.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.1453, allocations: 4 kB / 490.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1453, allocations: 0 / 490.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1454, allocations: 0 / 490.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.1464, allocations: 0.7207 MB / 491 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1464, allocations: 4 kB / 491 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002654/0.1467, allocations: 51.91 kB / 491 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.1467, allocations: 4 kB / 491 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.699e-05/0.1467, allocations: 7.984 kB / 491.1 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.1467, allocations: 4 kB / 491.1 MB, free: 9.512 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1467, allocations: 0 / 491.1 MB, free: 9.512 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009287/0.1476, allocations: 0.5266 MB / 491.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.694e-05/0.1477, allocations: 104.7 kB / 491.7 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.536e-05/0.1478, allocations: 12.06 kB / 491.7 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.148, allocations: 16.12 kB / 491.7 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.679e-05/0.1481, allocations: 23.94 kB / 491.7 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.1481, allocations: 12 kB / 491.7 MB, free: 8.785 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000182/0.1483, allocations: 190 kB / 491.9 MB, free: 8.598 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1483, allocations: 0 / 491.9 MB, free: 8.598 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004023/0.1487, allocations: 83.67 kB / 492 MB, free: 8.516 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.0001314/0.1489, allocations: 107.2 kB / 492.1 MB, free: 8.402 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006323/0.1495, allocations: 260.4 kB / 492.4 MB, free: 8.148 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1495, allocations: 4.062 kB / 492.4 MB, free: 8.145 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000264/0.1498, allocations: 136.1 kB / 492.5 MB, free: 8.012 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004004/0.1502, allocations: 44.06 kB / 492.6 MB, free: 7.973 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.1514, allocations: 0.743 MB / 493.3 MB, free: 7.203 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004451/0.1518, allocations: 0.7998 MB / 494.1 MB, free: 6.371 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001768/0.152, allocations: 39.23 kB / 494.1 MB, free: 6.332 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.742e-05/0.1521, allocations: 31.44 kB / 494.2 MB, free: 6.301 MB / 366.1 MB Notification: Performance of SimCode: time 1.684e-06/0.1521, allocations: 0 / 494.2 MB, free: 6.301 MB / 366.1 MB Notification: Performance of Templates: time 0.006342/0.1585, allocations: 2.506 MB / 496.7 MB, free: 3.805 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches