Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.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.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.IntegerTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 107.4 kB / 17.21 MB, free: 6.293 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.002396/0.002397, allocations: 194 kB / 18.12 MB, free: 5.383 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.449/1.449, allocations: 222.9 MB / 241.8 MB, free: 15.36 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.2255/0.2255, allocations: 44.18 MB / 336.1 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002392/0.002392, allocations: 69.33 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.154/0.1564, allocations: 60.83 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.004474/0.1609, allocations: 2.305 MB / 470.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002798/0.1638, allocations: 1.555 MB / 472.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003124/0.1641, allocations: 8 kB / 472.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005235/0.1646, allocations: 123.5 kB / 472.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005512/0.1653, allocations: 195.3 kB / 472.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001613/0.1669, allocations: 0.6212 MB / 473.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006446/0.1675, allocations: 494.6 kB / 473.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.1677, allocations: 65.06 kB / 473.9 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003217/0.1681, allocations: 203 kB / 474.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000265/0.1683, allocations: 211 kB / 474.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.401e-05/0.1684, allocations: 12 kB / 474.3 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003114/0.1687, allocations: 123.9 kB / 474.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.1689, allocations: 119.5 kB / 474.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001882/0.1691, allocations: 182.7 kB / 474.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005897/0.1697, allocations: 0.5493 MB / 475.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1697, allocations: 0 / 475.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1697, allocations: 0 / 475.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.1697, allocations: 0 / 475.2 MB, free: 8.098 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0013/0.171, allocations: 0.8903 MB / 476.1 MB, free: 7.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.1711, allocations: 8.031 kB / 476.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.1712, allocations: 52.28 kB / 476.2 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005506/0.1717, allocations: 468.1 kB / 476.7 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.591e-05/0.1718, allocations: 16.61 kB / 476.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.04e-05/0.1718, allocations: 16.06 kB / 476.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004845/0.1723, allocations: 257.4 kB / 476.9 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1723, allocations: 3.938 kB / 476.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.556e-05/0.1723, allocations: 12 kB / 477 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.1724, allocations: 4 kB / 477 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000301/0.1727, allocations: 107.9 kB / 477.1 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/0.1738, allocations: 0.8795 MB / 477.9 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006888/0.1745, allocations: 298.6 kB / 478.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000233/0.1747, allocations: 107.3 kB / 478.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.394e-05/0.1748, allocations: 8 kB / 478.3 MB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005287/0.1753, allocations: 210.6 kB / 478.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.1753, allocations: 0 / 478.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001017/0.1763, allocations: 405.7 kB / 478.9 MB, free: 4.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001941/0.1765, allocations: 350.1 kB / 479.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007475/0.1773, allocations: 0.6277 MB / 479.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.822e-05/0.1774, allocations: 37.7 kB / 480 MB, free: 3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/0.1775, allocations: 224.7 kB / 480.2 MB, free: 2.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.089e-05/0.1776, allocations: 67.11 kB / 480.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.119e-05/0.1777, allocations: 69.69 kB / 480.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1778, allocations: 362.7 kB / 480.7 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.1781, allocations: 91.88 kB / 480.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003236/0.1784, allocations: 249.5 kB / 481 MB, free: 1.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004598/0.1789, allocations: 234.8 kB / 481.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1789, allocations: 0 / 481.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006281/0.1795, allocations: 312.8 kB / 481.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.1795, allocations: 8.125 kB / 481.5 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.1796, allocations: 4 kB / 481.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.1796, allocations: 7.938 kB / 481.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.1799, allocations: 56.16 kB / 481.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.1799, allocations: 4 kB / 481.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000191/0.1801, allocations: 31.83 kB / 481.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.1801, allocations: 12 kB / 481.7 MB, free: 1.191 MB / 350.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 ($PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition4,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.integerTable2.combiTimeTable.nextTimeEvent,$whenCondition3,integerTable2.combiTimeTable.nextTimeEventScaled,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,$PRE.integerTable3.combiTimeTable.nextTimeEvent,$whenCondition2,integerTable3.combiTimeTable.nextTimeEventScaled,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,$PRE.integerTable4.combiTimeTable.nextTimeEvent,$whenCondition1,integerTable4.combiTimeTable.nextTimeEventScaled,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002567/0.1804, allocations: 213.7 kB / 481.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.1805, allocations: 55.34 kB / 481.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.1806, allocations: 59.91 kB / 482 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.1806, allocations: 3.938 kB / 482 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.1806, allocations: 4 kB / 482 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.1806, allocations: 3.984 kB / 482 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004099/0.181, allocations: 401.3 kB / 482.4 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.181, allocations: 0 / 482.4 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001228/0.1812, allocations: 31.92 kB / 482.4 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.1812, allocations: 4 kB / 482.4 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.605e-05/0.1812, allocations: 7.984 kB / 482.4 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.1812, allocations: 7.938 kB / 482.4 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1813, allocations: 0 / 482.4 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006839/0.1819, allocations: 366.2 kB / 482.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.764e-05/0.182, allocations: 124.5 kB / 482.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.743e-05/0.1821, allocations: 19.98 kB / 482.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/0.1823, allocations: 23.92 kB / 482.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.1824, allocations: 31.95 kB / 483 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-05/0.1824, allocations: 23.92 kB / 483 MB, free: 15.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004849/0.1829, allocations: 462.8 kB / 483.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1829, allocations: 0 / 483.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000396/0.1833, allocations: 99.89 kB / 483.6 MB, free: 15.19 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 (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.001071/0.1844, allocations: 461.6 kB / 484 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005474/0.185, allocations: 227.6 kB / 484.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.185, allocations: 0 / 484.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003727/0.1854, allocations: 163.8 kB / 484.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006593/0.186, allocations: 147.3 kB / 484.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001208/0.1873, allocations: 0.869 MB / 485.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004197/0.1877, allocations: 0.8353 MB / 486.2 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002375/0.1879, allocations: 91.2 kB / 486.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.1881, allocations: 51.41 kB / 486.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1881, allocations: 0 / 486.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of Templates: time 0.01227/0.2003, allocations: 7.215 MB / 493.6 MB, free: 5.293 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches