Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14.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.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001627/0.001627, 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.001542/0.001542, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.228/0.228, allocations: 46.11 MB / 344.2 MB, free: 11.61 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.002271/0.002271, allocations: 84.64 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1245, allocations: 62.45 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.003447/0.128, allocations: 2.033 MB / 482.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.1299, allocations: 1.103 MB / 483.4 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.13, allocations: 11.88 kB / 483.4 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000301/0.1304, allocations: 43.7 kB / 483.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003228/0.1307, allocations: 111.4 kB / 483.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002731/0.131, allocations: 115.6 kB / 483.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002855/0.1313, allocations: 199.4 kB / 483.8 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.1314, allocations: 33.66 kB / 483.9 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.1316, allocations: 83.64 kB / 483.9 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.1317, allocations: 79.61 kB / 484 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.094e-05/0.1317, allocations: 12 kB / 484 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.1318, allocations: 55.92 kB / 484.1 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.026e-05/0.1319, allocations: 35.84 kB / 484.1 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.166e-05/0.132, allocations: 75.58 kB / 484.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002851/0.1323, allocations: 195.6 kB / 484.4 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1323, allocations: 0 / 484.4 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1323, allocations: 0 / 484.4 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.1323, allocations: 0 / 484.4 MB, free: 0.9727 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0009531/0.1333, allocations: 0.5642 MB / 484.9 MB, free: 356 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.1333, allocations: 8.031 kB / 485 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.029e-05/0.1334, allocations: 42.73 kB / 485 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.174e-05/0.1335, allocations: 16.75 kB / 485 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003181/0.1338, allocations: 252.9 kB / 485.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.1338, allocations: 8.312 kB / 485.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.339e-05/0.1339, allocations: 15.88 kB / 485.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004249/0.1343, allocations: 154.6 kB / 485.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1343, allocations: 0 / 485.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.877e-05/0.1343, allocations: 7.984 kB / 485.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1343, allocations: 4 kB / 485.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004658/0.1348, allocations: 119.8 kB / 485.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006666/0.1355, allocations: 0.5321 MB / 486.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006894/0.1362, allocations: 166.5 kB / 486.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002601/0.1365, allocations: 72.8 kB / 486.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.1365, allocations: 4 kB / 486.3 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00044/0.1369, allocations: 139.1 kB / 486.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.663e-06/0.1369, allocations: 0 / 486.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009019/0.1379, allocations: 261.5 kB / 486.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/0.1379, allocations: 55.41 kB / 486.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002452/0.1382, allocations: 232.2 kB / 487 MB, free: 14.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.1382, allocations: 29.7 kB / 487 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.597e-05/0.1383, allocations: 128.2 kB / 487.2 MB, free: 13.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.142e-05/0.1383, allocations: 39.58 kB / 487.2 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.256e-05/0.1384, allocations: 41.7 kB / 487.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.1386, allocations: 334.8 kB / 487.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002631/0.1389, allocations: 63.94 kB / 487.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000303/0.1392, allocations: 110.4 kB / 487.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005217/0.1397, allocations: 189.8 kB / 487.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1397, allocations: 4 kB / 487.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006664/0.1404, allocations: 253.8 kB / 488.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/0.1404, allocations: 33.7 kB / 488.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1404, allocations: 4.125 kB / 488.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.1405, allocations: 7.938 kB / 488.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.1406, allocations: 35.91 kB / 488.3 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.1407, allocations: 3.984 kB / 488.3 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001783/0.1408, allocations: 31.83 kB / 488.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.1409, allocations: 7.984 kB / 488.3 MB, free: 12.74 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.t_new.nextTimeEvent,$whenCondition2,t_new.nextTimeEventScaled,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEvent,trapezoid1.count,$PRE.trapezoid1.count,trapezoid1.T_start,$PRE.trapezoid1.T_start,$whenCondition1,err1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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.0001357/0.141, allocations: 137.8 kB / 488.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.814e-05/0.1411, allocations: 27.72 kB / 488.5 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.74e-05/0.1411, allocations: 21.39 kB / 488.5 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.1411, allocations: 3.938 kB / 488.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.1411, allocations: 0 / 488.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.1412, allocations: 7.938 kB / 488.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002232/0.1414, allocations: 229.5 kB / 488.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1414, allocations: 0 / 488.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.1416, allocations: 27.97 kB / 488.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1416, allocations: 4 kB / 488.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.1416, allocations: 4 kB / 488.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.1416, allocations: 3.938 kB / 488.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1416, allocations: 3.984 kB / 488.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008999/0.1425, allocations: 308.8 kB / 489.1 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.28e-05/0.1426, allocations: 96.81 kB / 489.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/0.1426, allocations: 4 kB / 489.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.1428, allocations: 23.91 kB / 489.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.949e-05/0.1429, allocations: 19.92 kB / 489.2 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.143, allocations: 4 kB / 489.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001728/0.1431, allocations: 173.6 kB / 489.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1431, allocations: 4.062 kB / 489.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002814/0.1434, allocations: 43.98 kB / 489.4 MB, free: 11.52 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 3 (trapezoid1.count,t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.002737/0.1462, allocations: 1.137 MB / 490.6 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007282/0.1469, allocations: 219.2 kB / 490.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.147, allocations: 256 / 490.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002744/0.1472, allocations: 79.88 kB / 490.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000365/0.1476, allocations: 54.27 kB / 490.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003423/0.151, allocations: 2.174 MB / 493.1 MB, free: 7.867 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.1514, allocations: 0.7241 MB / 493.8 MB, free: 7.117 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.1515, allocations: 25.53 kB / 493.8 MB, free: 7.094 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.1516, allocations: 55.42 kB / 493.9 MB, free: 7.039 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1517, allocations: 0 / 493.9 MB, free: 7.039 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02787/0.1795, allocations: 4.925 MB / 498.8 MB, free: 2.203 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.025/8.205, allocations: 10.27 kB / 498.8 MB, free: 2.195 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_Tables_CombiTimeTable_Test14.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Tables.CombiTimeTable.Test14.pipe 2>&1)