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: "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 107.7 kB / 17.21 MB, free: 6.27 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.001667/0.001667, allocations: 194 kB / 18.12 MB, free: 5.363 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.37/1.37, allocations: 222.9 MB / 241.8 MB, free: 15.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2359/0.2359, allocations: 44.17 MB / 336.1 MB, free: 3.031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 61.19 kB / 407.8 MB, free: 27.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1269, allocations: 60.84 MB / 468.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.004764/0.1317, allocations: 2.308 MB / 470.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003353/0.1351, allocations: 1.559 MB / 472.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006173/0.1358, allocations: 7.938 kB / 472.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007201/0.1365, allocations: 123.5 kB / 472.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006884/0.1373, allocations: 195.3 kB / 472.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001898/0.1392, allocations: 0.606 MB / 473.4 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005479/0.1397, allocations: 0.4907 MB / 473.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.1399, allocations: 73.05 kB / 474 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002401/0.1402, allocations: 191.1 kB / 474.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002577/0.1404, allocations: 215 kB / 474.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.434e-05/0.1405, allocations: 8 kB / 474.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002967/0.1408, allocations: 127.8 kB / 474.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.1409, allocations: 119.6 kB / 474.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001932/0.1411, allocations: 182.7 kB / 474.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000615/0.1418, allocations: 0.5454 MB / 475.4 MB, free: 8.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1418, allocations: 7.938 kB / 475.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1418, allocations: 0 / 475.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.1418, allocations: 0 / 475.4 MB, free: 8.004 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.001214/0.143, allocations: 0.8903 MB / 476.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.1431, allocations: 12.02 kB / 476.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.072e-05/0.1431, allocations: 42.75 kB / 476.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.1432, allocations: 56.27 kB / 476.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005673/0.1438, allocations: 464.1 kB / 476.8 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.1438, allocations: 16.59 kB / 476.8 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.1439, allocations: 15.94 kB / 476.8 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004671/0.1444, allocations: 269.4 kB / 477.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.1444, allocations: 0 / 477.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.484e-05/0.1444, allocations: 4 kB / 477.1 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.1444, allocations: 4 kB / 477.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003027/0.1447, allocations: 111.9 kB / 477.2 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.1459, allocations: 0.8757 MB / 478.1 MB, free: 5.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007061/0.1466, allocations: 294.5 kB / 478.4 MB, free: 4.715 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002331/0.1468, allocations: 107.4 kB / 478.5 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.78e-05/0.1469, allocations: 7.938 kB / 478.5 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005549/0.1474, allocations: 218.6 kB / 478.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.582e-06/0.1474, allocations: 4 kB / 478.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001034/0.1485, allocations: 401.5 kB / 479.1 MB, free: 3.949 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002473/0.1487, allocations: 346.1 kB / 479.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008317/0.1496, allocations: 0.6354 MB / 480.1 MB, free: 2.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.163e-05/0.1496, allocations: 41.64 kB / 480.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002348/0.1499, allocations: 224.6 kB / 480.3 MB, free: 2.617 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.112e-05/0.15, allocations: 67.17 kB / 480.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.1501, allocations: 61.69 kB / 480.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002384/0.1503, allocations: 366.8 kB / 480.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.1506, allocations: 79.94 kB / 480.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003759/0.151, allocations: 245.6 kB / 481.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005003/0.1515, allocations: 234.7 kB / 481.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.1515, allocations: 4 kB / 481.4 MB, free: 1.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006726/0.1522, allocations: 317 kB / 481.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.1522, allocations: 11.98 kB / 481.7 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.1522, allocations: 0 / 481.7 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.1522, allocations: 7.938 kB / 481.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002539/0.1525, allocations: 51.91 kB / 481.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.1525, allocations: 4 kB / 481.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001871/0.1527, allocations: 27.83 kB / 481.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.295e-05/0.1527, allocations: 20.12 kB / 481.8 MB, free: 1.043 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 ($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.000246/0.153, allocations: 217.7 kB / 482 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.404e-05/0.1531, allocations: 51.34 kB / 482.1 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.858e-05/0.1532, allocations: 59.84 kB / 482.1 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.1532, allocations: 4 kB / 482.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1532, allocations: 3.938 kB / 482.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.1532, allocations: 4 kB / 482.1 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004112/0.1536, allocations: 409.2 kB / 482.5 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1537, allocations: 256 / 482.5 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.1538, allocations: 39.86 kB / 482.6 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.1538, allocations: 0 / 482.6 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.884e-05/0.1538, allocations: 15.92 kB / 482.6 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.94e-06/0.1538, allocations: 4 kB / 482.6 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1539, allocations: 0 / 482.6 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006804/0.1545, allocations: 358.8 kB / 482.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.1546, allocations: 124.5 kB / 483.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.795e-05/0.1547, allocations: 15.94 kB / 483.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.1549, allocations: 15.97 kB / 483.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.155, allocations: 39.95 kB / 483.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.248e-05/0.1551, allocations: 12 kB / 483.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005456/0.1556, allocations: 466.8 kB / 483.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1556, allocations: 4 kB / 483.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004453/0.1561, allocations: 95.91 kB / 483.7 MB, free: 15.04 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 (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.002224/0.1583, allocations: 1.263 MB / 485 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005466/0.1589, allocations: 223.6 kB / 485.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.1589, allocations: 0 / 485.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003564/0.1592, allocations: 180.6 kB / 485.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006663/0.1599, allocations: 133.4 kB / 485.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005909/0.1658, allocations: 4.347 MB / 489.8 MB, free: 8.875 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.1663, allocations: 0.8353 MB / 490.7 MB, free: 8.012 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002963/0.1666, allocations: 87.22 kB / 490.8 MB, free: 7.926 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002515/0.1669, allocations: 163.4 kB / 490.9 MB, free: 7.766 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1669, allocations: 0 / 490.9 MB, free: 7.766 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02639/0.1933, allocations: 11.81 MB / 0.4909 GB, free: 12.1 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001976/0.1935, allocations: 230.6 kB / 0.4912 GB, free: 11.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.093/2.287, allocations: 0 / 0.4912 GB, free: 11.84 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches