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.001534/0.001534, allocations: 109 kB / 16.51 MB, free: 6.707 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.001648/0.001648, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.488/1.488, allocations: 205.1 MB / 223.3 MB, free: 12.39 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.001211/0.001212, allocations: 51.91 kB / 279.3 MB, free: 3.57 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1174, allocations: 46.63 MB / 326 MB, free: 4.871 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004502/0.1219, allocations: 2.783 MB / 328.7 MB, free: 2.066 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.1235, allocations: 0.8656 MB / 329.6 MB, free: 1.191 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.1237, allocations: 7.938 kB / 329.6 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002817/0.124, allocations: 47.67 kB / 329.7 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002742/0.1243, allocations: 127.1 kB / 329.8 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001954/0.1245, allocations: 71.88 kB / 329.9 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004249/0.1249, allocations: 426.3 kB / 330.3 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.1251, allocations: 87.36 kB / 330.4 MB, free: 448 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.1253, allocations: 147.4 kB / 330.5 MB, free: 300 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000217/0.1255, allocations: 163.3 kB / 330.7 MB, free: 136 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.052e-05/0.1256, allocations: 24 kB / 330.7 MB, free: 112 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.818e-05/0.1256, allocations: 28 kB / 330.7 MB, free: 84 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.579e-05/0.1257, allocations: 75.67 kB / 330.8 MB, free: 8 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.1259, allocations: 175.2 kB / 331 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003616/0.1263, allocations: 426.7 kB / 331.4 MB, free: 15.42 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1263, allocations: 0 / 331.4 MB, free: 15.42 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1263, allocations: 0 / 331.4 MB, free: 15.42 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.116e-05/0.1263, allocations: 0 / 331.4 MB, free: 15.42 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.001043/0.1274, allocations: 0.6873 MB / 332.1 MB, free: 14.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.1274, allocations: 8.031 kB / 332.1 MB, free: 14.67 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.64e-05/0.1275, allocations: 48.45 kB / 332.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003203/0.1278, allocations: 295.5 kB / 332.4 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.471e-05/0.1279, allocations: 46.69 kB / 332.4 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.265e-05/0.128, allocations: 20.38 kB / 332.5 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004729/0.1285, allocations: 321.6 kB / 332.8 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.1285, allocations: 0 / 332.8 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.168e-05/0.1285, allocations: 16 kB / 332.8 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.1285, allocations: 7.938 kB / 332.8 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000403/0.1289, allocations: 205.6 kB / 333 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.1303, allocations: 0.8064 MB / 333.8 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005842/0.1309, allocations: 271 kB / 334.1 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002142/0.1312, allocations: 124.8 kB / 334.2 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.118e-05/0.1312, allocations: 4 kB / 334.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.1313, allocations: 38.59 kB / 334.2 MB, free: 12.34 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 3.948e-06/0.1313, allocations: 8 kB / 334.3 MB, free: 12.33 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001027/0.1323, allocations: 475.9 kB / 334.7 MB, free: 11.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001797/0.1325, allocations: 320.4 kB / 335 MB, free: 11.45 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003046/0.1328, allocations: 275 kB / 335.3 MB, free: 11.17 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.527e-05/0.1329, allocations: 37.7 kB / 335.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.133, allocations: 168.7 kB / 335.5 MB, free: 10.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.629e-05/0.1331, allocations: 102.5 kB / 335.6 MB, free: 10.85 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.1332, allocations: 69.69 kB / 335.7 MB, free: 10.78 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.1334, allocations: 342.8 kB / 336 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001965/0.1336, allocations: 91.95 kB / 336.1 MB, free: 10.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002968/0.1339, allocations: 215.7 kB / 336.3 MB, free: 10.09 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004555/0.1344, allocations: 274.6 kB / 336.6 MB, free: 9.805 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.1344, allocations: 0 / 336.6 MB, free: 9.805 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006202/0.135, allocations: 360.8 kB / 336.9 MB, free: 9.438 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.772e-05/0.1351, allocations: 33.64 kB / 337 MB, free: 9.398 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.1351, allocations: 4 kB / 337 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001719/0.1353, allocations: 44.94 kB / 337 MB, free: 9.348 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009708/0.1362, allocations: 159.8 kB / 337.2 MB, free: 9.191 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003508/0.1398, allocations: 3 MB / 340.2 MB, free: 5.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002944/0.1401, allocations: 27.88 kB / 340.2 MB, free: 5.902 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.735e-05/0.1401, allocations: 12 kB / 340.2 MB, free: 5.891 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.0001996/0.1403, allocations: 157.6 kB / 340.4 MB, free: 5.727 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.578e-05/0.1404, allocations: 35.56 kB / 340.4 MB, free: 5.691 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.506e-05/0.1405, allocations: 39.08 kB / 340.4 MB, free: 5.652 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1405, allocations: 4.188 kB / 340.4 MB, free: 5.648 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1405, allocations: 3.938 kB / 340.4 MB, free: 5.645 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000749/0.1412, allocations: 0.6658 MB / 341.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004161/0.1417, allocations: 381.2 kB / 341.5 MB, free: 4.449 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.1417, allocations: 8 kB / 341.5 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001335/0.143, allocations: 211.7 kB / 341.7 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.205e-05/0.1431, allocations: 24.8 kB / 341.7 MB, free: 4.207 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/0.1432, allocations: 7.984 kB / 341.7 MB, free: 4.199 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003009/0.1462, allocations: 2.82 MB / 344.5 MB, free: 1.113 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1462, allocations: 8.047 kB / 344.5 MB, free: 1.105 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008913/0.1471, allocations: 0.5117 MB / 345.1 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000185/0.1473, allocations: 136.7 kB / 345.2 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.806e-05/0.1473, allocations: 8 kB / 345.2 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.1476, allocations: 15.98 kB / 345.2 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.1477, allocations: 27.97 kB / 345.2 MB, free: 380 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.373e-05/0.1478, allocations: 8 kB / 345.2 MB, free: 372 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002768/0.148, allocations: 205.9 kB / 345.4 MB, free: 164 kB / 286.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.148, allocations: 0 / 345.4 MB, free: 164 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005412/0.1486, allocations: 99.91 kB / 345.5 MB, free: 64 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 (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.000221/0.1488, allocations: 111.2 kB / 345.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.1505, allocations: 0.5293 MB / 346.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.1505, allocations: 0 / 346.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.1519, allocations: 406.7 kB / 346.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006374/0.1526, allocations: 83.52 kB / 346.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001876/0.1545, allocations: 0.9566 MB / 347.6 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/0.155, allocations: 0.7723 MB / 348.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001743/0.1551, allocations: 38.95 kB / 348.4 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.842e-05/0.1552, allocations: 31.38 kB / 348.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1552, allocations: 3.938 kB / 348.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of Templates: time 0.01081/0.1661, allocations: 5.762 MB / 354.2 MB, free: 7.289 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)