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.001134/0.001134, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.001235/0.001235, allocations: 187 kB / 19.34 MB, free: 3.641 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.332/1.332, allocations: 222.9 MB / 243 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.2227/0.2227, allocations: 44.18 MB / 337.4 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 71.55 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1214, allocations: 60.82 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003629/0.125, allocations: 2.261 MB / 473 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002488/0.1275, allocations: 1.563 MB / 474.5 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002042/0.1278, allocations: 7.938 kB / 474.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004094/0.1282, allocations: 143.3 kB / 474.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000506/0.1287, allocations: 222.9 kB / 474.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001566/0.1303, allocations: 0.6574 MB / 475.6 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006423/0.1309, allocations: 0.5259 MB / 476.1 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.1311, allocations: 69.06 kB / 476.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002972/0.1314, allocations: 227.1 kB / 476.4 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002672/0.1317, allocations: 219.1 kB / 476.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.839e-05/0.1318, allocations: 24 kB / 476.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002966/0.1321, allocations: 171.8 kB / 476.8 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.1322, allocations: 131.5 kB / 476.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001838/0.1324, allocations: 194.8 kB / 477.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006026/0.133, allocations: 0.5723 MB / 477.7 MB, free: 6.691 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.133, allocations: 0 / 477.7 MB, free: 6.691 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.133, allocations: 0 / 477.7 MB, free: 6.691 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.133, allocations: 0 / 477.7 MB, free: 6.691 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.001196/0.1342, allocations: 0.8903 MB / 478.6 MB, free: 5.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.1343, allocations: 8.031 kB / 478.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.1344, allocations: 56.28 kB / 478.6 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006591/0.1351, allocations: 460.1 kB / 479.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.052e-05/0.1351, allocations: 12.61 kB / 479.1 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.843e-05/0.1351, allocations: 16.12 kB / 479.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000437/0.1356, allocations: 263.3 kB / 479.4 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.1356, allocations: 0 / 479.4 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.617e-05/0.1356, allocations: 11.98 kB / 479.4 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.1357, allocations: 7.938 kB / 479.4 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002836/0.1359, allocations: 111.9 kB / 479.5 MB, free: 4.719 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.137, allocations: 0.8719 MB / 480.4 MB, free: 3.785 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006192/0.1376, allocations: 298.5 kB / 480.6 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002108/0.1379, allocations: 107.3 kB / 480.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.1379, allocations: 11.97 kB / 480.8 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003846/0.1383, allocations: 226.3 kB / 481 MB, free: 3.086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.1383, allocations: 0 / 481 MB, free: 3.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009275/0.1392, allocations: 396.8 kB / 481.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/0.1394, allocations: 354.1 kB / 481.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006755/0.1401, allocations: 0.6277 MB / 482.3 MB, free: 1.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/0.1401, allocations: 33.7 kB / 482.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/0.1403, allocations: 228.5 kB / 482.6 MB, free: 1.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.139e-05/0.1404, allocations: 63.09 kB / 482.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.312e-05/0.1405, allocations: 65.69 kB / 482.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1406, allocations: 366.8 kB / 483.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002012/0.1408, allocations: 91.88 kB / 483.2 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000305/0.1411, allocations: 241.1 kB / 483.4 MB, free: 488 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004392/0.1416, allocations: 235.7 kB / 483.6 MB, free: 228 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1416, allocations: 0 / 483.6 MB, free: 228 kB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006153/0.1422, allocations: 312.8 kB / 483.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.1422, allocations: 8 kB / 484 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1423, allocations: 0 / 484 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.1423, allocations: 7.938 kB / 484 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.1425, allocations: 55.97 kB / 484 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.1426, allocations: 8 kB / 484 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/0.1428, allocations: 27.83 kB / 484 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.1428, allocations: 15.98 kB / 484.1 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.0002127/0.143, allocations: 222 kB / 484.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.583e-05/0.1431, allocations: 55.33 kB / 484.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.537e-05/0.1432, allocations: 55.91 kB / 484.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.1432, allocations: 7.938 kB / 484.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1432, allocations: 4 kB / 484.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1432, allocations: 0 / 484.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003723/0.1436, allocations: 401.2 kB / 484.8 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1436, allocations: 4 kB / 484.8 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.1438, allocations: 23.92 kB / 484.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.1438, allocations: 4 kB / 484.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.1438, allocations: 11.98 kB / 484.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.1438, allocations: 3.938 kB / 484.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1438, allocations: 4 kB / 484.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006357/0.1445, allocations: 362.7 kB / 485.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.1446, allocations: 132.5 kB / 485.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.397e-05/0.1447, allocations: 12 kB / 485.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.1448, allocations: 15.92 kB / 485.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.374e-05/0.1449, allocations: 43.95 kB / 485.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.064e-05/0.145, allocations: 12 kB / 485.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004976/0.1455, allocations: 462.8 kB / 485.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1455, allocations: 0 / 485.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004122/0.1459, allocations: 103.9 kB / 486 MB, free: 13.79 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.001058/0.147, allocations: 470.9 kB / 486.4 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005434/0.1475, allocations: 231.6 kB / 486.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.1475, allocations: 4 kB / 486.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003351/0.1479, allocations: 167.8 kB / 486.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000616/0.1485, allocations: 143 kB / 487 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.1496, allocations: 0.7624 MB / 487.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003939/0.15, allocations: 0.8389 MB / 488.6 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002178/0.1502, 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.0001203/0.1504, allocations: 51.36 kB / 488.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1504, allocations: 0 / 488.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of Templates: time 0.01313/0.1635, allocations: 7.543 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 gbode -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