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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009829/0.0009828, allocations: 175.7 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.262/1.262, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007952/0.0007952, allocations: 89.06 kB / 292.2 MB, free: 10.9 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3288/0.3288, allocations: 44.21 MB / 387.5 MB, free: 38.78 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002956/0.0002957, allocations: 8 kB / 459.9 MB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2799, allocations: 61.9 MB / 0.5096 GB, free: 38.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1058/0.3857, allocations: 90.02 MB / 0.5975 GB, free: 5.086 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/0.3859, allocations: 75.97 kB / 0.5975 GB, free: 5.012 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03439/0.4204, allocations: 13.3 MB / 0.6105 GB, free: 7.703 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4204, allocations: 0 / 0.6105 GB, free: 7.703 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.894e-05/0.4204, allocations: 15.98 kB / 0.6105 GB, free: 7.688 MB / 426.7 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.001361/0.4218, allocations: 0.8558 MB / 0.6114 GB, free: 6.754 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.4219, allocations: 8.562 kB / 0.6114 GB, free: 6.746 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.422, allocations: 51.44 kB / 0.6114 GB, free: 6.695 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008361/0.4228, allocations: 495.1 kB / 0.6119 GB, free: 6.168 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.391e-05/0.4229, allocations: 16.23 kB / 0.6119 GB, free: 6.152 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.4229, allocations: 11.98 kB / 0.6119 GB, free: 6.141 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005093/0.4234, allocations: 271.3 kB / 0.6122 GB, free: 5.836 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.4235, allocations: 0 / 0.6122 GB, free: 5.836 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.4235, allocations: 4 kB / 0.6122 GB, free: 5.832 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.4235, allocations: 11.92 kB / 0.6122 GB, free: 5.82 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/0.4238, allocations: 119.9 kB / 0.6123 GB, free: 5.703 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001254/0.4251, allocations: 0.9342 MB / 0.6132 GB, free: 4.707 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006039/0.4257, allocations: 302.9 kB / 0.6135 GB, free: 4.375 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.4257, allocations: 11.94 kB / 0.6135 GB, free: 4.363 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003928/0.4261, allocations: 214.8 kB / 0.6137 GB, free: 4.129 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 1.402e-06/0.4261, allocations: 0 / 0.6137 GB, free: 4.129 MB / 426.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009671/0.4271, allocations: 421.3 kB / 0.6141 GB, free: 3.711 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001667/0.4273, allocations: 354 kB / 0.6145 GB, free: 3.285 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000692/0.428, allocations: 0.5684 MB / 0.615 GB, free: 2.707 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.467e-05/0.428, allocations: 41.69 kB / 0.6151 GB, free: 2.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.4282, allocations: 216.6 kB / 0.6153 GB, free: 2.445 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.621e-05/0.4283, allocations: 75.16 kB / 0.6154 GB, free: 2.371 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.389e-05/0.4283, allocations: 8 kB / 0.6154 GB, free: 2.363 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4284, allocations: 370.7 kB / 0.6157 GB, free: 1.992 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/0.4286, allocations: 83.95 kB / 0.6158 GB, free: 1.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003197/0.429, allocations: 257.6 kB / 0.616 GB, free: 1.598 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002208/0.4292, allocations: 111.9 kB / 0.6161 GB, free: 1.488 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4292, allocations: 0 / 0.6161 GB, free: 1.488 MB / 426.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005783/0.4298, allocations: 325.4 kB / 0.6165 GB, free: 1.164 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4298, allocations: 8 kB / 0.6165 GB, free: 1.156 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.4298, allocations: 0 / 0.6165 GB, free: 1.156 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.4299, allocations: 8.125 kB / 0.6165 GB, free: 1.148 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002553/0.4301, allocations: 55.86 kB / 0.6165 GB, free: 1.094 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.4301, allocations: 7.984 kB / 0.6165 GB, free: 1.086 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002059/0.4304, allocations: 31.91 kB / 0.6166 GB, free: 1.055 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.4304, allocations: 15.98 kB / 0.6166 GB, free: 1.039 MB / 426.7 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.0002401/0.4306, allocations: 219.1 kB / 0.6168 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.909e-05/0.4307, allocations: 51.34 kB / 0.6168 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007415/0.4315, allocations: 381.2 kB / 0.6172 GB, free: 396 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.4315, allocations: 4 kB / 0.6172 GB, free: 392 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.4315, allocations: 3.953 kB / 0.6172 GB, free: 388 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.433e-06/0.4315, allocations: 7.984 kB / 0.6172 GB, free: 380 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004288/0.4319, allocations: 433.2 kB / 0.6176 GB, free: 15.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.432, allocations: 0 / 0.6176 GB, free: 15.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.4321, allocations: 39.91 kB / 0.6177 GB, free: 15.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.4321, allocations: 4 kB / 0.6177 GB, free: 15.86 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.61e-05/0.4321, allocations: 11.98 kB / 0.6177 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.4322, allocations: 3.938 kB / 0.6177 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4322, allocations: 4 kB / 0.6177 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006494/0.4328, allocations: 425.8 kB / 0.6181 GB, free: 15.37 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001816/0.433, allocations: 156.5 kB / 0.6182 GB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.586e-05/0.4331, allocations: 11.98 kB / 0.6183 GB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.4333, allocations: 23.92 kB / 0.6183 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.562e-05/0.4334, allocations: 39.95 kB / 0.6183 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.763e-05/0.4334, allocations: 15.98 kB / 0.6183 GB, free: 15.11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005073/0.4339, allocations: 466.8 kB / 0.6188 GB, free: 14.66 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4339, allocations: 0 / 0.6188 GB, free: 14.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000473/0.4344, allocations: 127.8 kB / 0.6189 GB, free: 14.53 MB / 442.7 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 (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.001198/0.4356, allocations: 478.8 kB / 0.6194 GB, free: 14.22 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006287/0.4363, allocations: 279.7 kB / 0.6196 GB, free: 13.95 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4363, allocations: 0 / 0.6196 GB, free: 13.95 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003511/0.4366, allocations: 188.2 kB / 0.6198 GB, free: 13.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006108/0.4372, allocations: 127.9 kB / 0.6199 GB, free: 13.64 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.4386, allocations: 0.8787 MB / 0.6208 GB, free: 12.72 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000552/0.4392, allocations: 0.8587 MB / 0.6216 GB, free: 11.83 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002685/0.4395, allocations: 95.7 kB / 0.6217 GB, free: 11.74 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.4396, allocations: 47.42 kB / 0.6218 GB, free: 11.69 MB / 442.7 MB Notification: Performance of SimCode: time 9.92e-07/0.4396, allocations: 0 / 0.6218 GB, free: 11.69 MB / 442.7 MB Notification: Performance of Templates: time 0.01181/0.4515, allocations: 7.346 MB / 0.6289 GB, free: 4.395 MB / 442.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches