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.001575/0.001575, allocations: 108.7 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001977/0.001978, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2095/0.2095, allocations: 46.1 MB / 343.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 75.62 kB / 416.8 MB, free: 20.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1358, allocations: 62.45 MB / 479.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.00539/0.1413, allocations: 2.368 MB / 481.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003136/0.1444, allocations: 1.684 MB / 483.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002615/0.1447, allocations: 4 kB / 483.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006833/0.1454, allocations: 123.5 kB / 483.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007233/0.1462, allocations: 259 kB / 483.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00146/0.1477, allocations: 490 kB / 484.2 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005997/0.1483, allocations: 0.5142 MB / 484.7 MB, free: 312 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.1485, allocations: 73.06 kB / 484.8 MB, free: 236 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002384/0.1488, allocations: 210.9 kB / 485 MB, free: 24 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002723/0.149, allocations: 215.1 kB / 485.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.152e-05/0.1491, allocations: 12 kB / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002939/0.1494, allocations: 127.7 kB / 485.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001641/0.1496, allocations: 123.5 kB / 485.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001894/0.1498, allocations: 194.6 kB / 485.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006111/0.1504, allocations: 0.5687 MB / 486.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1504, allocations: 4 kB / 486.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.11e-07/0.1504, allocations: 0 / 486.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.1504, allocations: 0 / 486.2 MB, free: 14.79 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.001324/0.1517, allocations: 0.9058 MB / 487.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.1518, allocations: 8.031 kB / 487.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.1519, allocations: 56.28 kB / 487.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006316/0.1526, allocations: 491.9 kB / 487.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.1526, allocations: 12.61 kB / 487.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/0.1526, allocations: 24.12 kB / 487.7 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004747/0.1531, allocations: 262.8 kB / 488 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.1531, allocations: 7.922 kB / 488 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.775e-05/0.1532, allocations: 8 kB / 488 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.1532, allocations: 0 / 488 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003082/0.1535, allocations: 115.8 kB / 488.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.1546, allocations: 0.8835 MB / 489 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006609/0.1552, allocations: 286.6 kB / 489.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002301/0.1555, allocations: 115.3 kB / 489.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.1555, allocations: 160 / 489.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005049/0.156, allocations: 234.4 kB / 489.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.1561, allocations: 0 / 489.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.001009/0.1571, allocations: 397.7 kB / 490 MB, free: 10.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000172/0.1573, allocations: 350.1 kB / 490.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007872/0.158, allocations: 0.6631 MB / 491 MB, free: 9.637 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.816e-05/0.1581, allocations: 37.7 kB / 491 MB, free: 9.594 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001944/0.1583, allocations: 244.4 kB / 491.3 MB, free: 9.352 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.202e-05/0.1584, allocations: 59.17 kB / 491.3 MB, free: 9.293 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.778e-05/0.1585, allocations: 65.69 kB / 491.4 MB, free: 9.223 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.1587, allocations: 366.8 kB / 491.7 MB, free: 8.855 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/0.1589, allocations: 83.94 kB / 491.8 MB, free: 8.773 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003579/0.1593, allocations: 245.6 kB / 492.1 MB, free: 8.473 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00047/0.1597, allocations: 230.8 kB / 492.3 MB, free: 8.223 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1597, allocations: 0 / 492.3 MB, free: 8.223 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006445/0.1604, allocations: 316.8 kB / 492.6 MB, free: 7.906 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.1604, allocations: 8 kB / 492.6 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.1604, allocations: 0 / 492.6 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.1605, allocations: 7.938 kB / 492.6 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/0.1607, allocations: 56.16 kB / 492.7 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.1607, allocations: 4 kB / 492.7 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000208/0.161, allocations: 35.77 kB / 492.7 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.161, allocations: 8 kB / 492.7 MB, free: 7.789 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.0002607/0.1613, allocations: 229.8 kB / 492.9 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.638e-05/0.1614, allocations: 59.33 kB / 493 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.1615, allocations: 56.25 kB / 493.1 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.1615, allocations: 11.92 kB / 493.1 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.1615, allocations: 0 / 493.1 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.1615, allocations: 4 kB / 493.1 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004302/0.162, allocations: 425.1 kB / 493.5 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.162, allocations: 0 / 493.5 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.1621, allocations: 27.92 kB / 493.5 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1621, allocations: 3.984 kB / 493.5 MB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.1621, allocations: 12 kB / 493.5 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.1621, allocations: 7.938 kB / 493.5 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1622, allocations: 0 / 493.5 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000684/0.1628, allocations: 362.7 kB / 493.9 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.163, allocations: 140.4 kB / 494 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.24e-05/0.163, allocations: 8 kB / 494 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002172/0.1633, allocations: 23.92 kB / 494.1 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.1634, allocations: 31.95 kB / 494.1 MB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.506e-05/0.1634, allocations: 19.98 kB / 494.1 MB, free: 6.285 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005578/0.164, allocations: 486.8 kB / 494.6 MB, free: 5.812 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.164, allocations: 0 / 494.6 MB, free: 5.812 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004352/0.1644, allocations: 103.9 kB / 494.7 MB, free: 5.711 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.001082/0.1655, allocations: 460.4 kB / 495.1 MB, free: 5.395 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005841/0.1661, allocations: 223.8 kB / 495.4 MB, free: 5.176 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1661, allocations: 0 / 495.4 MB, free: 5.176 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003523/0.1665, allocations: 172 kB / 495.5 MB, free: 5.008 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007126/0.1672, allocations: 139.8 kB / 495.7 MB, free: 4.879 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.1685, allocations: 0.916 MB / 496.6 MB, free: 3.918 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004662/0.169, allocations: 0.8509 MB / 497.4 MB, free: 3.039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002651/0.1693, allocations: 95.22 kB / 497.5 MB, free: 2.941 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.1694, allocations: 47.42 kB / 497.6 MB, free: 2.895 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1694, allocations: 0 / 497.6 MB, free: 2.895 MB / 366.1 MB Notification: Performance of Templates: time 0.01507/0.1845, allocations: 7.287 MB / 0.493 GB, free: 11.64 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