Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001322/0.001322, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 210.4 kB / 18.58 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2236/0.2236, allocations: 46.12 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002321/0.002321, allocations: 79.91 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.104, allocations: 62.45 MB / 480.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.003824/0.1078, allocations: 2.329 MB / 482.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002996/0.1108, allocations: 1.688 MB / 484.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.111, allocations: 7.938 kB / 484.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000412/0.1114, allocations: 139.3 kB / 484.4 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005886/0.112, allocations: 282.7 kB / 484.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001229/0.1133, allocations: 0.5298 MB / 485.2 MB, free: 176 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006474/0.1139, allocations: 0.5726 MB / 485.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001873/0.1141, allocations: 81.05 kB / 485.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002844/0.1144, allocations: 219.1 kB / 486 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002741/0.1147, allocations: 227 kB / 486.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.72e-05/0.1148, allocations: 28 kB / 486.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002856/0.1151, allocations: 155.8 kB / 486.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000168/0.1152, allocations: 131.6 kB / 486.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002689/0.1155, allocations: 210.6 kB / 486.8 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006739/0.1162, allocations: 0.5921 MB / 487.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1162, allocations: 4 kB / 487.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1162, allocations: 0 / 487.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1162, allocations: 3.938 kB / 487.4 MB, free: 13.96 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.001272/0.1175, allocations: 0.9058 MB / 488.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.1176, allocations: 8.031 kB / 488.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.063e-05/0.1176, allocations: 50.73 kB / 488.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.1177, allocations: 52.28 kB / 488.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006409/0.1184, allocations: 487.9 kB / 488.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.1184, allocations: 12.61 kB / 488.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.557e-05/0.1185, allocations: 15.94 kB / 488.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004725/0.1189, allocations: 260.9 kB / 489.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.119, allocations: 0 / 489.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.025e-05/0.119, allocations: 11.98 kB / 489.1 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.119, allocations: 4 kB / 489.2 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003062/0.1193, allocations: 103.9 kB / 489.3 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.1204, allocations: 0.8875 MB / 490.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007087/0.1212, allocations: 302.5 kB / 490.4 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002422/0.1214, allocations: 107.4 kB / 490.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.1214, allocations: 8 kB / 490.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000477/0.1219, allocations: 223.8 kB / 490.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.1219, allocations: 0 / 490.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.001021/0.123, allocations: 413 kB / 491.2 MB, free: 9.844 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001989/0.1232, allocations: 338.1 kB / 491.5 MB, free: 9.434 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000841/0.124, allocations: 0.667 MB / 492.2 MB, free: 8.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.1241, allocations: 37.7 kB / 492.2 MB, free: 8.715 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002105/0.1243, allocations: 236.5 kB / 492.4 MB, free: 8.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.295e-05/0.1244, allocations: 67.22 kB / 492.5 MB, free: 8.414 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.1245, allocations: 65.69 kB / 492.6 MB, free: 8.344 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.1247, allocations: 366.8 kB / 492.9 MB, free: 7.977 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.1249, allocations: 79.89 kB / 493 MB, free: 7.898 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003695/0.1253, allocations: 245 kB / 493.2 MB, free: 7.598 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004979/0.1258, allocations: 231.3 kB / 493.5 MB, free: 7.348 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1258, allocations: 0 / 493.5 MB, free: 7.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006881/0.1265, allocations: 324.8 kB / 493.8 MB, free: 7.023 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.1265, allocations: 7.984 kB / 493.8 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.1265, allocations: 4 kB / 493.8 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.1266, allocations: 3.938 kB / 493.8 MB, free: 7.008 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002617/0.1268, allocations: 55.91 kB / 493.9 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.1268, allocations: 0 / 493.9 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.127, allocations: 31.77 kB / 493.9 MB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.1271, allocations: 20.12 kB / 493.9 MB, free: 6.902 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.0002476/0.1273, allocations: 217.7 kB / 494.1 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.835e-05/0.1274, allocations: 51.34 kB / 494.2 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.1275, allocations: 64.19 kB / 494.2 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1275, allocations: 7.938 kB / 494.2 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1276, allocations: 0 / 494.2 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.1276, allocations: 7.984 kB / 494.2 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004509/0.128, allocations: 417.4 kB / 494.7 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.128, allocations: 4 kB / 494.7 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.1282, allocations: 27.98 kB / 494.7 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.1282, allocations: 0 / 494.7 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.1282, allocations: 19.86 kB / 494.7 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1282, allocations: 4 kB / 494.7 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1282, allocations: 0 / 494.7 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007105/0.1289, allocations: 365.9 kB / 495.1 MB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.1291, allocations: 124.5 kB / 495.2 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.322e-05/0.1292, allocations: 15.92 kB / 495.2 MB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.1293, allocations: 15.98 kB / 495.2 MB, free: 5.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.1294, allocations: 43.89 kB / 495.3 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.164e-05/0.1295, allocations: 12 kB / 495.3 MB, free: 5.426 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006217/0.1301, allocations: 498.7 kB / 495.8 MB, free: 4.941 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1301, allocations: 4 kB / 495.8 MB, free: 4.938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004139/0.1305, allocations: 103.8 kB / 495.9 MB, free: 4.836 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.002603/0.1332, allocations: 1.262 MB / 497.1 MB, free: 3.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005956/0.1338, allocations: 235.7 kB / 497.4 MB, free: 3.449 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1338, allocations: 0 / 497.4 MB, free: 3.449 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003797/0.1342, allocations: 168.6 kB / 497.5 MB, free: 3.285 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006939/0.1349, allocations: 150.9 kB / 497.7 MB, free: 3.148 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005954/0.1408, allocations: 4.39 MB / 0.4903 GB, free: 14.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004917/0.1413, allocations: 0.8506 MB / 0.4911 GB, free: 13.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002614/0.1416, allocations: 91.23 kB / 0.4912 GB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002624/0.1419, allocations: 179.4 kB / 0.4914 GB, free: 13.45 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1419, allocations: 0 / 0.4914 GB, free: 13.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03634/0.1782, allocations: 12.59 MB / 0.5037 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.14/8.318, allocations: 13 kB / 0.5037 GB, free: 0.9375 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_4_1_0-beta_om_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegerTable.pipe 2>&1)