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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009847/0.0009847, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 169.9 kB / 24.91 MB, free: 9.188 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9477/0.9477, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.265/0.265, allocations: 32.8 MB / 294.6 MB, free: 1.242 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,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=5007,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 323.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.52e-05/1.666e-05, allocations: 2.312 kB / 323.2 MB, free: 9.695 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.006125/0.006142, allocations: 2.328 MB / 325.6 MB, free: 7.355 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005409/0.01155, allocations: 1.687 MB / 327.3 MB, free: 5.664 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001259/0.01168, allocations: 3.938 kB / 327.3 MB, free: 5.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003621/0.01204, allocations: 139.1 kB / 327.4 MB, free: 5.523 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000463/0.0125, allocations: 298.6 kB / 327.7 MB, free: 5.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009091/0.01341, allocations: 0.5299 MB / 328.2 MB, free: 4.699 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003517/0.01693, allocations: 0.5848 MB / 328.8 MB, free: 4.113 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.01705, allocations: 53.22 kB / 328.9 MB, free: 4.055 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003138/0.01736, allocations: 315.1 kB / 329.2 MB, free: 3.746 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000205/0.01757, allocations: 183.5 kB / 329.3 MB, free: 3.566 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.714e-05/0.0176, allocations: 32 kB / 329.4 MB, free: 3.535 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002912/0.0179, allocations: 211.5 kB / 329.6 MB, free: 3.328 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.01802, allocations: 135.5 kB / 329.7 MB, free: 3.195 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.959e-05/0.01812, allocations: 111.6 kB / 329.8 MB, free: 3.086 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004569/0.01857, allocations: 458.3 kB / 330.3 MB, free: 2.637 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.01858, allocations: 0 / 330.3 MB, free: 2.637 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01858, allocations: 0 / 330.3 MB, free: 2.637 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.01858, allocations: 0 / 330.3 MB, free: 2.637 MB / 298.7 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.003167/0.02175, allocations: 0.8182 MB / 331.1 MB, free: 1.766 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.02178, allocations: 8.031 kB / 331.1 MB, free: 1.758 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.746e-05/0.02186, allocations: 40.89 kB / 331.1 MB, free: 1.719 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.02228, allocations: 349.8 kB / 331.5 MB, free: 1.352 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/0.02231, allocations: 12.61 kB / 331.5 MB, free: 1.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.02233, allocations: 12.38 kB / 331.5 MB, free: 1.328 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002567/0.02259, allocations: 178.4 kB / 331.7 MB, free: 1.133 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.0226, allocations: 3.938 kB / 331.7 MB, free: 1.129 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.02262, allocations: 8 kB / 331.7 MB, free: 1.117 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.02262, allocations: 4 kB / 331.7 MB, free: 1.113 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000439/0.02306, allocations: 59.22 kB / 331.7 MB, free: 1.051 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005656/0.02363, allocations: 0.5612 MB / 332.3 MB, free: 468 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002813/0.02391, allocations: 360.4 kB / 332.7 MB, free: 60 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.02401, allocations: 63.41 kB / 332.7 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.02403, allocations: 4 kB / 332.7 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002362/0.02427, allocations: 175.8 kB / 332.9 MB, free: 15.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.02427, allocations: 0 / 332.9 MB, free: 15.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003481/0.02462, allocations: 197.7 kB / 333.1 MB, free: 15.58 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.02467, allocations: 140.5 kB / 333.2 MB, free: 15.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006275/0.0253, allocations: 488.8 kB / 333.7 MB, free: 14.92 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/0.02533, allocations: 33.7 kB / 333.7 MB, free: 14.88 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.02544, allocations: 157.7 kB / 333.9 MB, free: 14.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.259e-05/0.0255, allocations: 67.52 kB / 334 MB, free: 14.66 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.648e-05/0.02558, allocations: 57.66 kB / 334 MB, free: 14.6 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.0257, allocations: 374.6 kB / 334.4 MB, free: 14.22 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.129e-05/0.02576, allocations: 30.75 kB / 334.4 MB, free: 14.19 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.02591, allocations: 216.8 kB / 334.6 MB, free: 13.92 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001809/0.02609, allocations: 156.8 kB / 334.8 MB, free: 13.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.02609, allocations: 0 / 334.8 MB, free: 13.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002588/0.02635, allocations: 180.9 kB / 335 MB, free: 13.55 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.02636, allocations: 4.125 kB / 335 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.02637, allocations: 8 kB / 335 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.02639, allocations: 7.984 kB / 335 MB, free: 13.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001804/0.02657, allocations: 51.91 kB / 335 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.02657, allocations: 4 kB / 335 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.02669, allocations: 23.88 kB / 335.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.02671, allocations: 12 kB / 335.1 MB, free: 13.44 MB / 314.7 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.0001369/0.02685, allocations: 152.5 kB / 335.2 MB, free: 13.28 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.114e-05/0.02691, allocations: 39.95 kB / 335.3 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003133/0.02723, allocations: 197.8 kB / 335.4 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.728e-06/0.02723, allocations: 7.938 kB / 335.5 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.02723, allocations: 4 kB / 335.5 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.02724, allocations: 0 / 335.5 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001952/0.02744, allocations: 218.2 kB / 335.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.02744, allocations: 0 / 335.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.587e-05/0.02752, allocations: 31.98 kB / 335.7 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.02752, allocations: 0 / 335.7 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.02753, allocations: 7.984 kB / 335.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.02754, allocations: 8.125 kB / 335.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.02754, allocations: 7.938 kB / 335.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.02772, allocations: 221.6 kB / 335.9 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.266e-05/0.02777, allocations: 55.55 kB / 336 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.276e-05/0.0278, allocations: 8 kB / 336 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.439e-05/0.02786, allocations: 15.98 kB / 336 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.598e-05/0.02793, allocations: 39.94 kB / 336.1 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.02795, allocations: 12 kB / 336.1 MB, free: 12.37 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001774/0.02813, allocations: 239.2 kB / 336.3 MB, free: 12.13 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02813, allocations: 4 kB / 336.3 MB, free: 12.13 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002254/0.02835, allocations: 95.86 kB / 336.4 MB, free: 12.04 MB / 314.7 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.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 20 * 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.001145/0.0295, allocations: 0.5484 MB / 336.9 MB, free: 11.74 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001665/0.02966, allocations: 124.7 kB / 337.1 MB, free: 11.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.02967, allocations: 4.25 kB / 337.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.234e-05/0.02975, allocations: 80.69 kB / 337.2 MB, free: 11.53 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006118/0.03036, allocations: 167 kB / 337.3 MB, free: 11.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006581/0.03102, allocations: 0.6956 MB / 338 MB, free: 10.64 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.453e-05/0.0311, allocations: 133.5 kB / 338.1 MB, free: 10.49 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001217/0.03122, allocations: 79.27 kB / 338.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.03141, allocations: 151.3 kB / 338.4 MB, free: 10.26 MB / 314.7 MB Notification: Performance of SimCode: time 7.62e-07/0.03141, allocations: 4 kB / 338.4 MB, free: 10.26 MB / 314.7 MB Notification: Performance of Templates: time 0.009451/0.04086, allocations: 8.341 MB / 346.7 MB, free: 2.027 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1632762723602355]