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.001195/0.001195, allocations: 107.1 kB / 18.39 MB, free: 4.629 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.001144/0.001144, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.403/1.403, allocations: 222.9 MB / 243 MB, free: 15.08 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.2019/0.2019, allocations: 44.18 MB / 337.4 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 61.25 kB / 409.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1288, allocations: 60.83 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003526/0.1323, allocations: 2.274 MB / 473 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002415/0.1348, allocations: 1.559 MB / 474.5 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.1349, allocations: 7.938 kB / 474.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004046/0.1353, allocations: 135.3 kB / 474.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004355/0.1358, allocations: 226.9 kB / 474.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001546/0.1374, allocations: 0.6573 MB / 475.5 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006014/0.138, allocations: 0.5298 MB / 476.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.1382, allocations: 65.08 kB / 476.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002613/0.1384, allocations: 223.1 kB / 476.4 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002614/0.1387, allocations: 223 kB / 476.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.654e-05/0.1387, allocations: 24 kB / 476.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003108/0.1391, allocations: 167.8 kB / 476.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.1392, allocations: 135.5 kB / 476.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.1394, allocations: 194.8 kB / 477.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006415/0.1401, allocations: 0.5684 MB / 477.7 MB, free: 6.695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1401, allocations: 0 / 477.7 MB, free: 6.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.1401, allocations: 0 / 477.7 MB, free: 6.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1401, allocations: 0 / 477.7 MB, free: 6.695 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.001309/0.1414, allocations: 0.8942 MB / 478.5 MB, free: 5.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.1414, allocations: 8.031 kB / 478.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.1416, allocations: 56.28 kB / 478.6 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006747/0.1423, allocations: 460.1 kB / 479.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.1423, allocations: 20.59 kB / 479.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.062e-05/0.1423, allocations: 16.11 kB / 479.1 MB, free: 5.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004308/0.1428, allocations: 259.3 kB / 479.3 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.1428, allocations: 7.938 kB / 479.4 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.316e-05/0.1428, allocations: 4 kB / 479.4 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.1428, allocations: 11.94 kB / 479.4 MB, free: 4.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/0.1431, allocations: 107.9 kB / 479.5 MB, free: 4.715 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.1442, allocations: 0.8757 MB / 480.4 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006157/0.1448, allocations: 298.6 kB / 480.6 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002156/0.145, allocations: 107.3 kB / 480.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.891e-05/0.1451, allocations: 4 kB / 480.8 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004119/0.1455, allocations: 220.2 kB / 481 MB, free: 3.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.1455, allocations: 0 / 481 MB, free: 3.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009203/0.1464, allocations: 400.7 kB / 481.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001524/0.1466, allocations: 354.1 kB / 481.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006844/0.1473, allocations: 0.6277 MB / 482.3 MB, free: 1.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.635e-05/0.1473, allocations: 41.64 kB / 482.4 MB, free: 1.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.1475, allocations: 224.5 kB / 482.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.389e-05/0.1476, allocations: 67.17 kB / 482.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.1477, allocations: 65.69 kB / 482.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1478, allocations: 362.8 kB / 483.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.148, allocations: 87.94 kB / 483.2 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002984/0.1484, allocations: 245 kB / 483.4 MB, free: 484 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004221/0.1488, allocations: 227.8 kB / 483.6 MB, free: 232 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1488, allocations: 0 / 483.6 MB, free: 232 kB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005809/0.1494, allocations: 312.8 kB / 483.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.1494, allocations: 11.98 kB / 483.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1494, allocations: 0 / 483.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.1495, allocations: 7.938 kB / 483.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.1497, allocations: 55.91 kB / 484 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1497, allocations: 8.125 kB / 484 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/0.1499, allocations: 27.83 kB / 484 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.025e-05/0.1499, allocations: 8 kB / 484 MB, free: 15.79 MB / 366.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.000232/0.1502, allocations: 222 kB / 484.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.96e-05/0.1503, allocations: 51.34 kB / 484.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.873e-05/0.1504, allocations: 59.91 kB / 484.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.1504, allocations: 7.938 kB / 484.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1504, allocations: 0 / 484.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001117/0.1505, allocations: 11.97 kB / 484.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00041/0.1509, allocations: 401.2 kB / 484.8 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.1509, allocations: 4 kB / 484.8 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002096/0.1512, allocations: 27.92 kB / 484.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.1512, allocations: 4 kB / 484.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.125e-05/0.1512, allocations: 7.984 kB / 484.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.1512, allocations: 7.922 kB / 484.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.1512, allocations: 4 kB / 484.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000626/0.1518, allocations: 362.4 kB / 485.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.152, allocations: 136.4 kB / 485.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.374e-05/0.1521, allocations: 8 kB / 485.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.1522, allocations: 23.91 kB / 485.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.548e-05/0.1523, allocations: 35.97 kB / 485.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.302e-05/0.1524, allocations: 15.98 kB / 485.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005159/0.1529, allocations: 462.8 kB / 485.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1529, allocations: 0 / 485.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004361/0.1533, allocations: 103.9 kB / 486 MB, free: 13.78 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.001027/0.1544, allocations: 463.2 kB / 486.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005386/0.1549, allocations: 235.8 kB / 486.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.1549, allocations: 4 kB / 486.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003439/0.1553, allocations: 175.8 kB / 486.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006482/0.1559, allocations: 140.6 kB / 487 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.1572, allocations: 0.7585 MB / 487.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.1576, allocations: 0.835 MB / 488.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002652/0.1579, allocations: 95.19 kB / 488.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.158, allocations: 51.41 kB / 488.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of SimCode: time 1.193e-06/0.158, allocations: 0 / 488.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of Templates: time 0.01333/0.1714, allocations: 7.542 MB / 496.2 MB, free: 3.656 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 -s cvode -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