Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_3_2_3_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.001187/0.001187, allocations: 101.8 kB / 16.27 MB, free: 5.965 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.001303/0.001304, allocations: 187.6 kB / 17.19 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.614/1.614, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2582/0.2582, allocations: 43.52 MB / 313.9 MB, free: 0.543 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 68.08 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1388, allocations: 57.78 MB / 440.6 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.004865/0.1437, allocations: 2.264 MB / 442.9 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002927/0.1467, allocations: 1.462 MB / 444.3 MB, free: 3.074 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004487/0.1472, allocations: 7.938 kB / 444.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006203/0.1478, allocations: 143.3 kB / 444.5 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007619/0.1487, allocations: 227 kB / 444.7 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001674/0.1504, allocations: 0.6104 MB / 445.3 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007975/0.1512, allocations: 0.5182 MB / 445.8 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002387/0.1514, allocations: 77.28 kB / 445.9 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005161/0.152, allocations: 223.1 kB / 446.1 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003837/0.1524, allocations: 215 kB / 446.3 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001061/0.1525, allocations: 28 kB / 446.4 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004233/0.1529, allocations: 159.8 kB / 446.5 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001653/0.1531, allocations: 135.5 kB / 446.7 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001923/0.1533, allocations: 198.7 kB / 446.9 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005367/0.1538, allocations: 0.5569 MB / 447.4 MB, free: 4 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.1538, allocations: 0 / 447.4 MB, free: 4 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1539, allocations: 0 / 447.4 MB, free: 4 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.1539, allocations: 0 / 447.4 MB, free: 4 kB / 318.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.001303/0.1552, allocations: 0.8942 MB / 448.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.1552, allocations: 11.89 kB / 448.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.597e-05/0.1553, allocations: 50.73 kB / 448.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.1554, allocations: 56.28 kB / 448.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006661/0.1561, allocations: 460.1 kB / 448.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.1561, allocations: 16.55 kB / 448.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.171e-05/0.1562, allocations: 11.94 kB / 448.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000473/0.1566, allocations: 258.8 kB / 449.1 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.481e-05/0.1567, allocations: 7.922 kB / 449.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.594e-05/0.1567, allocations: 8 kB / 449.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.1567, allocations: 4 kB / 449.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002933/0.157, allocations: 107.9 kB / 449.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.1582, allocations: 0.8833 MB / 450.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007552/0.159, allocations: 290.6 kB / 450.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002663/0.1593, allocations: 107.3 kB / 450.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.391e-05/0.1593, allocations: 12.2 kB / 450.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006436/0.16, allocations: 220.7 kB / 450.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.16, allocations: 0 / 450.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001105/0.1611, allocations: 400.8 kB / 451.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002695/0.1614, allocations: 350.1 kB / 451.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009176/0.1623, allocations: 0.6277 MB / 452.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.65e-05/0.1624, allocations: 37.69 kB / 452.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.1627, allocations: 220.6 kB / 452.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.1628, allocations: 67.17 kB / 452.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/0.163, allocations: 65.64 kB / 452.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003204/0.1633, allocations: 366.8 kB / 452.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.1635, allocations: 87.94 kB / 453 MB, free: 10.04 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003444/0.1639, allocations: 249 kB / 453.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004739/0.1644, allocations: 223.8 kB / 453.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1644, allocations: 0 / 453.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000658/0.165, allocations: 316.8 kB / 453.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.1651, allocations: 8 kB / 453.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.1651, allocations: 0 / 453.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.517e-05/0.1651, allocations: 7.938 kB / 453.7 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002762/0.1654, allocations: 55.91 kB / 453.8 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/0.1654, allocations: 12.11 kB / 453.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002004/0.1656, allocations: 31.69 kB / 453.8 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.1657, allocations: 15.98 kB / 453.9 MB, free: 9.043 MB / 334.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.0002421/0.1659, allocations: 213.7 kB / 454.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.956e-05/0.166, allocations: 51.42 kB / 454.1 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.1662, allocations: 63.84 kB / 454.2 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.1662, allocations: 4 kB / 454.2 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.1662, allocations: 256 / 454.2 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.1662, allocations: 4 kB / 454.2 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004197/0.1666, allocations: 405.2 kB / 454.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1666, allocations: 4 kB / 454.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001315/0.1668, allocations: 27.92 kB / 454.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1668, allocations: 4 kB / 454.6 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/0.1668, allocations: 11.92 kB / 454.6 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.1668, allocations: 0 / 454.6 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.1668, allocations: 7.984 kB / 454.6 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006789/0.1675, allocations: 366.7 kB / 455 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.1676, allocations: 132.5 kB / 455.1 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.832e-05/0.1677, allocations: 11.94 kB / 455.1 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.1679, allocations: 15.98 kB / 455.2 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.168, allocations: 47.89 kB / 455.2 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.013e-05/0.1681, allocations: 8 kB / 455.2 MB, free: 7.582 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005939/0.1687, allocations: 466.8 kB / 455.7 MB, free: 7.129 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.92e-07/0.1687, allocations: 0 / 455.7 MB, free: 7.129 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005246/0.1692, allocations: 99.98 kB / 455.8 MB, free: 7.031 MB / 334.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.002579/0.1718, allocations: 1.252 MB / 457 MB, free: 5.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007032/0.1725, allocations: 239.6 kB / 457.2 MB, free: 5.578 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.1725, allocations: 256 / 457.2 MB, free: 5.578 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003743/0.1729, allocations: 172.4 kB / 457.4 MB, free: 5.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008033/0.1737, allocations: 150.8 kB / 457.6 MB, free: 5.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006561/0.1803, allocations: 4.268 MB / 461.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007133/0.1811, allocations: 0.8428 MB / 462.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003702/0.1815, allocations: 83.2 kB / 462.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.1817, allocations: 171.4 kB / 462.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.1817, allocations: 4 kB / 462.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03374/0.2155, allocations: 12.29 MB / 475.2 MB, free: 3.414 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.883/8.098, allocations: 7.938 kB / 475.2 MB, free: 3.406 MB / 350.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches