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.0008895/0.0008893, allocations: 89.8 kB / 16.65 MB, free: 6.535 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.000892/0.0008921, allocations: 175.2 kB / 17.56 MB, free: 6.18 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.541/1.541, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004818/0.0004819, allocations: 8 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1161, allocations: 47.58 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003293/0.1194, allocations: 2.44 MB / 330.8 MB, free: 1.301 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.121, allocations: 0.7955 MB / 331.5 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.1211, allocations: 4 kB / 331.6 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002734/0.1214, allocations: 63.58 kB / 331.6 MB, free: 440 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002909/0.1217, allocations: 119.1 kB / 331.7 MB, free: 320 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001999/0.1219, allocations: 75.91 kB / 331.8 MB, free: 244 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004474/0.1224, allocations: 410.4 kB / 332.2 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.1226, allocations: 87.36 kB / 332.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.1228, allocations: 147.4 kB / 332.4 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.123, allocations: 163.2 kB / 332.6 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.612e-05/0.1231, allocations: 24 kB / 332.6 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.935e-05/0.1231, allocations: 20 kB / 332.6 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.638e-05/0.1232, allocations: 75.61 kB / 332.7 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001886/0.1234, allocations: 200.8 kB / 332.9 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000416/0.1238, allocations: 414.7 kB / 333.3 MB, free: 14.72 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.1238, allocations: 0 / 333.3 MB, free: 14.72 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.731e-06/0.1239, allocations: 0 / 333.3 MB, free: 14.72 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.1239, allocations: 7.938 kB / 333.3 MB, free: 14.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.001147/0.125, allocations: 0.6172 MB / 333.9 MB, free: 14.04 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.1251, allocations: 12.03 kB / 333.9 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.517e-05/0.1252, allocations: 40.56 kB / 334 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003758/0.1256, allocations: 307.3 kB / 334.3 MB, free: 13.65 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.1257, allocations: 42.7 kB / 334.3 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.523e-05/0.1258, allocations: 24.38 kB / 334.4 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000584/0.1263, allocations: 329.5 kB / 334.7 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.1264, allocations: 0 / 334.7 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.1264, allocations: 12 kB / 334.7 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.1264, allocations: 4 kB / 334.7 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004315/0.1269, allocations: 213.6 kB / 334.9 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001457/0.1283, allocations: 0.8142 MB / 335.7 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005993/0.1289, allocations: 289.7 kB / 336 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002274/0.1292, allocations: 120.8 kB / 336.1 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.028e-05/0.1292, allocations: 4 kB / 336.1 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.161e-05/0.1293, allocations: 38.56 kB / 336.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 2.244e-06/0.1293, allocations: 0 / 336.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001109/0.1304, allocations: 495.9 kB / 336.6 MB, free: 11.15 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/0.1306, allocations: 320.4 kB / 337 MB, free: 10.77 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002863/0.1309, allocations: 279 kB / 337.2 MB, free: 10.48 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.489e-05/0.1309, allocations: 33.7 kB / 337.3 MB, free: 10.44 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.1311, allocations: 176.6 kB / 337.4 MB, free: 10.26 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.778e-05/0.1311, allocations: 98.55 kB / 337.5 MB, free: 10.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.368e-05/0.1312, allocations: 33.7 kB / 337.6 MB, free: 10.12 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1313, allocations: 342.8 kB / 337.9 MB, free: 9.781 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002168/0.1316, allocations: 99.95 kB / 338 MB, free: 9.684 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003068/0.1319, allocations: 207.8 kB / 338.2 MB, free: 9.438 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005024/0.1324, allocations: 282.6 kB / 338.5 MB, free: 9.145 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1324, allocations: 3.938 kB / 338.5 MB, free: 9.141 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006521/0.1331, allocations: 380.7 kB / 338.8 MB, free: 8.754 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.642e-05/0.1331, allocations: 29.7 kB / 338.9 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.1331, allocations: 0 / 338.9 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001977/0.1333, allocations: 40.84 kB / 338.9 MB, free: 8.676 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.1344, allocations: 211.8 kB / 339.1 MB, free: 8.469 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003772/0.1382, allocations: 3.07 MB / 342.2 MB, free: 5.137 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003342/0.1385, allocations: 43.81 kB / 342.2 MB, free: 5.094 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.1386, allocations: 8 kB / 342.2 MB, free: 5.086 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002195/0.1388, allocations: 157.8 kB / 342.4 MB, free: 4.922 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.51e-05/0.1389, allocations: 39.56 kB / 342.4 MB, free: 4.883 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.359e-05/0.139, allocations: 35.27 kB / 342.5 MB, free: 4.848 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.139, allocations: 8 kB / 342.5 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.139, allocations: 4 kB / 342.5 MB, free: 4.836 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007061/0.1397, allocations: 0.6582 MB / 343.1 MB, free: 4.07 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004407/0.1402, allocations: 389.1 kB / 343.5 MB, free: 3.641 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1402, allocations: 0 / 343.5 MB, free: 3.641 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.1414, allocations: 255.7 kB / 343.8 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-05/0.1415, allocations: 28.78 kB / 343.8 MB, free: 3.359 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.1416, allocations: 8 kB / 343.8 MB, free: 3.352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003063/0.1446, allocations: 2.898 MB / 346.7 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1447, allocations: 0 / 346.7 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008686/0.1455, allocations: 0.5273 MB / 347.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.1457, allocations: 136.8 kB / 347.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.225e-05/0.1457, allocations: 8 kB / 347.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002931/0.146, allocations: 19.89 kB / 347.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.822e-05/0.1461, allocations: 27.97 kB / 347.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.937e-05/0.1462, allocations: 8 kB / 347.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002145/0.1464, allocations: 209.8 kB / 347.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1464, allocations: 0 / 347.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004816/0.1469, allocations: 100 kB / 347.7 MB, free: 15.12 MB / 302.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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001712/0.1471, allocations: 99.25 kB / 347.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.1486, allocations: 0.5955 MB / 348.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1486, allocations: 0 / 348.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.1501, allocations: 450.9 kB / 348.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005778/0.1507, allocations: 88.31 kB / 349 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.1525, allocations: 1.054 MB / 350 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.1528, allocations: 0.7762 MB / 350.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001619/0.153, allocations: 38.95 kB / 350.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.89e-05/0.1531, allocations: 27.44 kB / 350.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.1531, allocations: 0 / 350.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of Templates: time 0.0106/0.1637, allocations: 5.715 MB / 356.6 MB, free: 6.199 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (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)