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.0017/0.001701, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001845/0.001846, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.356/1.356, allocations: 222.9 MB / 242.2 MB, free: 15.21 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.22/0.22, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 62.95 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1299, allocations: 60.82 MB / 469.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.004266/0.1342, allocations: 2.273 MB / 471.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00276/0.137, allocations: 1.559 MB / 473.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.1373, allocations: 7.938 kB / 473.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004315/0.1377, allocations: 139.3 kB / 473.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004501/0.1382, allocations: 223 kB / 473.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001572/0.1398, allocations: 0.6577 MB / 474.2 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005982/0.1404, allocations: 0.5337 MB / 474.7 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.1406, allocations: 69.08 kB / 474.8 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002451/0.1408, allocations: 219.1 kB / 475 MB, free: 8.578 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002594/0.1411, allocations: 219 kB / 475.2 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.053e-05/0.1412, allocations: 24 kB / 475.2 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002702/0.1414, allocations: 147.8 kB / 475.4 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.1416, allocations: 131.5 kB / 475.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.1418, allocations: 194.8 kB / 475.7 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005781/0.1424, allocations: 0.5648 MB / 476.3 MB, free: 7.309 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1424, allocations: 0 / 476.3 MB, free: 7.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1424, allocations: 4 kB / 476.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.1424, allocations: 0 / 476.3 MB, free: 7.305 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.001218/0.1436, allocations: 0.8864 MB / 477.2 MB, free: 6.344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1437, allocations: 8.031 kB / 477.2 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.452e-05/0.1437, allocations: 50.73 kB / 477.2 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.508e-05/0.1438, allocations: 52.28 kB / 477.3 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000563/0.1444, allocations: 464.1 kB / 477.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/0.1445, allocations: 16.61 kB / 477.7 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.1445, allocations: 23.86 kB / 477.8 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004525/0.145, allocations: 259.3 kB / 478 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.145, allocations: 4 kB / 478 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.145, allocations: 4 kB / 478 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.145, allocations: 4 kB / 478 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003032/0.1453, allocations: 119.8 kB / 478.1 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.1464, allocations: 0.8717 MB / 479 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000677/0.1471, allocations: 294.5 kB / 479.3 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002465/0.1474, allocations: 111.4 kB / 479.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.579e-05/0.1474, allocations: 4 kB / 479.4 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005025/0.1479, allocations: 226.4 kB / 479.6 MB, free: 3.645 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.1479, allocations: 4 kB / 479.6 MB, free: 3.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001297/0.1492, allocations: 404.7 kB / 480 MB, free: 3.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000178/0.1494, allocations: 338.1 kB / 480.4 MB, free: 2.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007492/0.1502, allocations: 0.6354 MB / 481 MB, free: 2.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.75e-05/0.1502, allocations: 41.7 kB / 481 MB, free: 2.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001934/0.1504, allocations: 216.7 kB / 481.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.537e-05/0.1505, allocations: 75.03 kB / 481.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.476e-05/0.1506, allocations: 61.62 kB / 481.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.1508, allocations: 366.8 kB / 481.8 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/0.151, allocations: 83.94 kB / 481.8 MB, free: 1.332 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003437/0.1514, allocations: 241.1 kB / 482.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004507/0.1518, allocations: 231.7 kB / 482.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1518, allocations: 0 / 482.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005861/0.1524, allocations: 316.8 kB / 482.6 MB, free: 480 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.1525, allocations: 8 kB / 482.6 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1525, allocations: 0 / 482.6 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.1525, allocations: 7.938 kB / 482.6 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.1528, allocations: 59.89 kB / 482.7 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1528, allocations: 4 kB / 482.7 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.153, allocations: 27.83 kB / 482.7 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.153, allocations: 8.25 kB / 482.7 MB, free: 364 kB / 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.0002326/0.1532, allocations: 225.9 kB / 482.9 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.777e-05/0.1533, allocations: 51.34 kB / 483 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.644e-05/0.1534, allocations: 59.84 kB / 483 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.1534, allocations: 4 kB / 483.1 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.1534, allocations: 0 / 483.1 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.1535, allocations: 7.984 kB / 483.1 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004397/0.1539, allocations: 409.2 kB / 483.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1539, allocations: 0 / 483.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.154, allocations: 31.91 kB / 483.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.154, allocations: 4 kB / 483.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/0.1541, allocations: 15.88 kB / 483.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.1541, allocations: 7.984 kB / 483.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1541, allocations: 0 / 483.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009976/0.1551, allocations: 354.9 kB / 483.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.1553, allocations: 128.5 kB / 484 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.1554, allocations: 15.88 kB / 484 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/0.1557, allocations: 19.92 kB / 484 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.1558, allocations: 39.95 kB / 484.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.827e-05/0.1559, allocations: 19.98 kB / 484.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000752/0.1566, allocations: 462.8 kB / 484.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1566, allocations: 0 / 484.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006411/0.1573, allocations: 99.89 kB / 484.6 MB, free: 14.34 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.002783/0.1601, allocations: 1.253 MB / 485.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008431/0.161, allocations: 243.5 kB / 486.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.161, allocations: 0 / 486.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004993/0.1615, allocations: 167.8 kB / 486.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006964/0.1622, allocations: 158 kB / 486.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006042/0.1682, allocations: 4.257 MB / 490.7 MB, free: 8.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/0.1688, allocations: 0.8389 MB / 491.5 MB, free: 7.383 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002615/0.1691, allocations: 87.2 kB / 491.6 MB, free: 7.297 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002193/0.1693, allocations: 159.4 kB / 491.8 MB, free: 7.141 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1693, allocations: 0 / 491.8 MB, free: 7.141 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03584/0.2051, allocations: 12.29 MB / 0.4923 GB, free: 10.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.94/8.145, allocations: 2.75 kB / 0.4923 GB, free: 10.97 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