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.001122/0.001122, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001273/0.001273, allocations: 167 kB / 24.82 MB, free: 9.27 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 1.135/1.135, allocations: 177.1 MB / 205.3 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] 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.2783/0.2783, allocations: 34.26 MB / 296.1 MB, free: 0.6406 MB / 266.7 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 3.156e-06/3.156e-06, allocations: 0 / 378.5 MB, free: 2.379 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.817e-05/4.133e-05, allocations: 5.125 kB / 378.5 MB, free: 2.375 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.00503/0.005071, allocations: 2.267 MB / 380.8 MB, free: 88 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003637/0.008708, allocations: 1.645 MB / 382.4 MB, free: 14.43 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002962/0.009005, allocations: 7.938 kB / 382.4 MB, free: 14.43 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006216/0.009626, allocations: 147.1 kB / 382.6 MB, free: 14.28 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001387/0.01101, allocations: 306.6 kB / 382.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002597/0.01361, allocations: 0.5338 MB / 383.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.01501, allocations: 0.5842 MB / 384 MB, free: 12.86 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002891/0.0153, allocations: 49.25 kB / 384 MB, free: 12.81 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008799/0.01618, allocations: 311.1 kB / 384.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005121/0.01669, allocations: 207.4 kB / 384.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001313/0.01682, allocations: 24 kB / 384.6 MB, free: 12.28 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006897/0.01751, allocations: 191.6 kB / 384.7 MB, free: 12.09 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002134/0.01773, allocations: 139.4 kB / 384.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001945/0.01792, allocations: 111.6 kB / 385 MB, free: 11.84 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001239/0.01916, allocations: 462.3 kB / 385.4 MB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.01917, allocations: 0 / 385.4 MB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.01917, allocations: 4 kB / 385.4 MB, free: 11.39 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.869e-05/0.01919, allocations: 0 / 385.4 MB, free: 11.39 MB / 362.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.001847/0.02103, allocations: 0.9572 MB / 386.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.144e-05/0.02111, allocations: 12.03 kB / 386.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000208/0.02131, allocations: 60.61 kB / 386.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007686/0.02208, allocations: 383.2 kB / 386.8 MB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.518e-05/0.02213, allocations: 16.59 kB / 386.9 MB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.231e-05/0.02216, allocations: 12.38 kB / 386.9 MB, free: 9.867 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004269/0.02259, allocations: 190.9 kB / 387.1 MB, free: 9.656 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.0226, allocations: 3.938 kB / 387.1 MB, free: 9.652 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.668e-05/0.02263, allocations: 7.984 kB / 387.1 MB, free: 9.645 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.02264, allocations: 4 kB / 387.1 MB, free: 9.641 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001469/0.02279, allocations: 51.88 kB / 387.1 MB, free: 9.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.02406, allocations: 0.8562 MB / 388 MB, free: 8.691 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004196/0.02448, allocations: 220.5 kB / 388.2 MB, free: 8.426 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.0246, allocations: 66.72 kB / 388.3 MB, free: 8.344 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.565e-05/0.02463, allocations: 7.938 kB / 388.3 MB, free: 8.336 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003515/0.02499, allocations: 198.4 kB / 388.5 MB, free: 8.113 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 4.809e-06/0.02499, allocations: 4 kB / 388.5 MB, free: 8.109 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.00112/0.02611, allocations: 285.9 kB / 388.7 MB, free: 7.824 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/0.02618, allocations: 140.5 kB / 388.9 MB, free: 7.656 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005718/0.02675, allocations: 0.5414 MB / 389.4 MB, free: 7.098 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.824e-05/0.02679, allocations: 33.7 kB / 389.5 MB, free: 7.059 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002095/0.027, allocations: 303.1 kB / 389.8 MB, free: 6.758 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.602e-05/0.02705, allocations: 63.5 kB / 389.8 MB, free: 6.695 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.179e-05/0.02713, allocations: 71.31 kB / 389.9 MB, free: 6.617 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.0273, allocations: 0.5585 MB / 390.4 MB, free: 6.047 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.333e-05/0.02735, allocations: 31.95 kB / 390.5 MB, free: 6.016 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.0275, allocations: 251.2 kB / 390.7 MB, free: 5.695 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001536/0.02765, allocations: 165.3 kB / 390.9 MB, free: 5.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.02765, allocations: 0 / 390.9 MB, free: 5.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002757/0.02793, allocations: 233.3 kB / 391.1 MB, free: 5.266 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.02795, allocations: 8 kB / 391.1 MB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.02795, allocations: 3.984 kB / 391.1 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.02797, allocations: 4 kB / 391.1 MB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.02812, allocations: 55.91 kB / 391.2 MB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.02813, allocations: 4 kB / 391.2 MB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.02823, allocations: 27.84 kB / 391.2 MB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.02824, allocations: 12.11 kB / 391.2 MB, free: 5.152 MB / 362.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.0001227/0.02837, allocations: 192.4 kB / 391.4 MB, free: 4.953 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.872e-05/0.02842, allocations: 63.66 kB / 391.5 MB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003277/0.02875, allocations: 273.7 kB / 391.7 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.02876, allocations: 4 kB / 391.7 MB, free: 4.613 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.02876, allocations: 0 / 391.7 MB, free: 4.613 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.02877, allocations: 7.922 kB / 391.7 MB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002694/0.02904, allocations: 268.8 kB / 392 MB, free: 4.316 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.02904, allocations: 4 kB / 392 MB, free: 4.312 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.461e-05/0.02912, allocations: 31.92 kB / 392 MB, free: 4.281 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.02913, allocations: 0 / 392 MB, free: 4.281 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.02914, allocations: 11.98 kB / 392.1 MB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.02915, allocations: 4 kB / 392.1 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.02915, allocations: 0 / 392.1 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003361/0.02949, allocations: 326.9 kB / 392.4 MB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.862e-05/0.02955, allocations: 51.61 kB / 392.4 MB, free: 3.859 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.178e-05/0.02959, allocations: 19.98 kB / 392.5 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.516e-05/0.02966, allocations: 12 kB / 392.5 MB, free: 3.828 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.935e-05/0.02974, allocations: 39.94 kB / 392.5 MB, free: 3.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.884e-05/0.02977, allocations: 11.98 kB / 392.5 MB, free: 3.777 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002501/0.03002, allocations: 354.7 kB / 392.9 MB, free: 3.434 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.03002, allocations: 0 / 392.9 MB, free: 3.434 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003799/0.0304, allocations: 95.92 kB / 393 MB, free: 3.34 MB / 362.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.001052/0.03145, allocations: 451.5 kB / 393.4 MB, free: 3.035 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002867/0.03174, allocations: 139.4 kB / 393.5 MB, free: 2.895 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.03174, allocations: 0 / 393.5 MB, free: 2.895 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.03187, allocations: 104 kB / 393.6 MB, free: 2.789 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005053/0.03238, allocations: 163.1 kB / 393.8 MB, free: 2.645 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009776/0.03336, allocations: 0.7028 MB / 394.5 MB, free: 1.895 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.831e-05/0.03345, allocations: 129.6 kB / 394.6 MB, free: 1.742 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001705/0.03362, allocations: 67.62 kB / 394.7 MB, free: 1.676 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002319/0.03385, allocations: 182.1 kB / 394.9 MB, free: 1.496 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/0.03385, allocations: 0 / 394.9 MB, free: 1.496 MB / 362.7 MB Notification: Performance of Templates: time 0.01388/0.04772, allocations: 8.44 MB / 403.3 MB, free: 9.156 MB / 378.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) [Timeout 240] 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","",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.4872958068735898]