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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001575/0.001581, allocations: 196.4 kB / 18.1 MB, free: 3.605 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 226.5 MB / 245.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008246/0.0008248, allocations: 103.6 kB / 297.5 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.471/0.471, allocations: 44.83 MB / 394.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003128/0.000313, allocations: 12 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3913/0.3916, allocations: 62.95 MB / 0.5184 GB, free: 37.62 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.5201, allocations: 91.38 MB / 0.6077 GB, free: 13.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.5203, allocations: 67.95 kB / 0.6077 GB, free: 13.84 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04339/0.5637, allocations: 14.53 MB / 0.6219 GB, free: 15.29 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5638, allocations: 3.938 kB / 0.6219 GB, free: 15.29 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.67e-05/0.5639, allocations: 8 kB / 0.6219 GB, free: 15.28 MB / 442.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.002017/0.5659, allocations: 0.8988 MB / 0.6228 GB, free: 14.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.566, allocations: 16.81 kB / 0.6228 GB, free: 14.29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002682/0.5662, allocations: 56.28 kB / 0.6229 GB, free: 14.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.5673, allocations: 0.5273 MB / 0.6234 GB, free: 13.67 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/0.5674, allocations: 12.61 kB / 0.6234 GB, free: 13.66 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.968e-05/0.5674, allocations: 16.31 kB / 0.6234 GB, free: 13.64 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004936/0.5679, allocations: 270.6 kB / 0.6237 GB, free: 13.34 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.568, allocations: 192 / 0.6237 GB, free: 13.34 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.833e-05/0.568, allocations: 7.938 kB / 0.6237 GB, free: 13.33 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.568, allocations: 4 kB / 0.6237 GB, free: 13.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000467/0.5685, allocations: 127.8 kB / 0.6238 GB, free: 13.2 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.5699, allocations: 0.9306 MB / 0.6247 GB, free: 12.21 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006137/0.5705, allocations: 310.5 kB / 0.625 GB, free: 11.87 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002289/0.5707, allocations: 111.4 kB / 0.6251 GB, free: 11.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.5708, allocations: 8.125 kB / 0.6251 GB, free: 11.74 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004121/0.5712, allocations: 232.8 kB / 0.6253 GB, free: 11.49 MB / 442.7 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.5712, allocations: 0 / 0.6253 GB, free: 11.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=24): time 0.001022/0.5722, allocations: 420.7 kB / 0.6257 GB, free: 11.07 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001539/0.5724, allocations: 342.1 kB / 0.6261 GB, free: 10.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009367/0.5733, allocations: 0.6709 MB / 0.6267 GB, free: 9.973 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.16e-05/0.5734, allocations: 37.7 kB / 0.6268 GB, free: 9.93 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001812/0.5736, allocations: 240.4 kB / 0.627 GB, free: 9.691 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.459e-05/0.5737, allocations: 63.17 kB / 0.627 GB, free: 9.629 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.312e-05/0.5737, allocations: 4 kB / 0.6271 GB, free: 9.625 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.5738, allocations: 374.7 kB / 0.6274 GB, free: 9.25 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.5741, allocations: 87.95 kB / 0.6275 GB, free: 9.164 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003327/0.5744, allocations: 266 kB / 0.6277 GB, free: 8.844 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000453/0.5749, allocations: 239.7 kB / 0.628 GB, free: 8.586 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.5749, allocations: 4 kB / 0.628 GB, free: 8.582 MB / 442.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006705/0.5756, allocations: 324.8 kB / 0.6283 GB, free: 8.258 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.5756, allocations: 4 kB / 0.6283 GB, free: 8.254 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.5756, allocations: 4 kB / 0.6283 GB, free: 8.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.5756, allocations: 7.938 kB / 0.6283 GB, free: 8.242 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002471/0.5759, allocations: 60.08 kB / 0.6284 GB, free: 8.184 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.5759, allocations: 11.92 kB / 0.6284 GB, free: 8.172 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002361/0.5761, allocations: 31.77 kB / 0.6284 GB, free: 8.141 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.5762, allocations: 16 kB / 0.6284 GB, free: 8.125 MB / 442.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.0002741/0.5765, allocations: 222.5 kB / 0.6286 GB, free: 7.898 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.072e-05/0.5766, allocations: 55.34 kB / 0.6287 GB, free: 7.844 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007978/0.5774, allocations: 389.7 kB / 0.6291 GB, free: 7.457 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.5774, allocations: 7.938 kB / 0.6291 GB, free: 7.449 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.5774, allocations: 0 / 0.6291 GB, free: 7.449 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.5774, allocations: 3.938 kB / 0.6291 GB, free: 7.445 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005681/0.578, allocations: 453.1 kB / 0.6295 GB, free: 6.953 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.578, allocations: 4 kB / 0.6295 GB, free: 6.949 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.5782, allocations: 27.98 kB / 0.6295 GB, free: 6.922 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.5782, allocations: 4 kB / 0.6295 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/0.5782, allocations: 11.98 kB / 0.6295 GB, free: 6.906 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.5782, allocations: 4 kB / 0.6295 GB, free: 6.902 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.5782, allocations: 3.938 kB / 0.6296 GB, free: 6.898 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007465/0.579, allocations: 394.8 kB / 0.6299 GB, free: 6.484 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002065/0.5792, allocations: 160.4 kB / 0.6301 GB, free: 6.309 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.013e-05/0.5793, allocations: 8 kB / 0.6301 GB, free: 6.301 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.5795, allocations: 23.97 kB / 0.6301 GB, free: 6.277 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.5797, allocations: 39.89 kB / 0.6301 GB, free: 6.238 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.259e-05/0.5797, allocations: 12 kB / 0.6302 GB, free: 6.227 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007142/0.5805, allocations: 498.7 kB / 0.6306 GB, free: 5.742 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5805, allocations: 0 / 0.6306 GB, free: 5.742 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006167/0.5811, allocations: 139.8 kB / 0.6308 GB, free: 5.605 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.001266/0.5824, allocations: 457 kB / 0.6312 GB, free: 5.293 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0008224/0.5832, allocations: 280.8 kB / 0.6315 GB, free: 5.02 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5832, allocations: 7.938 kB / 0.6315 GB, free: 5.012 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004297/0.5837, allocations: 184.1 kB / 0.6317 GB, free: 4.832 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008633/0.5845, allocations: 135.2 kB / 0.6318 GB, free: 4.695 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.5867, allocations: 0.9232 MB / 0.6327 GB, free: 3.734 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000674/0.5874, allocations: 0.851 MB / 0.6335 GB, free: 2.852 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005023/0.5879, allocations: 91.2 kB / 0.6336 GB, free: 2.762 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001909/0.5881, allocations: 55.42 kB / 0.6337 GB, free: 2.707 MB / 442.7 MB Notification: Performance of SimCode: time 1.433e-06/0.5881, allocations: 0 / 0.6337 GB, free: 2.707 MB / 442.7 MB Notification: Performance of Templates: time 0.01591/0.604, allocations: 7.567 MB / 0.641 GB, free: 11.17 MB / 458.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches