Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001225/0.001225, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2406/0.2406, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 79.09 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.123, allocations: 62.45 MB / 480.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003747/0.1268, allocations: 2.325 MB / 482.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00257/0.1294, allocations: 1.688 MB / 484.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.1296, allocations: 4 kB / 484.1 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004188/0.13, allocations: 143.2 kB / 484.3 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000547/0.1306, allocations: 278.7 kB / 484.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001118/0.1317, allocations: 0.533 MB / 485.1 MB, free: 236 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005582/0.1323, allocations: 0.561 MB / 485.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.1325, allocations: 77.06 kB / 485.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002364/0.1327, allocations: 231 kB / 485.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/0.1329, allocations: 227 kB / 486.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.152e-05/0.133, allocations: 28 kB / 486.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002489/0.1333, allocations: 155.8 kB / 486.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.1334, allocations: 135.5 kB / 486.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.1336, allocations: 206.6 kB / 486.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005848/0.1342, allocations: 0.5882 MB / 487.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.1342, allocations: 0 / 487.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1342, allocations: 0 / 487.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.948e-06/0.1342, allocations: 0 / 487.3 MB, free: 14.04 MB / 366.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.001369/0.1356, allocations: 0.9136 MB / 488.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.1356, allocations: 12.03 kB / 488.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.333e-05/0.1357, allocations: 46.73 kB / 488.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.654e-05/0.1358, allocations: 52.28 kB / 488.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005634/0.1364, allocations: 487.9 kB / 488.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.1364, allocations: 16.59 kB / 488.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.167e-05/0.1364, allocations: 15.94 kB / 488.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004275/0.1369, allocations: 260.9 kB / 489.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.1369, allocations: 0 / 489.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.695e-05/0.1369, allocations: 8 kB / 489.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.1369, allocations: 4 kB / 489.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000287/0.1372, allocations: 107.9 kB / 489.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009722/0.1382, allocations: 0.8836 MB / 490.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006349/0.1389, allocations: 298.5 kB / 490.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/0.1391, allocations: 115.4 kB / 490.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.035e-05/0.1391, allocations: 4 kB / 490.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004213/0.1396, allocations: 227.8 kB / 490.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.422e-06/0.1396, allocations: 0 / 490.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008908/0.1405, allocations: 404.7 kB / 491.1 MB, free: 9.918 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001434/0.1406, allocations: 342.1 kB / 491.4 MB, free: 9.504 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006804/0.1413, allocations: 0.667 MB / 492.1 MB, free: 8.828 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.224e-05/0.1414, allocations: 37.7 kB / 492.1 MB, free: 8.785 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.1415, allocations: 240.4 kB / 492.4 MB, free: 8.547 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.251e-05/0.1416, allocations: 63.23 kB / 492.4 MB, free: 8.484 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.766e-05/0.1417, allocations: 61.69 kB / 492.5 MB, free: 8.418 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1418, allocations: 370.8 kB / 492.8 MB, free: 8.047 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.142, allocations: 83.89 kB / 492.9 MB, free: 7.965 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000314/0.1424, allocations: 243.5 kB / 493.2 MB, free: 7.668 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004321/0.1428, allocations: 231.7 kB / 493.4 MB, free: 7.418 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.1428, allocations: 0 / 493.4 MB, free: 7.418 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006267/0.1435, allocations: 320.8 kB / 493.7 MB, free: 7.098 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.1435, allocations: 4 kB / 493.7 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.1435, allocations: 7.938 kB / 493.7 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.1435, allocations: 7.938 kB / 493.7 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002553/0.1438, allocations: 59.89 kB / 493.8 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.1438, allocations: 4 kB / 493.8 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001909/0.144, allocations: 35.89 kB / 493.8 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.144, allocations: 12 kB / 493.8 MB, free: 6.969 MB / 366.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.0002626/0.1443, allocations: 222 kB / 494 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.698e-05/0.1444, allocations: 55.34 kB / 494.1 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.1445, allocations: 64.17 kB / 494.2 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.1445, allocations: 4 kB / 494.2 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.1446, allocations: 4 kB / 494.2 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1446, allocations: 0 / 494.2 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004284/0.145, allocations: 425.2 kB / 494.6 MB, free: 6.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.145, allocations: 4 kB / 494.6 MB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.1451, allocations: 31.92 kB / 494.6 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1451, allocations: 0 / 494.6 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.1452, allocations: 15.92 kB / 494.6 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1452, allocations: 0 / 494.6 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1452, allocations: 0 / 494.6 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006387/0.1458, allocations: 373.9 kB / 495 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.1459, allocations: 124.5 kB / 495.1 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.915e-05/0.146, allocations: 15.92 kB / 495.1 MB, free: 5.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.1462, allocations: 15.98 kB / 495.2 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.1463, allocations: 35.97 kB / 495.2 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.119e-05/0.1463, allocations: 11.98 kB / 495.2 MB, free: 5.488 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005204/0.1469, allocations: 0.491 MB / 495.7 MB, free: 5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1469, allocations: 0 / 495.7 MB, free: 5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004041/0.1473, allocations: 103.8 kB / 495.8 MB, free: 4.898 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.001875/0.1492, allocations: 1.245 MB / 497 MB, free: 3.758 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005357/0.1497, allocations: 240.1 kB / 497.3 MB, free: 3.523 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1497, allocations: 0 / 497.3 MB, free: 3.523 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003211/0.1501, allocations: 172.1 kB / 497.4 MB, free: 3.355 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006466/0.1507, allocations: 154.4 kB / 497.6 MB, free: 3.215 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005221/0.1559, allocations: 4.39 MB / 0.4902 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004605/0.1564, allocations: 0.8467 MB / 0.491 GB, free: 13.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002656/0.1567, allocations: 91.22 kB / 0.4911 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002373/0.1569, allocations: 175.4 kB / 0.4913 GB, free: 13.53 MB / 382.1 MB Notification: Performance of SimCode: time 7.42e-07/0.157, allocations: 4 kB / 0.4913 GB, free: 13.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03246/0.1894, allocations: 12.59 MB / 0.5036 GB, free: 1.012 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/7.928, allocations: 6.188 kB / 0.5036 GB, free: 1.008 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable_res.csv","/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_trunk_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches