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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 84.23 kB / 20.68 MB, free: 1.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 164.5 kB / 23.96 MB, free: 4.145 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.358/1.358, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1924/0.1924, allocations: 32.81 MB / 293.5 MB, free: 20 kB / 270.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,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=5007,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 440.1 MB, free: 8.164 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.781e-05/1.895e-05, allocations: 2.281 kB / 440.1 MB, free: 8.16 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003223/0.003242, allocations: 2.205 MB / 442.3 MB, free: 5.941 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002774/0.006016, allocations: 1.625 MB / 443.9 MB, free: 4.312 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.00613, allocations: 7.938 kB / 443.9 MB, free: 4.305 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003679/0.006498, allocations: 143.2 kB / 444.1 MB, free: 4.164 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005859/0.007083, allocations: 302.6 kB / 444.4 MB, free: 3.867 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00121/0.008294, allocations: 0.5502 MB / 444.9 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006446/0.008938, allocations: 0.5919 MB / 445.5 MB, free: 2.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.00907, allocations: 37.27 kB / 445.5 MB, free: 2.691 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003842/0.009455, allocations: 311.2 kB / 445.8 MB, free: 2.387 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002841/0.009739, allocations: 199.5 kB / 446 MB, free: 2.191 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.549e-05/0.009794, allocations: 32 kB / 446.1 MB, free: 2.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003361/0.01013, allocations: 195.6 kB / 446.3 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001621/0.01029, allocations: 135.5 kB / 446.4 MB, free: 1.836 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.01043, allocations: 115.6 kB / 446.5 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007107/0.01115, allocations: 0.6192 MB / 447.1 MB, free: 1.102 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.01115, allocations: 0 / 447.1 MB, free: 1.102 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.31e-07/0.01115, allocations: 0 / 447.1 MB, free: 1.102 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.01115, allocations: 0 / 447.1 MB, free: 1.102 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.001211/0.01236, allocations: 0.8458 MB / 448 MB, free: 204 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.01239, allocations: 12.03 kB / 448 MB, free: 192 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.0125, allocations: 56.59 kB / 448 MB, free: 136 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1577/0.1702, allocations: 413 kB / 448.4 MB, free: 21.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.228e-05/0.1703, allocations: 12.75 kB / 448.4 MB, free: 21.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.772e-05/0.1703, allocations: 18.94 kB / 448.5 MB, free: 21.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004292/0.1707, allocations: 345.6 kB / 448.8 MB, free: 21.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.1707, allocations: 1.125 kB / 448.8 MB, free: 21.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.1707, allocations: 3.016 kB / 448.8 MB, free: 21.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.1708, allocations: 3.938 kB / 448.8 MB, free: 21.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002857/0.171, allocations: 129.1 kB / 448.9 MB, free: 21.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008239/0.1719, allocations: 0.7855 MB / 449.7 MB, free: 20.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005921/0.1725, allocations: 295.5 kB / 450 MB, free: 20.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.1727, allocations: 106.9 kB / 450.1 MB, free: 20.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.1727, allocations: 3.312 kB / 450.1 MB, free: 20.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003588/0.173, allocations: 231.1 kB / 450.3 MB, free: 20.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.823e-06/0.173, allocations: 3.25 kB / 450.3 MB, free: 20.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009016/0.1739, allocations: 426.6 kB / 450.8 MB, free: 20.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.174, allocations: 242.3 kB / 451 MB, free: 20.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006564/0.1746, allocations: 0.6749 MB / 451.7 MB, free: 19.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/0.1747, allocations: 34.47 kB / 451.7 MB, free: 19.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1748, allocations: 234.7 kB / 451.9 MB, free: 19.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.791e-05/0.1749, allocations: 68.22 kB / 452 MB, free: 19.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.146e-05/0.1749, allocations: 63.98 kB / 452.1 MB, free: 19.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.654e-05/0.175, allocations: 368.6 kB / 452.4 MB, free: 19.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001939/0.1752, allocations: 89.95 kB / 452.5 MB, free: 19.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002828/0.1755, allocations: 434 kB / 452.9 MB, free: 18.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004087/0.1759, allocations: 240.4 kB / 453.2 MB, free: 18.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1759, allocations: 0 / 453.2 MB, free: 18.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005783/0.1765, allocations: 332.1 kB / 453.5 MB, free: 18.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.1765, allocations: 10.73 kB / 453.5 MB, free: 18.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1765, allocations: 5.375 kB / 453.5 MB, free: 18.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.1765, allocations: 3.344 kB / 453.5 MB, free: 18.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000247/0.1768, allocations: 62.09 kB / 453.6 MB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.1768, allocations: 4.688 kB / 453.6 MB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000187/0.177, allocations: 27.09 kB / 453.6 MB, free: 18.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.177, allocations: 10.02 kB / 453.6 MB, free: 18.35 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 ($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.0001948/0.1772, allocations: 219.8 kB / 453.8 MB, free: 18.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.713e-05/0.1772, allocations: 62.81 kB / 453.9 MB, free: 18.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007101/0.178, allocations: 381.5 kB / 454.3 MB, free: 18.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.178, allocations: 4.438 kB / 454.3 MB, free: 18.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.178, allocations: 4.031 kB / 454.3 MB, free: 18.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.178, allocations: 2.812 kB / 454.3 MB, free: 18.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000301/0.1783, allocations: 320.5 kB / 454.6 MB, free: 17.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1783, allocations: 3.531 kB / 454.6 MB, free: 17.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001367/0.1784, allocations: 33.98 kB / 454.6 MB, free: 17.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1784, allocations: 6.016 kB / 454.6 MB, free: 17.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.1784, allocations: 10.7 kB / 454.6 MB, free: 17.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.1784, allocations: 3.453 kB / 454.6 MB, free: 17.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1784, allocations: 1.375 kB / 454.6 MB, free: 17.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006029/0.179, allocations: 395.5 kB / 455 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.15e-05/0.1791, allocations: 66.91 kB / 455.1 MB, free: 17.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.612e-05/0.1792, allocations: 17.61 kB / 455.1 MB, free: 17.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.1794, allocations: 17.22 kB / 455.1 MB, free: 17.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.383e-05/0.1794, allocations: 35.72 kB / 455.2 MB, free: 17.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.304e-05/0.1795, allocations: 18.23 kB / 455.2 MB, free: 17.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004843/0.18, allocations: 497.8 kB / 455.7 MB, free: 17.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.18, allocations: 3.938 kB / 455.7 MB, free: 17.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003901/0.1804, allocations: 101.7 kB / 455.8 MB, free: 17.33 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.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 20 * 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.001608/0.182, allocations: 490.2 kB / 456.3 MB, free: 17.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005313/0.1825, allocations: 240.5 kB / 456.5 MB, free: 17.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1825, allocations: 0 / 456.5 MB, free: 17.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003272/0.1828, allocations: 175.4 kB / 456.7 MB, free: 17.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006482/0.1835, allocations: 166.7 kB / 456.8 MB, free: 17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.1845, allocations: 0.8359 MB / 457.7 MB, free: 16.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.1847, allocations: 252.2 kB / 457.9 MB, free: 16.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000188/0.1849, allocations: 87.62 kB / 458 MB, free: 16.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/0.185, allocations: 53.38 kB / 458 MB, free: 16.39 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.185, allocations: 1.062 kB / 458 MB, free: 16.39 MB / 366.1 MB Notification: Performance of Templates: time 0.01353/0.1986, allocations: 7.945 MB / 466 MB, free: 14.44 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.620658278465271]