Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.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.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable") translateModel(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008933/0.0008933, allocations: 97.02 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.00118, allocations: 192.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 227.7 MB / 246.4 MB, free: 11.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3647/0.3647, allocations: 46.18 MB / 344.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002878/0.0002878, allocations: 8 kB / 418.8 MB, free: 20.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1408, allocations: 63.57 MB / 482.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.002664/0.1435, allocations: 1.937 MB / 484.3 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002441/0.1459, allocations: 1.568 MB / 485.9 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001541/0.1461, allocations: 11.88 kB / 485.9 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004179/0.1465, allocations: 119.6 kB / 486 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004954/0.147, allocations: 227 kB / 486.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001194/0.1483, allocations: 449.9 kB / 486.7 MB, free: 264 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006291/0.1489, allocations: 490.5 kB / 487.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001896/0.1491, allocations: 65.23 kB / 487.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003011/0.1494, allocations: 199 kB / 487.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002401/0.1497, allocations: 191.1 kB / 487.6 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.654e-05/0.1497, allocations: 8 kB / 487.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002768/0.15, allocations: 115.9 kB / 487.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.1501, allocations: 111.6 kB / 487.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001219/0.1503, allocations: 105.4 kB / 488 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005158/0.1508, allocations: 447.2 kB / 488.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.1508, allocations: 0 / 488.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1508, allocations: 3.938 kB / 488.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.1508, allocations: 4 kB / 488.4 MB, free: 14.54 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001334/0.1522, allocations: 0.8398 MB / 489.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.1522, allocations: 8.031 kB / 489.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.712e-05/0.1523, allocations: 55.34 kB / 489.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000559/0.1529, allocations: 455.1 kB / 489.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.927e-05/0.1529, allocations: 16.22 kB / 489.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.59e-05/0.153, allocations: 16 kB / 489.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004514/0.1534, allocations: 256.9 kB / 490 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.1534, allocations: 0 / 490 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.943e-05/0.1535, allocations: 8 kB / 490 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.1535, allocations: 4 kB / 490 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002704/0.1538, allocations: 107.9 kB / 490.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.1548, allocations: 0.8836 MB / 491 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000603/0.1554, allocations: 294.5 kB / 491.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002156/0.1557, allocations: 111.4 kB / 491.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.945e-05/0.1557, allocations: 4 kB / 491.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000439/0.1562, allocations: 226.4 kB / 491.6 MB, free: 11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 3.536e-06/0.1562, allocations: 0 / 491.6 MB, free: 11 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008929/0.1571, allocations: 404.6 kB / 492 MB, free: 10.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001677/0.1572, allocations: 342.1 kB / 492.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008198/0.1581, allocations: 0.6592 MB / 493 MB, free: 9.516 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.301e-05/0.1581, allocations: 41.69 kB / 493.1 MB, free: 9.469 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002425/0.1584, allocations: 240.4 kB / 493.3 MB, free: 9.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.234e-05/0.1585, allocations: 67.22 kB / 493.4 MB, free: 9.164 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.559e-05/0.1585, allocations: 8 kB / 493.4 MB, free: 9.156 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002475/0.1587, allocations: 366.8 kB / 493.7 MB, free: 8.789 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.159, allocations: 75.95 kB / 493.8 MB, free: 8.715 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003524/0.1593, allocations: 249.5 kB / 494.1 MB, free: 8.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/0.1596, allocations: 105 kB / 494.2 MB, free: 8.309 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1596, allocations: 0 / 494.2 MB, free: 8.309 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006519/0.1602, allocations: 320.8 kB / 494.5 MB, free: 7.988 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.1603, allocations: 12.08 kB / 494.5 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.1603, allocations: 7.984 kB / 494.5 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.898e-05/0.1603, allocations: 4 kB / 494.5 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002755/0.1606, allocations: 55.89 kB / 494.6 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.1606, allocations: 4 kB / 494.6 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.1609, allocations: 27.83 kB / 494.6 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.804e-05/0.1609, allocations: 16 kB / 494.6 MB, free: 7.863 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition4,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,$PRE.integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,$PRE.integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * 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.0003274/0.1612, allocations: 227.6 kB / 494.8 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.24e-05/0.1613, allocations: 55.25 kB / 494.9 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000159/0.1615, allocations: 68.14 kB / 494.9 MB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.1615, allocations: 7.938 kB / 495 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.1615, allocations: 0 / 495 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.1616, allocations: 7.984 kB / 495 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005417/0.1621, allocations: 409.6 kB / 495.4 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.1621, allocations: 4 kB / 495.4 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.1623, allocations: 31.92 kB / 495.4 MB, free: 7.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.1623, allocations: 0 / 495.4 MB, free: 7.008 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.446e-05/0.1623, allocations: 7.984 kB / 495.4 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/0.1623, allocations: 11.95 kB / 495.4 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.1623, allocations: 0 / 495.4 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006723/0.163, allocations: 366.6 kB / 495.8 MB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.1632, allocations: 152.4 kB / 495.9 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.575e-05/0.1633, allocations: 8 kB / 495.9 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.1634, allocations: 19.98 kB / 495.9 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.1635, allocations: 35.91 kB / 496 MB, free: 6.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.974e-05/0.1636, allocations: 19.98 kB / 496 MB, free: 6.352 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005828/0.1642, allocations: 486.8 kB / 496.5 MB, free: 5.879 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1642, allocations: 0 / 496.5 MB, free: 5.879 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004692/0.1646, allocations: 103.9 kB / 496.6 MB, free: 5.777 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition4,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 8 (integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001138/0.1658, allocations: 445.4 kB / 497 MB, free: 5.473 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005479/0.1663, allocations: 219.8 kB / 497.2 MB, free: 5.258 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.1664, allocations: 4 kB / 497.2 MB, free: 5.254 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003278/0.1667, allocations: 163.8 kB / 497.4 MB, free: 5.094 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006283/0.1673, allocations: 144 kB / 497.5 MB, free: 4.961 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.1687, allocations: 0.8707 MB / 498.4 MB, free: 4.047 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005342/0.1693, allocations: 0.8509 MB / 499.3 MB, free: 3.168 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002963/0.1696, allocations: 87.23 kB / 499.3 MB, free: 3.082 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.1697, allocations: 51.41 kB / 499.4 MB, free: 3.031 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1697, allocations: 0 / 499.4 MB, free: 3.031 MB / 366.1 MB Notification: Performance of Templates: time 0.01285/0.1826, allocations: 6.969 MB / 0.4945 GB, free: 12.1 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches