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.001711/0.001711, allocations: 111.8 kB / 17.78 MB, free: 5.285 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.001811/0.001811, allocations: 183.9 kB / 18.71 MB, free: 4.371 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.458/1.458, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2407/0.2407, allocations: 44.19 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.89 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3528, allocations: 60.83 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003446/0.3563, allocations: 2.286 MB / 0.5211 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002424/0.3587, allocations: 1.552 MB / 0.5226 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.3589, allocations: 3.438 kB / 0.5226 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003664/0.3593, allocations: 143.2 kB / 0.5228 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004074/0.3597, allocations: 231.3 kB / 0.523 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001494/0.3612, allocations: 0.65 MB / 0.5236 GB, free: 424 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005259/0.3617, allocations: 0.5318 MB / 0.5242 GB, free: 164 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.3619, allocations: 77.11 kB / 0.5242 GB, free: 124 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.3621, allocations: 226.8 kB / 0.5244 GB, free: 20 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002592/0.3624, allocations: 215.8 kB / 0.5246 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.57e-05/0.3624, allocations: 25.53 kB / 0.5247 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003178/0.3628, allocations: 167.6 kB / 0.5248 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.3629, allocations: 133.1 kB / 0.525 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001922/0.3631, allocations: 206.7 kB / 0.5252 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006457/0.3638, allocations: 0.5784 MB / 0.5257 GB, free: 15.44 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3638, allocations: 0.6094 kB / 0.5257 GB, free: 15.44 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3638, allocations: 0 / 0.5257 GB, free: 15.44 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.3638, allocations: 1.188 kB / 0.5257 GB, free: 15.44 MB / 398.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.001171/0.365, allocations: 0.881 MB / 0.5266 GB, free: 14.62 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.059e-05/0.365, allocations: 9.625 kB / 0.5266 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.3651, allocations: 61.02 kB / 0.5266 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005921/0.3657, allocations: 459.3 kB / 0.5271 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.3658, allocations: 11.48 kB / 0.5271 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.072e-05/0.3658, allocations: 17.75 kB / 0.5271 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004451/0.3663, allocations: 262.2 kB / 0.5274 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.3663, allocations: 0 / 0.5274 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.758e-05/0.3663, allocations: 6.75 kB / 0.5274 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.3663, allocations: 2.75 kB / 0.5274 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002965/0.3666, allocations: 114.8 kB / 0.5275 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.3677, allocations: 0.8704 MB / 0.5283 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006636/0.3683, allocations: 296.2 kB / 0.5286 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.3686, allocations: 112 kB / 0.5287 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.3686, allocations: 8.359 kB / 0.5287 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004009/0.369, allocations: 226.8 kB / 0.5289 GB, free: 12.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.369, allocations: 0 / 0.5289 GB, free: 12.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009669/0.37, allocations: 407.1 kB / 0.5293 GB, free: 12.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000171/0.3702, allocations: 346.6 kB / 0.5297 GB, free: 12.01 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000734/0.3709, allocations: 0.6237 MB / 0.5303 GB, free: 11.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.446e-05/0.371, allocations: 38.73 kB / 0.5303 GB, free: 11.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.3712, allocations: 227.3 kB / 0.5305 GB, free: 11.44 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.404e-05/0.3712, allocations: 65.69 kB / 0.5306 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.819e-05/0.3713, allocations: 65.03 kB / 0.5307 GB, free: 11.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3715, allocations: 360.6 kB / 0.531 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.3717, allocations: 86.12 kB / 0.5311 GB, free: 10.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003482/0.3721, allocations: 246.6 kB / 0.5313 GB, free: 10.72 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005602/0.3726, allocations: 229.1 kB / 0.5315 GB, free: 10.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3727, allocations: 0 / 0.5315 GB, free: 10.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006282/0.3733, allocations: 321.5 kB / 0.5318 GB, free: 10.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.3733, allocations: 6.156 kB / 0.5318 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.3733, allocations: 1.344 kB / 0.5318 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.3733, allocations: 7 kB / 0.5319 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002636/0.3736, allocations: 53.06 kB / 0.5319 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.3736, allocations: 6.75 kB / 0.5319 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002092/0.3739, allocations: 27.92 kB / 0.5319 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/0.3739, allocations: 17.94 kB / 0.532 GB, free: 10.35 MB / 398.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.0002509/0.3741, allocations: 219.3 kB / 0.5322 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.317e-05/0.3742, allocations: 57.97 kB / 0.5322 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.3743, allocations: 53.19 kB / 0.5323 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.3744, allocations: 7.344 kB / 0.5323 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3744, allocations: 1.156 kB / 0.5323 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.3744, allocations: 6.203 kB / 0.5323 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004054/0.3748, allocations: 397 kB / 0.5327 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3748, allocations: 1.062 kB / 0.5327 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.3749, allocations: 27.02 kB / 0.5327 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.3749, allocations: 1.781 kB / 0.5327 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.382e-05/0.375, allocations: 12.55 kB / 0.5327 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.375, allocations: 9.781 kB / 0.5327 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.375, allocations: 5.969 kB / 0.5327 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007091/0.3757, allocations: 356.8 kB / 0.5331 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.3758, allocations: 125.7 kB / 0.5332 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.298e-05/0.3759, allocations: 13.27 kB / 0.5332 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.3761, allocations: 19.89 kB / 0.5332 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.298e-05/0.3762, allocations: 34.97 kB / 0.5332 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-05/0.3762, allocations: 22.27 kB / 0.5333 GB, free: 9.328 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005033/0.3767, allocations: 468.3 kB / 0.5337 GB, free: 9.082 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3767, allocations: 4 kB / 0.5337 GB, free: 9.078 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004519/0.3772, allocations: 100.2 kB / 0.5338 GB, free: 9.055 MB / 398.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.001032/0.3782, allocations: 458.7 kB / 0.5342 GB, free: 8.832 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005505/0.3788, allocations: 220.8 kB / 0.5345 GB, free: 8.738 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3788, allocations: 1.469 kB / 0.5345 GB, free: 8.738 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003547/0.3792, allocations: 172.8 kB / 0.5346 GB, free: 8.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007132/0.3799, allocations: 163 kB / 0.5348 GB, free: 8.574 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.3812, allocations: 0.7598 MB / 0.5355 GB, free: 8.094 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000446/0.3817, allocations: 0.8408 MB / 0.5363 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000246/0.3819, allocations: 81.39 kB / 0.5364 GB, free: 7.285 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.382, allocations: 58.59 kB / 0.5365 GB, free: 7.262 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.382, allocations: 0 / 0.5365 GB, free: 7.262 MB / 398.1 MB Notification: Performance of Templates: time 0.01413/0.3962, allocations: 7.591 MB / 0.5439 GB, free: 2.016 MB / 398.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