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.001723/0.001723, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.002232/0.002232, allocations: 209.9 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.506/1.506, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.2254/0.2254, allocations: 44.94 MB / 358.8 MB, free: 6.051 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002087, allocations: 59.91 kB / 0.4935 GB, free: 10.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.3728, allocations: 65.48 MB / 0.5574 GB, free: 7.445 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.004005/0.3768, allocations: 2.196 MB / 0.5596 GB, free: 5.238 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003335/0.3801, allocations: 1.63 MB / 0.5612 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/0.3803, allocations: 4 kB / 0.5612 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005288/0.3808, allocations: 147.2 kB / 0.5613 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007392/0.3816, allocations: 290.8 kB / 0.5616 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.3831, allocations: 0.5374 MB / 0.5621 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007825/0.3839, allocations: 0.5726 MB / 0.5627 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.3841, allocations: 45.25 kB / 0.5627 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003387/0.3844, allocations: 235 kB / 0.563 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003208/0.3847, allocations: 231 kB / 0.5632 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.207e-05/0.3848, allocations: 32 kB / 0.5632 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004086/0.3852, allocations: 195.7 kB / 0.5634 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001747/0.3854, allocations: 135.5 kB / 0.5635 GB, free: 1.203 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001896/0.3856, allocations: 162.9 kB / 0.5637 GB, free: 1.043 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007627/0.3863, allocations: 0.6015 MB / 0.5643 GB, free: 456 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3863, allocations: 0 / 0.5643 GB, free: 456 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3863, allocations: 0 / 0.5643 GB, free: 456 kB / 398.1 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.3863, allocations: 0 / 0.5643 GB, free: 456 kB / 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.001436/0.3878, allocations: 0.8535 MB / 0.5651 GB, free: 15.53 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.3878, allocations: 16.03 kB / 0.5651 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.3879, allocations: 56.56 kB / 0.5652 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007917/0.3887, allocations: 413.1 kB / 0.5656 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/0.3888, allocations: 16.59 kB / 0.5656 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.765e-05/0.3888, allocations: 16.12 kB / 0.5656 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005606/0.3894, allocations: 343.6 kB / 0.5659 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.3894, allocations: 0 / 0.5659 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.391e-05/0.3894, allocations: 7.984 kB / 0.5659 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.3894, allocations: 11.94 kB / 0.5659 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003195/0.3897, allocations: 119.9 kB / 0.5661 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.3909, allocations: 0.7896 MB / 0.5668 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007128/0.3916, allocations: 294.5 kB / 0.5671 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002404/0.3918, allocations: 111.4 kB / 0.5672 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.3919, allocations: 4 kB / 0.5672 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004453/0.3923, allocations: 220.2 kB / 0.5674 GB, free: 12.96 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.3923, allocations: 0 / 0.5674 GB, free: 12.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.001059/0.3934, allocations: 425 kB / 0.5678 GB, free: 12.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000154/0.3935, allocations: 247.2 kB / 0.5681 GB, free: 12.24 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008321/0.3944, allocations: 0.6786 MB / 0.5687 GB, free: 11.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.171e-05/0.3944, allocations: 33.7 kB / 0.5688 GB, free: 11.51 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002141/0.3946, allocations: 236.5 kB / 0.569 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.453e-05/0.3947, allocations: 71.55 kB / 0.5691 GB, free: 11.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.526e-05/0.3948, allocations: 57.69 kB / 0.5691 GB, free: 11.14 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.395, allocations: 370.8 kB / 0.5695 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002159/0.3952, allocations: 83.95 kB / 0.5695 GB, free: 10.69 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004562/0.3957, allocations: 432.3 kB / 0.57 GB, free: 10.17 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005081/0.3962, allocations: 247.7 kB / 0.5702 GB, free: 9.902 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3962, allocations: 0 / 0.5702 GB, free: 9.902 MB / 414.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006734/0.3968, allocations: 333.1 kB / 0.5705 GB, free: 9.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.3969, allocations: 6.969 kB / 0.5705 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.3969, allocations: 4.125 kB / 0.5705 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.3969, allocations: 4 kB / 0.5705 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.3972, allocations: 63.89 kB / 0.5706 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.3972, allocations: 7.875 kB / 0.5706 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001971/0.3974, allocations: 27.88 kB / 0.5706 GB, free: 9.461 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.3974, allocations: 8 kB / 0.5706 GB, free: 9.453 MB / 414.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.0002587/0.3976, allocations: 221.7 kB / 0.5708 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.315e-05/0.3977, allocations: 55.88 kB / 0.5709 GB, free: 9.172 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008192/0.3986, allocations: 385.7 kB / 0.5713 GB, free: 8.781 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.3986, allocations: 4 kB / 0.5713 GB, free: 8.777 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/0.3986, allocations: 11.94 kB / 0.5713 GB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3986, allocations: 0 / 0.5713 GB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004192/0.399, allocations: 317 kB / 0.5716 GB, free: 8.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.399, allocations: 3.984 kB / 0.5716 GB, free: 8.422 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/0.3992, allocations: 31.98 kB / 0.5716 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.3992, allocations: 4 kB / 0.5716 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.3992, allocations: 11.98 kB / 0.5716 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.3992, allocations: 4 kB / 0.5716 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.3992, allocations: 7.938 kB / 0.5716 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007275/0.3999, allocations: 391.1 kB / 0.572 GB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.4, allocations: 63.53 kB / 0.5721 GB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.368e-05/0.4001, allocations: 8 kB / 0.5721 GB, free: 7.883 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001625/0.4003, allocations: 19.97 kB / 0.5721 GB, free: 7.863 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.4004, allocations: 39.89 kB / 0.5721 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.331e-05/0.4004, allocations: 15.98 kB / 0.5722 GB, free: 7.809 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006086/0.401, allocations: 498.8 kB / 0.5726 GB, free: 7.324 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.401, allocations: 7.938 kB / 0.5726 GB, free: 7.316 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004407/0.4015, allocations: 103.8 kB / 0.5727 GB, free: 7.215 MB / 414.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.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.00173/0.4032, allocations: 483.8 kB / 0.5732 GB, free: 6.914 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006106/0.4038, allocations: 232.7 kB / 0.5734 GB, free: 6.688 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4038, allocations: 3.938 kB / 0.5734 GB, free: 6.684 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003669/0.4042, allocations: 180.4 kB / 0.5736 GB, free: 6.508 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006802/0.4048, allocations: 155.1 kB / 0.5737 GB, free: 6.371 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.4064, allocations: 0.8412 MB / 0.5746 GB, free: 5.492 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.4068, allocations: 246.1 kB / 0.5748 GB, free: 5.219 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002901/0.4071, allocations: 83.61 kB / 0.5749 GB, free: 5.137 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.4072, allocations: 55.42 kB / 0.5749 GB, free: 5.082 MB / 414.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4072, allocations: 0 / 0.5749 GB, free: 5.082 MB / 414.1 MB Notification: Performance of Templates: time 0.01693/0.4241, allocations: 8.371 MB / 0.5831 GB, free: 12.81 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.609799584373832]