Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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) 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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001024, allocations: 93.72 kB / 16.3 MB, free: 5.996 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.0009331/0.0009332, allocations: 185.1 kB / 17.2 MB, free: 5.91 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.553/1.553, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.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.0004772/0.0004773, allocations: 15.98 kB / 280.1 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1249, allocations: 47.57 MB / 327.7 MB, free: 4.117 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003066/0.128, allocations: 2.182 MB / 329.9 MB, free: 1.922 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.1295, allocations: 0.7844 MB / 330.7 MB, free: 1.129 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001543/0.1297, allocations: 4 kB / 330.7 MB, free: 1.125 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002197/0.1299, allocations: 47.66 kB / 330.7 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000359/0.1303, allocations: 151.6 kB / 330.9 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002166/0.1305, allocations: 67.88 kB / 330.9 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004809/0.131, allocations: 307.7 kB / 331.2 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002388/0.1312, allocations: 78.19 kB / 331.3 MB, free: 496 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001987/0.1315, allocations: 135.5 kB / 331.4 MB, free: 360 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002518/0.1317, allocations: 151.4 kB / 331.6 MB, free: 208 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.004e-05/0.1318, allocations: 20 kB / 331.6 MB, free: 188 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.864e-05/0.1318, allocations: 20 kB / 331.6 MB, free: 168 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.1319, allocations: 59.77 kB / 331.7 MB, free: 108 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.1321, allocations: 97.52 kB / 331.8 MB, free: 4 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003747/0.1324, allocations: 299.4 kB / 332.1 MB, free: 15.71 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1325, allocations: 0 / 332.1 MB, free: 15.71 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1325, allocations: 0 / 332.1 MB, free: 15.71 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.1325, allocations: 0 / 332.1 MB, free: 15.71 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001139/0.1336, allocations: 0.6171 MB / 332.7 MB, free: 15.04 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.1337, allocations: 8.031 kB / 332.7 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.1338, allocations: 39.62 kB / 332.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/0.1342, allocations: 278.3 kB / 333 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.1343, allocations: 54.12 kB / 333.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.557e-05/0.1344, allocations: 24 kB / 333.1 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005275/0.1349, allocations: 317.5 kB / 333.4 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.1349, allocations: 3.938 kB / 333.4 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.425e-05/0.135, allocations: 12 kB / 333.4 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.135, allocations: 4 kB / 333.4 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004363/0.1354, allocations: 217.5 kB / 333.6 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/0.1369, allocations: 0.787 MB / 334.4 MB, free: 13.17 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007694/0.1377, allocations: 303 kB / 334.7 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.1377, allocations: 7.984 kB / 334.7 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.965e-05/0.1378, allocations: 46.58 kB / 334.8 MB, free: 12.8 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.663e-06/0.1378, allocations: 0 / 334.8 MB, free: 12.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001076/0.1389, allocations: 492.4 kB / 335.2 MB, free: 12.3 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001747/0.1391, allocations: 316.4 kB / 335.5 MB, free: 11.91 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.1394, allocations: 255 kB / 335.8 MB, free: 11.65 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.1394, allocations: 29.7 kB / 335.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.1395, allocations: 172.7 kB / 336 MB, free: 11.44 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.415e-05/0.1396, allocations: 102.5 kB / 336.1 MB, free: 11.34 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.451e-05/0.1397, allocations: 8 kB / 336.1 MB, free: 11.33 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.1398, allocations: 346.8 kB / 336.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.14, allocations: 99.89 kB / 336.5 MB, free: 10.89 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002972/0.1404, allocations: 207.8 kB / 336.7 MB, free: 10.64 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002672/0.1406, allocations: 143 kB / 336.9 MB, free: 10.5 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1406, allocations: 0 / 336.9 MB, free: 10.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006675/0.1413, allocations: 377 kB / 337.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.121e-05/0.1414, allocations: 37.69 kB / 337.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.1414, allocations: 0 / 337.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001861/0.1416, allocations: 36.84 kB / 337.3 MB, free: 10.03 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009954/0.1426, allocations: 203.9 kB / 337.5 MB, free: 9.832 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003903/0.1465, allocations: 3.117 MB / 340.6 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003248/0.1468, allocations: 43.73 kB / 340.7 MB, free: 6.414 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.638e-05/0.1469, allocations: 8 kB / 340.7 MB, free: 6.406 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002225/0.1471, allocations: 149.8 kB / 340.8 MB, free: 6.25 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.765e-05/0.1472, allocations: 35.62 kB / 340.9 MB, free: 6.215 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.06e-05/0.1473, allocations: 39.08 kB / 340.9 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.1473, allocations: 4 kB / 340.9 MB, free: 6.172 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1473, allocations: 4.312 kB / 340.9 MB, free: 6.168 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007296/0.148, allocations: 0.6659 MB / 341.6 MB, free: 5.395 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004267/0.1485, allocations: 369.2 kB / 341.9 MB, free: 4.984 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.812e-06/0.1485, allocations: 7.984 kB / 341.9 MB, free: 4.977 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.1498, allocations: 255.8 kB / 342.2 MB, free: 4.727 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.797e-05/0.1499, allocations: 28.78 kB / 342.2 MB, free: 4.695 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.1499, allocations: 4 kB / 342.2 MB, free: 4.691 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003285/0.1532, allocations: 2.93 MB / 345.2 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.1532, allocations: 0 / 345.2 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008406/0.1541, allocations: 0.5272 MB / 345.7 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.1542, allocations: 136.8 kB / 345.8 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.372e-05/0.1543, allocations: 7.938 kB / 345.8 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002619/0.1546, allocations: 27.98 kB / 345.9 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.296e-05/0.1546, allocations: 19.97 kB / 345.9 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.112e-05/0.1547, allocations: 8 kB / 345.9 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001772/0.1549, allocations: 185.9 kB / 346.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1549, allocations: 0 / 346.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004405/0.1553, allocations: 103.9 kB / 346.2 MB, free: 460 kB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001542/0.1555, allocations: 107.2 kB / 346.3 MB, free: 340 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.1571, allocations: 0.58 MB / 346.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1571, allocations: 0 / 346.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001369/0.1585, allocations: 450.9 kB / 347.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004581/0.1589, allocations: 84.31 kB / 347.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.1607, allocations: 1.025 MB / 348.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.1611, allocations: 0.7834 MB / 349.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.1613, allocations: 34.28 kB / 349.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.743e-05/0.1614, allocations: 27.42 kB / 349.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1614, allocations: 0 / 349.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of Templates: time 0.01046/0.1718, allocations: 5.22 MB / 354.5 MB, free: 8.055 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) Environment - environmentSimulation: