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.001105/0.001105, allocations: 97.47 kB / 17 MB, free: 6.418 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.001027/0.001028, allocations: 189.2 kB / 17.89 MB, free: 5.945 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.536/1.536, allocations: 223.2 MB / 241.9 MB, free: 232 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2315/0.2315, allocations: 44.25 MB / 337.3 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003234/0.0003234, allocations: 8 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1094, allocations: 61.92 MB / 471.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.002369/0.1118, allocations: 1.888 MB / 473.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002103/0.1139, allocations: 1.466 MB / 474.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.114, allocations: 7.938 kB / 474.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003299/0.1144, allocations: 115.5 kB / 475.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003698/0.1148, allocations: 179.3 kB / 475.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.1161, allocations: 0.5724 MB / 475.8 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005409/0.1166, allocations: 454.6 kB / 476.2 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.1168, allocations: 65.23 kB / 476.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000258/0.1171, allocations: 195 kB / 476.5 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002148/0.1173, allocations: 183.2 kB / 476.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.331e-05/0.1173, allocations: 8 kB / 476.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00026/0.1176, allocations: 115.8 kB / 476.8 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.1177, allocations: 107.6 kB / 476.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.517e-05/0.1178, allocations: 105.4 kB / 477 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004527/0.1183, allocations: 427.3 kB / 477.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.1183, allocations: 0 / 477.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1183, allocations: 0 / 477.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1183, allocations: 0 / 477.4 MB, free: 7.852 MB / 350.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.001293/0.1196, allocations: 0.8125 MB / 478.2 MB, free: 6.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1197, allocations: 8.562 kB / 478.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.904e-05/0.1198, allocations: 55.42 kB / 478.3 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005966/0.1204, allocations: 439.3 kB / 478.7 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.273e-05/0.1204, allocations: 16.22 kB / 478.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.07e-05/0.1205, allocations: 11.95 kB / 478.8 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004667/0.121, allocations: 261.4 kB / 479 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.121, allocations: 4 kB / 479 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.547e-05/0.121, allocations: 11.94 kB / 479 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.121, allocations: 0 / 479 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003063/0.1213, allocations: 111.9 kB / 479.1 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.1224, allocations: 0.8718 MB / 480 MB, free: 5.051 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006678/0.1231, allocations: 294.5 kB / 480.3 MB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002157/0.1233, allocations: 115.3 kB / 480.4 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.259e-05/0.1234, allocations: 4 kB / 480.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004189/0.1238, allocations: 218.8 kB / 480.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.914e-06/0.1238, allocations: 4 kB / 480.6 MB, free: 4.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008781/0.1247, allocations: 397.7 kB / 481 MB, free: 3.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001797/0.1249, allocations: 350 kB / 481.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008085/0.1257, allocations: 0.6354 MB / 482 MB, free: 2.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.552e-05/0.1257, allocations: 37.64 kB / 482 MB, free: 2.852 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001969/0.126, allocations: 224.5 kB / 482.3 MB, free: 2.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.913e-05/0.126, allocations: 63.2 kB / 482.3 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.506e-05/0.1261, allocations: 8 kB / 482.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.1262, allocations: 362.8 kB / 482.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.1264, allocations: 79.95 kB / 482.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003477/0.1268, allocations: 253 kB / 483 MB, free: 1.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/0.127, allocations: 104 kB / 483.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1271, allocations: 3.938 kB / 483.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000598/0.1277, allocations: 304.8 kB / 483.4 MB, free: 1.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.1277, allocations: 10.5 kB / 483.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.1277, allocations: 4.125 kB / 483.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.1277, allocations: 4 kB / 483.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.128, allocations: 55.91 kB / 483.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.565e-05/0.128, allocations: 7.953 kB / 483.5 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002138/0.1283, allocations: 31.83 kB / 483.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.723e-05/0.1283, allocations: 19.92 kB / 483.5 MB, free: 1.27 MB / 350.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 ($whenCondition4,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,$PRE.integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,$PRE.integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003052/0.1286, allocations: 210.1 kB / 483.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.611e-05/0.1287, allocations: 63.27 kB / 483.8 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.1288, allocations: 59.91 kB / 483.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1288, allocations: 0 / 483.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.1288, allocations: 4 kB / 483.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.1289, allocations: 7.891 kB / 483.9 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000483/0.1293, allocations: 409.2 kB / 484.3 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1294, allocations: 0 / 484.3 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.1295, allocations: 23.98 kB / 484.3 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.1295, allocations: 4 kB / 484.3 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.1295, allocations: 7.984 kB / 484.3 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1295, allocations: 4 kB / 484.3 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1295, allocations: 0 / 484.3 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006243/0.1302, allocations: 365 kB / 484.7 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000148/0.1303, allocations: 140.4 kB / 484.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.491e-05/0.1304, allocations: 16 kB / 484.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.1305, allocations: 15.98 kB / 484.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.486e-05/0.1307, allocations: 35.95 kB / 484.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.529e-05/0.1307, allocations: 19.94 kB / 484.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005312/0.1312, allocations: 462.8 kB / 485.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1312, allocations: 0 / 485.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005376/0.1318, allocations: 99.92 kB / 485.4 MB, free: 15.26 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001178/0.133, allocations: 461.8 kB / 485.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005716/0.1335, allocations: 231.8 kB / 486.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1336, allocations: 0 / 486.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003484/0.1339, allocations: 167.8 kB / 486.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006519/0.1346, allocations: 134 kB / 486.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.136, allocations: 0.8313 MB / 487.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005042/0.1365, allocations: 0.8431 MB / 488.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002665/0.1368, allocations: 88.08 kB / 488.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.1369, allocations: 47.42 kB / 488.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1369, allocations: 3.938 kB / 488.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of Templates: time 0.01292/0.1499, allocations: 6.895 MB / 495.1 MB, free: 5.727 MB / 366.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