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.001147/0.001147, allocations: 104.3 kB / 17.63 MB, free: 5.344 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.001158/0.001158, allocations: 192 kB / 18.56 MB, free: 4.434 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.322/1.322, allocations: 222.9 MB / 242.3 MB, free: 15.15 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.2088/0.2088, allocations: 44.18 MB / 336.6 MB, free: 2.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 64.91 kB / 408.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1267, allocations: 60.83 MB / 469.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.004352/0.1311, allocations: 2.259 MB / 471.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002874/0.134, allocations: 1.559 MB / 473.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003618/0.1344, allocations: 7.938 kB / 473.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004956/0.1349, allocations: 139.3 kB / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000681/0.1356, allocations: 223 kB / 473.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001844/0.1375, allocations: 0.6601 MB / 474.1 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007365/0.1382, allocations: 0.5259 MB / 474.6 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.1384, allocations: 69.06 kB / 474.7 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00039/0.1388, allocations: 223.1 kB / 474.9 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003261/0.1392, allocations: 211.1 kB / 475.1 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.141e-05/0.1392, allocations: 28 kB / 475.1 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000322/0.1396, allocations: 155.8 kB / 475.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001807/0.1398, allocations: 131.5 kB / 475.4 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002397/0.14, allocations: 198.8 kB / 475.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008033/0.1408, allocations: 0.5648 MB / 476.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1408, allocations: 0 / 476.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1409, allocations: 4 kB / 476.2 MB, free: 7.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.685e-05/0.1409, allocations: 0 / 476.2 MB, free: 7.395 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.001519/0.1424, allocations: 0.8825 MB / 477.1 MB, free: 6.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.1424, allocations: 12.02 kB / 477.1 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.1426, allocations: 52.28 kB / 477.1 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005932/0.1432, allocations: 464.1 kB / 477.6 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.1432, allocations: 12.59 kB / 477.6 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.853e-05/0.1432, allocations: 28.06 kB / 477.6 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004586/0.1437, allocations: 255.3 kB / 477.9 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1437, allocations: 0 / 477.9 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.1438, allocations: 8 kB / 477.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.1438, allocations: 0 / 477.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003317/0.1441, allocations: 111.9 kB / 478 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.1452, allocations: 0.8756 MB / 478.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006758/0.1459, allocations: 302.5 kB / 479.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002237/0.1462, allocations: 107.4 kB / 479.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.1462, allocations: 4 kB / 479.3 MB, free: 4.043 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004604/0.1467, allocations: 230.4 kB / 479.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.995e-06/0.1467, allocations: 0 / 479.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009597/0.1476, allocations: 405.6 kB / 479.9 MB, free: 3.395 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001681/0.1478, allocations: 342.1 kB / 480.2 MB, free: 2.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007726/0.1486, allocations: 0.6316 MB / 480.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.53e-05/0.1486, allocations: 37.7 kB / 480.9 MB, free: 2.297 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/0.1488, allocations: 224.5 kB / 481.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.234e-05/0.1489, allocations: 67.11 kB / 481.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.863e-05/0.149, allocations: 65.69 kB / 481.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.1492, allocations: 362.7 kB / 481.6 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002114/0.1494, allocations: 87.94 kB / 481.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000315/0.1497, allocations: 249.1 kB / 481.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004606/0.1502, allocations: 230.7 kB / 482.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1502, allocations: 0 / 482.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006421/0.1509, allocations: 325 kB / 482.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.1509, allocations: 4 kB / 482.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.1509, allocations: 4 kB / 482.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.1509, allocations: 7.938 kB / 482.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002407/0.1512, allocations: 51.91 kB / 482.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.1512, allocations: 4 kB / 482.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001964/0.1514, allocations: 27.83 kB / 482.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.318e-05/0.1514, allocations: 12 kB / 482.6 MB, free: 0.5 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 ($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.0002215/0.1516, allocations: 217.8 kB / 482.8 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.705e-05/0.1517, allocations: 55.34 kB / 482.8 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.866e-05/0.1518, allocations: 51.91 kB / 482.9 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.1519, allocations: 7.938 kB / 482.9 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.1519, allocations: 4 kB / 482.9 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1519, allocations: 3.984 kB / 482.9 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003859/0.1523, allocations: 405.3 kB / 483.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1523, allocations: 0 / 483.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.1524, allocations: 23.98 kB / 483.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.1524, allocations: 4 kB / 483.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/0.1525, allocations: 19.92 kB / 483.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1525, allocations: 3.938 kB / 483.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1525, allocations: 0 / 483.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006302/0.1531, allocations: 354.9 kB / 483.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.847e-05/0.1532, allocations: 132.5 kB / 483.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.325e-05/0.1533, allocations: 16 kB / 483.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.1535, allocations: 19.91 kB / 483.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.1536, allocations: 39.84 kB / 483.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.369e-05/0.1536, allocations: 23.92 kB / 483.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005044/0.1541, allocations: 458.8 kB / 484.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1541, allocations: 0 / 484.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004199/0.1546, allocations: 107.9 kB / 484.5 MB, free: 14.49 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.00107/0.1556, allocations: 456.9 kB / 484.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006053/0.1563, allocations: 235.6 kB / 485.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.1563, allocations: 4 kB / 485.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003479/0.1566, allocations: 168 kB / 485.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006966/0.1573, allocations: 163 kB / 485.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.1585, allocations: 0.7661 MB / 486.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.1589, allocations: 0.8428 MB / 487.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002327/0.1592, allocations: 83.22 kB / 487.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.1593, allocations: 55.41 kB / 487.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1593, allocations: 0 / 487.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of Templates: time 0.01405/0.1733, allocations: 7.553 MB / 494.8 MB, free: 4.34 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches