Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00194/0.00194, 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.001941/0.001941, allocations: 210.4 kB / 23.72 MB, free: 4.391 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.516/1.516, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2417/0.2417, allocations: 46.96 MB / 360.9 MB, free: 4.047 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Blocks.IntegerTable") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002059/0.002059, allocations: 59.91 kB / 0.4966 GB, free: 7.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3509/0.3529, allocations: 66.05 MB / 0.5611 GB, free: 4.156 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003942/0.3569, allocations: 2.203 MB / 0.5632 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003295/0.3602, allocations: 1.623 MB / 0.5648 GB, free: 316 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.3603, allocations: 7.938 kB / 0.5648 GB, free: 308 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005113/0.3608, allocations: 143.2 kB / 0.565 GB, free: 164 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000703/0.3615, allocations: 290.8 kB / 0.5652 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001334/0.3629, allocations: 0.5372 MB / 0.5658 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006619/0.3635, allocations: 0.5765 MB / 0.5663 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001688/0.3637, allocations: 41.25 kB / 0.5664 GB, free: 14.72 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/0.364, allocations: 239 kB / 0.5666 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003024/0.3643, allocations: 239 kB / 0.5668 GB, free: 14.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.518e-05/0.3644, allocations: 28 kB / 0.5668 GB, free: 14.22 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003582/0.3647, allocations: 191.7 kB / 0.567 GB, free: 14.04 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001729/0.3649, allocations: 139.5 kB / 0.5672 GB, free: 13.9 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.3651, allocations: 155 kB / 0.5673 GB, free: 13.75 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007162/0.3658, allocations: 0.6093 MB / 0.5679 GB, free: 13.14 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3658, allocations: 0 / 0.5679 GB, free: 13.14 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3658, allocations: 0 / 0.5679 GB, free: 13.14 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.3658, allocations: 0 / 0.5679 GB, free: 13.14 MB / 414.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.001348/0.3671, allocations: 0.8574 MB / 0.5687 GB, free: 12.22 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.3672, allocations: 8.031 kB / 0.5687 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.3673, allocations: 56.56 kB / 0.5688 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007393/0.368, allocations: 421.1 kB / 0.5692 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.784e-05/0.3681, allocations: 8.609 kB / 0.5692 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.715e-05/0.3681, allocations: 20.12 kB / 0.5692 GB, free: 11.7 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005312/0.3686, allocations: 344.5 kB / 0.5696 GB, free: 11.31 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.3687, allocations: 3.938 kB / 0.5696 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.486e-05/0.3687, allocations: 8 kB / 0.5696 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.3687, allocations: 8 kB / 0.5696 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000327/0.369, allocations: 115.9 kB / 0.5697 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.3701, allocations: 0.7896 MB / 0.5705 GB, free: 10.34 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006876/0.3708, allocations: 294.6 kB / 0.5707 GB, free: 10.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002425/0.371, allocations: 111.3 kB / 0.5708 GB, free: 9.898 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.3711, allocations: 4 kB / 0.5708 GB, free: 9.895 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004419/0.3715, allocations: 226.3 kB / 0.5711 GB, free: 9.652 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.3715, allocations: 0 / 0.5711 GB, free: 9.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.001019/0.3725, allocations: 421.1 kB / 0.5715 GB, free: 9.234 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001546/0.3727, allocations: 247.2 kB / 0.5717 GB, free: 8.938 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008382/0.3735, allocations: 0.6786 MB / 0.5724 GB, free: 8.246 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.377e-05/0.3736, allocations: 33.7 kB / 0.5724 GB, free: 8.207 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.3738, allocations: 232.5 kB / 0.5726 GB, free: 7.977 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.308e-05/0.3738, allocations: 75.53 kB / 0.5727 GB, free: 7.902 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.75e-05/0.3739, allocations: 57.69 kB / 0.5727 GB, free: 7.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.3741, allocations: 366.8 kB / 0.5731 GB, free: 7.473 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002166/0.3744, allocations: 87.94 kB / 0.5732 GB, free: 7.387 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004487/0.3748, allocations: 424.4 kB / 0.5736 GB, free: 6.875 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004889/0.3753, allocations: 255.6 kB / 0.5738 GB, free: 6.602 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3753, allocations: 4 kB / 0.5738 GB, free: 6.598 MB / 414.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006779/0.376, allocations: 333 kB / 0.5741 GB, free: 6.266 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.376, allocations: 4 kB / 0.5742 GB, free: 6.262 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.376, allocations: 8.125 kB / 0.5742 GB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.376, allocations: 4 kB / 0.5742 GB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002757/0.3763, allocations: 55.91 kB / 0.5742 GB, free: 6.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.3763, allocations: 7.938 kB / 0.5742 GB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001935/0.3765, allocations: 27.88 kB / 0.5743 GB, free: 6.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.576e-05/0.3765, allocations: 11.98 kB / 0.5743 GB, free: 6.148 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.0002767/0.3768, allocations: 222 kB / 0.5745 GB, free: 5.922 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.388e-05/0.3769, allocations: 63.61 kB / 0.5745 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008214/0.3777, allocations: 377.6 kB / 0.5749 GB, free: 5.477 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.3777, allocations: 4 kB / 0.5749 GB, free: 5.473 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3777, allocations: 3.938 kB / 0.5749 GB, free: 5.469 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.3777, allocations: 3.984 kB / 0.5749 GB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003913/0.3781, allocations: 317 kB / 0.5752 GB, free: 5.125 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.3781, allocations: 4 kB / 0.5752 GB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001435/0.3783, allocations: 39.91 kB / 0.5753 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3783, allocations: 0 / 0.5753 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.332e-05/0.3783, allocations: 12 kB / 0.5753 GB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.3783, allocations: 4 kB / 0.5753 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.3783, allocations: 3.984 kB / 0.5753 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007267/0.379, allocations: 399.4 kB / 0.5757 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.3792, allocations: 59.59 kB / 0.5757 GB, free: 4.586 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.682e-05/0.3792, allocations: 12 kB / 0.5757 GB, free: 4.574 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.3794, allocations: 15.98 kB / 0.5757 GB, free: 4.559 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.3795, allocations: 43.88 kB / 0.5758 GB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.772e-05/0.3795, allocations: 15.98 kB / 0.5758 GB, free: 4.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005964/0.3801, allocations: 498.8 kB / 0.5763 GB, free: 4.016 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3801, allocations: 0 / 0.5763 GB, free: 4.016 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004184/0.3805, allocations: 103.8 kB / 0.5764 GB, free: 3.914 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.001769/0.3823, allocations: 492 kB / 0.5768 GB, free: 3.609 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006093/0.3829, allocations: 236.7 kB / 0.5771 GB, free: 3.379 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3829, allocations: 256 / 0.5771 GB, free: 3.379 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003731/0.3833, allocations: 175.8 kB / 0.5772 GB, free: 3.207 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006848/0.384, allocations: 145.3 kB / 0.5774 GB, free: 3.074 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.3854, allocations: 0.8374 MB / 0.5782 GB, free: 2.199 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.3856, allocations: 250.1 kB / 0.5784 GB, free: 1.922 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002195/0.3859, allocations: 83.3 kB / 0.5785 GB, free: 1.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.386, allocations: 55.42 kB / 0.5786 GB, free: 1.785 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.386, allocations: 4 kB / 0.5786 GB, free: 1.781 MB / 414.1 MB Notification: Performance of Templates: time 0.01535/0.4013, allocations: 8.368 MB / 0.5867 GB, free: 9.516 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegerTable.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegerTable.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegerTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegerTable_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.510327987372875]