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.001835/0.001835, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.001955/0.001955, allocations: 169.3 kB / 24.28 MB, free: 152 kB / 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.57/1.57, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 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.3734/0.3734, allocations: 32.8 MB / 293.9 MB, free: 1.227 MB / 266.7 MB " [Timeout remaining time 179] 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.443e-06/1.443e-06, allocations: 0 / 375.2 MB, free: 5.016 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.558e-05/2.702e-05, allocations: 2.312 kB / 375.3 MB, free: 5.012 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003897/0.003924, allocations: 2.272 MB / 377.5 MB, free: 2.723 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003296/0.00722, allocations: 1.652 MB / 379.2 MB, free: 1.066 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.007378, allocations: 7.938 kB / 379.2 MB, free: 1.059 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004423/0.00782, allocations: 143.2 kB / 379.3 MB, free: 0.918 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006669/0.008487, allocations: 310.5 kB / 379.6 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001311/0.009798, allocations: 0.5261 MB / 380.2 MB, free: 88 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000771/0.01057, allocations: 0.5842 MB / 380.7 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.01071, allocations: 45.27 kB / 380.8 MB, free: 15.45 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004528/0.01117, allocations: 315 kB / 381.1 MB, free: 15.14 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003058/0.01147, allocations: 207.4 kB / 381.3 MB, free: 14.94 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.452e-05/0.01154, allocations: 28 kB / 381.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004005/0.01194, allocations: 183.7 kB / 381.5 MB, free: 14.73 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001793/0.01212, allocations: 135.5 kB / 381.6 MB, free: 14.6 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.01228, allocations: 115.6 kB / 381.7 MB, free: 14.49 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008454/0.01313, allocations: 0.623 MB / 382.4 MB, free: 13.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.01313, allocations: 4 kB / 382.4 MB, free: 13.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.01313, allocations: 0 / 382.4 MB, free: 13.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.01314, allocations: 0 / 382.4 MB, free: 13.86 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.001509/0.01465, allocations: 0.9999 MB / 383.4 MB, free: 12.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.01468, allocations: 8.031 kB / 383.4 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/0.01484, allocations: 68.56 kB / 383.4 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000688/0.01553, allocations: 395.3 kB / 383.8 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.01556, allocations: 12.61 kB / 383.8 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.027e-05/0.0156, allocations: 20.31 kB / 383.9 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005547/0.01615, allocations: 358.6 kB / 384.2 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.01617, allocations: 15.81 kB / 384.2 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.01619, allocations: 4 kB / 384.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.0162, allocations: 4 kB / 384.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002807/0.01648, allocations: 91.94 kB / 384.3 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00143/0.01791, allocations: 1.039 MB / 385.4 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006532/0.01856, allocations: 276.6 kB / 385.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003728/0.01894, allocations: 102.7 kB / 385.7 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.01896, allocations: 4 kB / 385.7 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000482/0.01945, allocations: 237.8 kB / 386 MB, free: 9.957 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.362e-06/0.01945, allocations: 0 / 386 MB, free: 9.957 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.00097/0.02042, allocations: 358.1 kB / 386.3 MB, free: 9.602 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000179/0.0206, allocations: 247.3 kB / 386.6 MB, free: 9.305 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009506/0.02155, allocations: 0.7018 MB / 387.3 MB, free: 8.586 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.988e-05/0.02159, allocations: 33.7 kB / 387.3 MB, free: 8.547 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003251/0.02191, allocations: 327.2 kB / 387.6 MB, free: 8.223 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.011e-05/0.022, allocations: 79.67 kB / 387.7 MB, free: 8.145 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.02213, allocations: 75.34 kB / 387.8 MB, free: 8.062 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003841/0.02252, allocations: 0.5898 MB / 388.4 MB, free: 7.461 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002064/0.02272, allocations: 68.02 kB / 388.4 MB, free: 7.395 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005054/0.02323, allocations: 444.4 kB / 388.9 MB, free: 6.844 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004826/0.02371, allocations: 217.4 kB / 389.1 MB, free: 6.598 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.02371, allocations: 4 kB / 389.1 MB, free: 6.594 MB / 362.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006576/0.02437, allocations: 305.2 kB / 389.4 MB, free: 6.289 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.02439, allocations: 8 kB / 389.4 MB, free: 6.281 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.0244, allocations: 0 / 389.4 MB, free: 6.281 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.02442, allocations: 4 kB / 389.4 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/0.0247, allocations: 55.84 kB / 389.4 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.02471, allocations: 4 kB / 389.4 MB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001983/0.0249, allocations: 31.83 kB / 389.5 MB, free: 6.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.908e-05/0.02493, allocations: 15.94 kB / 389.5 MB, free: 6.172 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.0002437/0.02518, allocations: 220.7 kB / 389.7 MB, free: 5.945 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.02529, allocations: 63.61 kB / 389.8 MB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007721/0.02606, allocations: 333.7 kB / 390.1 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.02607, allocations: 4 kB / 390.1 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.02608, allocations: 0 / 390.1 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.02608, allocations: 0 / 390.1 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005663/0.02665, allocations: 408.2 kB / 390.5 MB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.02665, allocations: 0 / 390.5 MB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/0.0268, allocations: 35.92 kB / 390.5 MB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.02681, allocations: 8 kB / 390.5 MB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.728e-05/0.02684, allocations: 7.984 kB / 390.5 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.02684, allocations: 0 / 390.5 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.02684, allocations: 4.125 kB / 390.6 MB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007603/0.0276, allocations: 395.2 kB / 390.9 MB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.02772, allocations: 55.61 kB / 391 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.882e-05/0.02779, allocations: 11.98 kB / 391 MB, free: 4.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001507/0.02794, allocations: 12 kB / 391 MB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.02806, allocations: 39.94 kB / 391.1 MB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.56e-05/0.0281, allocations: 23.92 kB / 391.1 MB, free: 4.496 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005994/0.0287, allocations: 450.8 kB / 391.5 MB, free: 4.059 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.0287, allocations: 4 kB / 391.5 MB, free: 4.055 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004356/0.02914, allocations: 95.92 kB / 391.6 MB, free: 3.961 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.003075/0.03221, allocations: 0.4883 MB / 392.1 MB, free: 3.645 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000633/0.03285, allocations: 219.4 kB / 392.3 MB, free: 3.426 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.03285, allocations: 0 / 392.3 MB, free: 3.426 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002984/0.03315, allocations: 127.5 kB / 392.4 MB, free: 3.297 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007812/0.03393, allocations: 171.3 kB / 392.6 MB, free: 3.145 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.0354, allocations: 0.7464 MB / 393.4 MB, free: 2.352 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.03568, allocations: 246.1 kB / 393.6 MB, free: 2.078 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002225/0.03591, allocations: 87.27 kB / 393.7 MB, free: 1.992 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.03605, allocations: 56.48 kB / 393.7 MB, free: 1.938 MB / 362.7 MB Notification: Performance of SimCode: time 9.22e-07/0.03605, allocations: 0 / 393.7 MB, free: 1.938 MB / 362.7 MB Notification: Performance of Templates: time 0.01636/0.05241, allocations: 7.963 MB / 401.7 MB, free: 10.06 MB / 378.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 -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","/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.098511207965203]