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.001479/0.001479, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.001713/0.001713, allocations: 187 kB / 19.34 MB, free: 3.641 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.33/1.33, allocations: 222.9 MB / 243 MB, free: 15.08 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.1961/0.1961, allocations: 44.19 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 68.77 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1283, allocations: 60.82 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003797/0.1322, allocations: 2.239 MB / 472.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.1335, allocations: 0.7713 MB / 473.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.1337, allocations: 8 kB / 473.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001538/0.1338, allocations: 31.55 kB / 473.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002152/0.1341, allocations: 63.39 kB / 473.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002966/0.1344, allocations: 155.7 kB / 474 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003538/0.1347, allocations: 367 kB / 474.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002577/0.135, allocations: 128.2 kB / 474.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.1352, allocations: 147.4 kB / 474.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002824/0.1355, allocations: 151.3 kB / 474.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.692e-05/0.1356, allocations: 36 kB / 474.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.517e-05/0.1356, allocations: 36 kB / 474.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.09e-05/0.1357, allocations: 83.69 kB / 474.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.1359, allocations: 167.1 kB / 475.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004241/0.1363, allocations: 378.6 kB / 475.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1363, allocations: 0 / 475.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1363, allocations: 0 / 475.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1363, allocations: 0 / 475.4 MB, free: 8.922 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.001156/0.1375, allocations: 0.6305 MB / 476.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1375, allocations: 8.031 kB / 476.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.902e-05/0.1376, allocations: 40.5 kB / 476.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005014/0.1381, allocations: 339.2 kB / 476.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.889e-05/0.1382, allocations: 20.94 kB / 476.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.515e-05/0.1383, allocations: 36.36 kB / 476.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004962/0.1388, allocations: 268.9 kB / 476.8 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.1388, allocations: 11.89 kB / 476.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.996e-05/0.1388, allocations: 8 kB / 476.8 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.1388, allocations: 8 kB / 476.8 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004016/0.1392, allocations: 194.1 kB / 477 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.1405, allocations: 0.7992 MB / 477.8 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004272/0.141, allocations: 202.8 kB / 478 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/0.1412, allocations: 100.8 kB / 478.1 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.788e-05/0.1412, allocations: 11.92 kB / 478.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003935/0.1416, allocations: 223.2 kB / 478.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 4.368e-06/0.1416, allocations: 0 / 478.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007657/0.1424, allocations: 369.2 kB / 478.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.536e-05/0.1425, allocations: 63.39 kB / 478.7 MB, free: 5.441 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002138/0.1427, allocations: 228.9 kB / 478.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.1427, allocations: 37.7 kB / 479 MB, free: 5.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.1428, allocations: 176.4 kB / 479.2 MB, free: 4.988 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.165e-05/0.1429, allocations: 94.7 kB / 479.2 MB, free: 4.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.143, allocations: 70.06 kB / 479.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1432, allocations: 342.8 kB / 479.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.1433, allocations: 84.7 kB / 479.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002659/0.1436, allocations: 230.3 kB / 480 MB, free: 4.105 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004639/0.1441, allocations: 348.8 kB / 480.3 MB, free: 3.703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.1441, allocations: 0 / 480.3 MB, free: 3.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005972/0.1447, allocations: 368.7 kB / 480.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.1447, allocations: 8.469 kB / 480.7 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.1448, allocations: 11.94 kB / 480.7 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.1448, allocations: 4 kB / 480.7 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000293/0.1451, allocations: 75.89 kB / 480.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.1451, allocations: 12.03 kB / 480.8 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.1453, allocations: 43.61 kB / 480.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.1453, allocations: 16 kB / 480.8 MB, free: 3.168 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.0001609/0.1455, allocations: 167.6 kB / 481 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.282e-05/0.1455, allocations: 35.66 kB / 481 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006346/0.1462, allocations: 320.1 kB / 481.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.1462, allocations: 4 kB / 481.3 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.1462, allocations: 0 / 481.3 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.1462, allocations: 11.92 kB / 481.4 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008808/0.1471, allocations: 0.7051 MB / 482.1 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1471, allocations: 0 / 482.1 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002575/0.1474, allocations: 55.89 kB / 482.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.1474, allocations: 4 kB / 482.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/0.1474, allocations: 8 kB / 482.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.1474, allocations: 0 / 482.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1474, allocations: 0 / 482.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008282/0.1483, allocations: 0.5266 MB / 482.6 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.369e-05/0.1483, allocations: 104.8 kB / 482.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.149e-05/0.1484, allocations: 8.062 kB / 482.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001724/0.1486, allocations: 11.98 kB / 482.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.74e-05/0.1487, allocations: 23.97 kB / 482.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.1487, allocations: 15.98 kB / 482.8 MB, free: 1.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001563/0.1489, allocations: 168.5 kB / 483 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1489, allocations: 0 / 483 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003642/0.1492, allocations: 71.75 kB / 483 MB, free: 0.8438 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.0001259/0.1494, allocations: 123 kB / 483.2 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005247/0.1499, allocations: 271.5 kB / 483.4 MB, free: 464 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1499, allocations: 0 / 483.4 MB, free: 464 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002321/0.1502, allocations: 123.9 kB / 483.6 MB, free: 340 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003433/0.1505, allocations: 28.42 kB / 483.6 MB, free: 308 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009948/0.1515, allocations: 0.5959 MB / 484.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.1519, allocations: 0.7881 MB / 485 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001316/0.152, allocations: 39.14 kB / 485 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.396e-05/0.1521, allocations: 31.44 kB / 485 MB, free: 14.79 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1521, allocations: 3.938 kB / 485 MB, free: 14.79 MB / 366.1 MB Notification: Performance of Templates: time 0.005873/0.158, allocations: 2.494 MB / 487.5 MB, free: 12.3 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches