Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.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.Tables.CombiTimeTable.Test14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|err1.y|trapezoid1.T_start|trapezoid1.count",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14") translateModel(ModelicaTest.Tables.CombiTimeTable.Test14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|err1.y|trapezoid1.T_start|trapezoid1.count",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 96.64 kB / 16.99 MB, free: 6.402 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.001557/0.001558, allocations: 178.7 kB / 17.88 MB, free: 5.957 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.481/1.481, allocations: 223.2 MB / 241.8 MB, free: 14.64 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.2225/0.2225, allocations: 44.23 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006136/0.0006137, allocations: 15.94 kB / 409.5 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.1563, allocations: 61.92 MB / 471.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.002499/0.1589, allocations: 1.653 MB / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.1607, allocations: 0.8814 MB / 474 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.1608, allocations: 0 / 474 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002894/0.1611, allocations: 35.83 kB / 474 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002129/0.1613, allocations: 67.72 kB / 474.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003246/0.1617, allocations: 111.7 kB / 474.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002224/0.1619, allocations: 123.7 kB / 474.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.162, allocations: 25.67 kB / 474.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.1622, allocations: 71.69 kB / 474.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.1623, allocations: 63.69 kB / 474.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.1623, allocations: 8 kB / 474.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.838e-05/0.1624, allocations: 31.92 kB / 474.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.261e-05/0.1625, allocations: 27.91 kB / 474.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.213e-05/0.1625, allocations: 53.58 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001888/0.1627, allocations: 132 kB / 474.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1627, allocations: 0 / 474.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1627, allocations: 0 / 474.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.385e-06/0.1627, allocations: 0 / 474.7 MB, free: 10.44 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0009743/0.1637, allocations: 0.5409 MB / 475.3 MB, free: 9.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.1638, allocations: 8.562 kB / 475.3 MB, free: 9.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.02e-05/0.1638, allocations: 19.8 kB / 475.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003346/0.1642, allocations: 243.5 kB / 475.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.607e-05/0.1642, allocations: 12 kB / 475.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.005e-05/0.1643, allocations: 4 kB / 475.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000419/0.1647, allocations: 160.1 kB / 475.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.1647, allocations: 7.938 kB / 475.7 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.1647, allocations: 4 kB / 475.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/0.1647, allocations: 4 kB / 475.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004988/0.1652, allocations: 131.9 kB / 475.9 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006835/0.1659, allocations: 0.5477 MB / 476.4 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006797/0.1666, allocations: 190.5 kB / 476.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.1667, allocations: 0 / 476.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004407/0.1671, allocations: 151.2 kB / 476.7 MB, free: 8.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.442e-06/0.1671, allocations: 4 kB / 476.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009134/0.1681, allocations: 289.4 kB / 477 MB, free: 7.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.938e-05/0.1682, allocations: 63.34 kB / 477.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.1684, allocations: 219.1 kB / 477.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.1684, allocations: 37.64 kB / 477.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.1685, allocations: 128.3 kB / 477.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.956e-05/0.1686, allocations: 39.59 kB / 477.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.312e-05/0.1687, allocations: 8 kB / 477.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.1688, allocations: 338.8 kB / 477.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002487/0.1691, allocations: 75.94 kB / 477.9 MB, free: 7.004 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.1694, allocations: 112.2 kB / 478 MB, free: 6.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002764/0.1697, allocations: 120.8 kB / 478.1 MB, free: 6.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.1697, allocations: 0 / 478.1 MB, free: 6.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006654/0.1704, allocations: 279 kB / 478.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.752e-05/0.1704, allocations: 29.7 kB / 478.4 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1704, allocations: 4 kB / 478.4 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.1705, allocations: 0 / 478.4 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/0.1706, allocations: 43.91 kB / 478.5 MB, free: 6.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.1707, allocations: 0 / 478.5 MB, free: 6.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001893/0.1709, allocations: 43.88 kB / 478.5 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.1709, allocations: 7.953 kB / 478.5 MB, free: 6.34 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$PRE.t_new.nextTimeEvent,$whenCondition1,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled,err1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000136/0.171, allocations: 133.8 kB / 478.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.842e-05/0.1711, allocations: 19.81 kB / 478.7 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.647e-05/0.1711, allocations: 21.39 kB / 478.7 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.1711, allocations: 0 / 478.7 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1711, allocations: 4 kB / 478.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1712, allocations: 4 kB / 478.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000214/0.1714, allocations: 233.5 kB / 478.9 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1714, allocations: 3.938 kB / 479 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.1716, allocations: 27.98 kB / 479 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1716, allocations: 0 / 479 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.1716, allocations: 7.984 kB / 479 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.1716, allocations: 0 / 479 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.1716, allocations: 8 kB / 479 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008645/0.1725, allocations: 336.6 kB / 479.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.261e-05/0.1726, allocations: 96.95 kB / 479.4 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.1726, allocations: 4 kB / 479.4 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001847/0.1728, allocations: 27.97 kB / 479.4 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.121e-05/0.1729, allocations: 23.91 kB / 479.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.01e-05/0.1729, allocations: 4 kB / 479.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001413/0.173, allocations: 164.6 kB / 479.6 MB, free: 5.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1731, allocations: 0 / 479.6 MB, free: 5.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002723/0.1733, allocations: 47.98 kB / 479.7 MB, free: 5.105 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 3 (trapezoid1.count,t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000926/0.1743, allocations: 422 kB / 480.1 MB, free: 4.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006193/0.1749, allocations: 235.2 kB / 480.3 MB, free: 4.598 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1749, allocations: 0 / 480.3 MB, free: 4.598 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002666/0.1752, allocations: 100.1 kB / 480.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.1755, allocations: 39.92 kB / 480.5 MB, free: 4.461 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006964/0.1762, allocations: 354.2 kB / 480.8 MB, free: 4.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002935/0.1765, allocations: 0.7283 MB / 481.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.657e-05/0.1766, allocations: 17.55 kB / 481.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.838e-05/0.1767, allocations: 19.44 kB / 481.6 MB, free: 3.301 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1767, allocations: 4 kB / 481.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of Templates: time 0.005469/0.1821, allocations: 2.486 MB / 484.1 MB, free: 0.8398 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.sim & ./ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test14/Test14.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test14.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches