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.001207/0.001207, allocations: 109.3 kB / 18.39 MB, free: 4.629 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.001106/0.001106, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.395/1.395, allocations: 222.9 MB / 243 MB, free: 15.09 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.2184/0.2184, allocations: 44.19 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 70.22 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1383, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003868/0.1422, allocations: 2.235 MB / 472.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.1438, allocations: 0.7713 MB / 473.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.144, allocations: 4 kB / 473.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001586/0.1442, allocations: 39.53 kB / 473.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002435/0.1444, allocations: 59.45 kB / 473.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003415/0.1448, allocations: 151.7 kB / 474 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004111/0.1452, allocations: 367 kB / 474.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002774/0.1455, allocations: 132.2 kB / 474.4 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002095/0.1457, allocations: 143.4 kB / 474.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002317/0.146, allocations: 155.2 kB / 474.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.163e-05/0.146, allocations: 40 kB / 474.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.641e-05/0.1461, allocations: 36 kB / 474.8 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.1462, allocations: 83.69 kB / 474.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001841/0.1464, allocations: 163.1 kB / 475 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004151/0.1468, allocations: 378.6 kB / 475.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.1468, allocations: 7.922 kB / 475.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1468, allocations: 0 / 475.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.1469, allocations: 0 / 475.4 MB, free: 8.902 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.001219/0.1481, allocations: 0.6226 MB / 476 MB, free: 8.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.1481, allocations: 15.97 kB / 476.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.786e-05/0.1482, allocations: 36.56 kB / 476.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005185/0.1488, allocations: 327.2 kB / 476.4 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.06e-05/0.1488, allocations: 32.92 kB / 476.4 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.594e-05/0.1489, allocations: 32.38 kB / 476.5 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006347/0.1495, allocations: 276.9 kB / 476.8 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.1496, allocations: 3.906 kB / 476.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.011e-05/0.1496, allocations: 12 kB / 476.8 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.1496, allocations: 4 kB / 476.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004132/0.15, allocations: 194.1 kB / 477 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.1515, allocations: 0.8031 MB / 477.8 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004155/0.1519, allocations: 206.8 kB / 478 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/0.1521, allocations: 96.8 kB / 478.1 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.759e-05/0.1521, allocations: 7.938 kB / 478.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004/0.1525, allocations: 223.2 kB / 478.3 MB, free: 5.871 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.723e-06/0.1526, allocations: 3.938 kB / 478.3 MB, free: 5.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007531/0.1533, allocations: 369.2 kB / 478.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.1534, allocations: 55.41 kB / 478.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002275/0.1536, allocations: 232.9 kB / 478.9 MB, free: 5.195 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.1536, allocations: 37.7 kB / 479 MB, free: 5.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.1538, allocations: 180.4 kB / 479.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.168e-05/0.1538, allocations: 86.72 kB / 479.2 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.154, allocations: 78.05 kB / 479.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.1541, allocations: 338.8 kB / 479.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.1543, allocations: 88.7 kB / 479.7 MB, free: 4.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002845/0.1546, allocations: 226.3 kB / 479.9 MB, free: 4.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004934/0.1551, allocations: 344.8 kB / 480.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.1551, allocations: 4 kB / 480.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006616/0.1558, allocations: 376.6 kB / 480.7 MB, free: 3.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.1558, allocations: 11.94 kB / 480.7 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.659e-06/0.1558, allocations: 4 kB / 480.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.423e-05/0.1559, allocations: 8.469 kB / 480.7 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002999/0.1562, allocations: 71.89 kB / 480.7 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.565e-05/0.1562, allocations: 11.94 kB / 480.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.1564, allocations: 39.67 kB / 480.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.804e-05/0.1564, allocations: 20 kB / 480.8 MB, free: 3.152 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.0001955/0.1566, allocations: 167.6 kB / 481 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.395e-05/0.1567, allocations: 27.66 kB / 481 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006445/0.1573, allocations: 332.1 kB / 481.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.1573, allocations: 4 kB / 481.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.1573, allocations: 7.984 kB / 481.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.1574, allocations: 0 / 481.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009599/0.1583, allocations: 0.7129 MB / 482.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.1583, allocations: 0 / 482.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002462/0.1586, allocations: 47.91 kB / 482.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.1586, allocations: 0 / 482.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.948e-05/0.1586, allocations: 11.98 kB / 482.1 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1587, allocations: 0 / 482.1 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1587, allocations: 0 / 482.1 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009008/0.1596, allocations: 0.5266 MB / 482.6 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.266e-05/0.1596, allocations: 100.8 kB / 482.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.05e-05/0.1597, allocations: 12.06 kB / 482.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.1599, allocations: 11.98 kB / 482.8 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.789e-05/0.16, allocations: 27.91 kB / 482.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.567e-05/0.16, allocations: 11.98 kB / 482.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001628/0.1602, allocations: 168.5 kB / 483 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1602, allocations: 4 kB / 483 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003557/0.1605, allocations: 67.75 kB / 483 MB, free: 0.8281 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.0001434/0.1607, allocations: 123 kB / 483.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005342/0.1612, allocations: 272.2 kB / 483.4 MB, free: 448 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1612, allocations: 0 / 483.4 MB, free: 448 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002281/0.1615, allocations: 123.9 kB / 483.5 MB, free: 324 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000345/0.1618, allocations: 32.42 kB / 483.6 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.1629, allocations: 0.595 MB / 484.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004351/0.1633, allocations: 0.7805 MB / 484.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001376/0.1635, allocations: 42.95 kB / 485 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.816e-05/0.1636, allocations: 27.42 kB / 485 MB, free: 14.78 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1636, allocations: 4 kB / 485 MB, free: 14.78 MB / 366.1 MB Notification: Performance of Templates: time 0.005787/0.1694, allocations: 2.502 MB / 487.5 MB, free: 12.29 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 cvode -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