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.001426/0.001426, allocations: 98.11 kB / 16.99 MB, free: 6.402 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.00162/0.00162, allocations: 178.7 kB / 17.88 MB, free: 5.957 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.471/1.471, allocations: 223.2 MB / 241.8 MB, free: 14.64 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.2502/0.2502, allocations: 44.21 MB / 337.1 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003331/0.0003331, allocations: 8 kB / 409.5 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1273, allocations: 61.92 MB / 471.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.002811/0.1302, allocations: 1.861 MB / 473.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002421/0.1326, allocations: 1.373 MB / 474.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.1328, allocations: 7.938 kB / 474.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003838/0.1332, allocations: 115.5 kB / 474.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004085/0.1336, allocations: 187.5 kB / 475 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.1351, allocations: 0.5575 MB / 475.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005399/0.1357, allocations: 323.3 kB / 475.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001755/0.1358, allocations: 57.25 kB / 475.9 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002707/0.1361, allocations: 199.1 kB / 476.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.1364, allocations: 163.3 kB / 476.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.587e-05/0.1364, allocations: 12 kB / 476.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003327/0.1367, allocations: 111.8 kB / 476.4 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000156/0.1369, allocations: 103.6 kB / 476.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.137, allocations: 101.5 kB / 476.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005339/0.1376, allocations: 423.3 kB / 477 MB, free: 8.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1376, allocations: 0 / 477 MB, free: 8.141 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.1376, allocations: 0 / 477 MB, free: 8.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1376, allocations: 0 / 477 MB, free: 8.141 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.001355/0.139, allocations: 0.8164 MB / 477.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.423e-05/0.1391, allocations: 12.56 kB / 477.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.1392, allocations: 47.44 kB / 477.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007385/0.1399, allocations: 447.3 kB / 478.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.14, allocations: 8.234 kB / 478.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.92e-05/0.14, allocations: 23.89 kB / 478.3 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005207/0.1405, allocations: 257.4 kB / 478.6 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.1406, allocations: 0 / 478.6 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.1406, allocations: 8 kB / 478.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.1406, allocations: 8 kB / 478.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002924/0.1409, allocations: 107.9 kB / 478.7 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.1421, allocations: 0.8757 MB / 479.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006322/0.1428, allocations: 290.9 kB / 479.9 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.1428, allocations: 4 kB / 479.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004545/0.1433, allocations: 214.8 kB / 480.1 MB, free: 4.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.813e-06/0.1433, allocations: 0 / 480.1 MB, free: 4.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009066/0.1442, allocations: 405.5 kB / 480.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002105/0.1444, allocations: 346.1 kB / 480.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007964/0.1452, allocations: 0.6354 MB / 481.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.094e-05/0.1453, allocations: 37.7 kB / 481.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/0.1455, allocations: 220.6 kB / 481.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.611e-05/0.1456, allocations: 71.25 kB / 481.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.564e-05/0.1456, allocations: 4 kB / 481.8 MB, free: 2.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.1458, allocations: 366.7 kB / 482.1 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.146, allocations: 79.95 kB / 482.2 MB, free: 2.527 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003312/0.1464, allocations: 249 kB / 482.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002314/0.1466, allocations: 108 kB / 482.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.1466, allocations: 0 / 482.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006073/0.1472, allocations: 312.8 kB / 482.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.1473, allocations: 8 kB / 482.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-06/0.1473, allocations: 0 / 482.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.1473, allocations: 4 kB / 482.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.1476, allocations: 63.88 kB / 483 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.1476, allocations: 7.953 kB / 483 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.1478, allocations: 31.95 kB / 483 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.1478, allocations: 16 kB / 483 MB, free: 1.676 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 ($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.0002513/0.1481, allocations: 218 kB / 483.2 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.467e-05/0.1482, allocations: 55.34 kB / 483.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.864e-05/0.1483, allocations: 55.91 kB / 483.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.1483, allocations: 4 kB / 483.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.1483, allocations: 4 kB / 483.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.1483, allocations: 3.953 kB / 483.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004274/0.1488, allocations: 405.2 kB / 483.7 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1488, allocations: 4 kB / 483.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.1489, allocations: 35.91 kB / 483.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.1489, allocations: 0 / 483.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.106e-05/0.1489, allocations: 11.98 kB / 483.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.149, allocations: 0 / 483.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.149, allocations: 0 / 483.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006633/0.1496, allocations: 398.2 kB / 484.2 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.1498, allocations: 140.4 kB / 484.3 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.909e-05/0.1499, allocations: 11.95 kB / 484.3 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.15, allocations: 19.98 kB / 484.3 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.1502, allocations: 43.94 kB / 484.4 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.393e-05/0.1502, allocations: 12 kB / 484.4 MB, free: 164 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005586/0.1508, allocations: 462.8 kB / 484.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1508, allocations: 3.938 kB / 484.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004629/0.1512, allocations: 95.92 kB / 484.9 MB, free: 15.61 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 (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.001102/0.1523, allocations: 458.2 kB / 485.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005679/0.1529, allocations: 232 kB / 485.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1529, allocations: 0 / 485.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003569/0.1533, allocations: 168.3 kB / 485.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000624/0.1539, allocations: 126.2 kB / 485.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.1552, allocations: 0.8389 MB / 486.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.1557, allocations: 0.847 MB / 487.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002464/0.1559, allocations: 95.19 kB / 487.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.156, allocations: 55.34 kB / 487.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1561, allocations: 0 / 487.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of Templates: time 0.01233/0.1684, allocations: 6.879 MB / 494.6 MB, free: 6.078 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches