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.000997/0.000997, allocations: 93.33 kB / 17.35 MB, free: 6.371 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.001277/0.001277, allocations: 174.8 kB / 18.25 MB, free: 5.523 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.418/1.418, allocations: 223.3 MB / 242.3 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1927/0.1927, allocations: 44.25 MB / 337.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003862, allocations: 12.95 kB / 410.3 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1427, allocations: 61.92 MB / 472.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003451/0.1462, allocations: 1.918 MB / 474.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.1481, allocations: 0.748 MB / 474.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002796/0.1484, allocations: 4 kB / 474.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001727/0.1486, allocations: 19.73 kB / 474.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003596/0.149, allocations: 51.62 kB / 475 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004578/0.1495, allocations: 127.8 kB / 475.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005197/0.15, allocations: 347.1 kB / 475.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003531/0.1504, allocations: 120.2 kB / 475.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002807/0.1507, allocations: 111.4 kB / 475.7 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002851/0.151, allocations: 123.2 kB / 475.8 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.925e-05/0.151, allocations: 12 kB / 475.8 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.579e-05/0.1511, allocations: 12 kB / 475.8 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.091e-05/0.1512, allocations: 47.77 kB / 475.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002208/0.1514, allocations: 168.8 kB / 476 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004379/0.1519, allocations: 334.9 kB / 476.4 MB, free: 9.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1519, allocations: 0 / 476.4 MB, free: 9.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1519, allocations: 0 / 476.4 MB, free: 9.215 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.288e-05/0.1519, allocations: 4 kB / 476.4 MB, free: 9.211 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.00127/0.1532, allocations: 0.5603 MB / 476.9 MB, free: 8.605 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.1532, allocations: 12.03 kB / 476.9 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.1534, allocations: 44.56 kB / 477 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006133/0.154, allocations: 327.2 kB / 477.3 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.747e-05/0.1541, allocations: 32.86 kB / 477.3 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.788e-05/0.1542, allocations: 32.28 kB / 477.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006928/0.1549, allocations: 284.9 kB / 477.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.1549, allocations: 0 / 477.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.103e-05/0.1549, allocations: 12 kB / 477.7 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.155, allocations: 4 kB / 477.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004802/0.1554, allocations: 206.1 kB / 477.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001572/0.157, allocations: 0.8187 MB / 478.7 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004611/0.1575, allocations: 206.8 kB / 478.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002119/0.1577, allocations: 104.8 kB / 479 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.821e-05/0.1578, allocations: 11.92 kB / 479 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000441/0.1582, allocations: 239.7 kB / 479.2 MB, free: 6.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.294e-06/0.1582, allocations: 0 / 479.2 MB, free: 6.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.000894/0.1591, allocations: 381.2 kB / 479.6 MB, free: 5.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.1592, allocations: 59.39 kB / 479.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.1595, allocations: 232.9 kB / 479.9 MB, free: 5.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.164e-05/0.1595, allocations: 37.7 kB / 479.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.1597, allocations: 180.4 kB / 480.1 MB, free: 5.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.97e-05/0.1598, allocations: 90.7 kB / 480.2 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.498e-05/0.1599, allocations: 45.69 kB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.1601, allocations: 342.8 kB / 480.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000245/0.1603, allocations: 100.6 kB / 480.7 MB, free: 4.684 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003254/0.1606, allocations: 232.8 kB / 480.9 MB, free: 4.398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005641/0.1612, allocations: 364.7 kB / 481.2 MB, free: 3.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.1612, allocations: 4 kB / 481.2 MB, free: 3.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007405/0.162, allocations: 385.1 kB / 481.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.162, allocations: 6.5 kB / 481.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.162, allocations: 4 kB / 481.6 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/0.1621, allocations: 8 kB / 481.6 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003045/0.1624, allocations: 75.83 kB / 481.7 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.1624, allocations: 11.94 kB / 481.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.1626, allocations: 47.7 kB / 481.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.121e-05/0.1627, allocations: 16 kB / 481.8 MB, free: 3.43 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.0001995/0.1629, allocations: 170.7 kB / 482 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.79e-05/0.1629, allocations: 27.66 kB / 482 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006986/0.1636, allocations: 336.2 kB / 482.3 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.1636, allocations: 4 kB / 482.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1636, allocations: 0 / 482.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.1637, allocations: 0 / 482.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.1647, allocations: 0.7286 MB / 483 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1647, allocations: 0 / 483 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002572/0.165, allocations: 51.97 kB / 483.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.999e-06/0.165, allocations: 3.984 kB / 483.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.888e-05/0.165, allocations: 15.92 kB / 483.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.165, allocations: 4 kB / 483.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1651, allocations: 4 kB / 483.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.1661, allocations: 0.5385 MB / 483.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.924e-05/0.1662, allocations: 104.7 kB / 483.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.175e-05/0.1663, allocations: 8.062 kB / 483.8 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.1665, allocations: 23.98 kB / 483.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.1666, allocations: 19.97 kB / 483.8 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.684e-05/0.1666, allocations: 11.98 kB / 483.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001863/0.1668, allocations: 172.5 kB / 484 MB, free: 1.121 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1668, allocations: 0 / 484 MB, free: 1.121 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004347/0.1673, allocations: 71.73 kB / 484.1 MB, free: 1.051 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.0002016/0.1675, allocations: 107.2 kB / 484.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006936/0.1682, allocations: 280.1 kB / 484.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.1682, allocations: 4.312 kB / 484.4 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002778/0.1685, allocations: 127.9 kB / 484.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004142/0.1689, allocations: 36.36 kB / 484.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001279/0.1702, allocations: 0.7482 MB / 485.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/0.1707, allocations: 0.7802 MB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001667/0.1708, allocations: 47.22 kB / 486.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.028e-05/0.1709, allocations: 27.44 kB / 486.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1709, allocations: 4 kB / 486.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of Templates: time 0.006636/0.1776, allocations: 2.286 MB / 488.5 MB, free: 12.55 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