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.001039/0.001039, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001135/0.001135, allocations: 194 kB / 18.77 MB, free: 4.742 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.339/1.339, allocations: 222.9 MB / 242.5 MB, free: 13.78 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.2026/0.2026, allocations: 44.19 MB / 336.8 MB, free: 2.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 63.41 kB / 408.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1168, allocations: 60.84 MB / 469.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003658/0.1205, allocations: 2.309 MB / 471.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.1229, allocations: 1.547 MB / 473 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.123, allocations: 7.938 kB / 473 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004027/0.1234, allocations: 123.6 kB / 473.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003681/0.1238, allocations: 203.2 kB / 473.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.1252, allocations: 0.6042 MB / 474 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005054/0.1257, allocations: 494.6 kB / 474.4 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.1259, allocations: 73.06 kB / 474.5 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002489/0.1261, allocations: 207 kB / 474.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002328/0.1264, allocations: 207 kB / 474.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.565e-05/0.1264, allocations: 12 kB / 474.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002674/0.1267, allocations: 127.8 kB / 475.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000154/0.1269, allocations: 111.6 kB / 475.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.127, allocations: 182.7 kB / 475.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004083/0.1275, allocations: 435.4 kB / 475.8 MB, free: 8.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1275, allocations: 4 kB / 475.8 MB, free: 8.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1275, allocations: 0 / 475.8 MB, free: 8.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.1275, allocations: 0 / 475.8 MB, free: 8.207 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.001157/0.1287, allocations: 0.8903 MB / 476.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.1287, allocations: 12.02 kB / 476.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.1288, allocations: 52.28 kB / 476.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005563/0.1294, allocations: 464 kB / 477.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.351e-05/0.1294, allocations: 20.59 kB / 477.2 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.312e-05/0.1294, allocations: 16.12 kB / 477.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004643/0.1299, allocations: 261.4 kB / 477.5 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.1299, allocations: 3.984 kB / 477.5 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.508e-05/0.13, allocations: 4 kB / 477.5 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.13, allocations: 4 kB / 477.5 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003134/0.1303, allocations: 111.9 kB / 477.6 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.1313, allocations: 0.8757 MB / 478.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006768/0.132, allocations: 294.5 kB / 478.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002401/0.1323, allocations: 111.4 kB / 478.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.1323, allocations: 3.938 kB / 478.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000473/0.1328, allocations: 218.6 kB / 479.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.1328, allocations: 0 / 479.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009671/0.1338, allocations: 404.9 kB / 479.5 MB, free: 4.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001444/0.1339, allocations: 346.1 kB / 479.8 MB, free: 3.789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006629/0.1346, allocations: 0.6277 MB / 480.4 MB, free: 3.152 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/0.1347, allocations: 41.7 kB / 480.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001876/0.1349, allocations: 224.5 kB / 480.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.691e-05/0.1349, allocations: 71.17 kB / 480.8 MB, free: 2.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.154e-05/0.135, allocations: 61.62 kB / 480.8 MB, free: 2.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1352, allocations: 366.8 kB / 481.2 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.1354, allocations: 83.94 kB / 481.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003343/0.1358, allocations: 253.5 kB / 481.5 MB, free: 1.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004723/0.1362, allocations: 231.5 kB / 481.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.1362, allocations: 4 kB / 481.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006366/0.1369, allocations: 316.8 kB / 482.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.1369, allocations: 8 kB / 482.1 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1369, allocations: 0 / 482.1 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.137, allocations: 7.938 kB / 482.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002667/0.1372, allocations: 59.91 kB / 482.1 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.1372, allocations: 0 / 482.1 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.1374, allocations: 27.83 kB / 482.2 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.1375, allocations: 12.12 kB / 482.2 MB, free: 1.305 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.0002292/0.1377, allocations: 217.7 kB / 482.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.897e-05/0.1378, allocations: 55.34 kB / 482.4 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.628e-05/0.1379, allocations: 59.89 kB / 482.5 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1379, allocations: 7.938 kB / 482.5 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1379, allocations: 0 / 482.5 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.138, allocations: 8.234 kB / 482.5 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003785/0.1383, allocations: 401.3 kB / 482.9 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1383, allocations: 4 kB / 482.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.1385, allocations: 39.86 kB / 483 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1385, allocations: 0 / 483 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.516e-05/0.1385, allocations: 7.984 kB / 483 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.1385, allocations: 7.938 kB / 483 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1385, allocations: 0 / 483 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006795/0.1392, allocations: 366.7 kB / 483.3 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.1393, allocations: 124.5 kB / 483.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.786e-05/0.1394, allocations: 11.98 kB / 483.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.1396, allocations: 23.86 kB / 483.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.1397, allocations: 35.95 kB / 483.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.474e-05/0.1398, allocations: 16 kB / 483.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005015/0.1403, allocations: 462.8 kB / 484 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1403, allocations: 4 kB / 484 MB, free: 15.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000423/0.1407, allocations: 99.89 kB / 484.1 MB, free: 15.29 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.001216/0.1419, allocations: 460.7 kB / 484.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000573/0.1425, allocations: 227.6 kB / 484.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.1425, allocations: 0 / 484.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002958/0.1428, allocations: 128.1 kB / 484.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006777/0.1435, allocations: 137 kB / 485 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.1449, allocations: 0.9136 MB / 485.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004016/0.1453, allocations: 0.8392 MB / 486.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.1454, allocations: 51.41 kB / 486.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1454, allocations: 0 / 486.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of Templates: time 0.0112/0.1566, allocations: 7.046 MB / 493.9 MB, free: 5.621 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches