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.001671/0.001671, allocations: 102.8 kB / 16.62 MB, free: 6.809 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.001851/0.001851, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.517/1.517, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001364/0.001365, allocations: 43.94 kB / 279.5 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1097, allocations: 46.63 MB / 326.1 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00494/0.1147, allocations: 2.787 MB / 328.9 MB, free: 1.992 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.1164, allocations: 0.8694 MB / 329.8 MB, free: 1.113 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003845/0.1168, allocations: 4 kB / 329.8 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004606/0.1173, allocations: 51.61 kB / 329.8 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006523/0.118, allocations: 123.1 kB / 330 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.1185, allocations: 75.92 kB / 330 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008948/0.1194, allocations: 438.4 kB / 330.5 MB, free: 444 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002907/0.1197, allocations: 99.34 kB / 330.6 MB, free: 344 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003774/0.1201, allocations: 151.5 kB / 330.7 MB, free: 192 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003932/0.1205, allocations: 187.2 kB / 330.9 MB, free: 4 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001647/0.1206, allocations: 32.05 kB / 330.9 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001254/0.1208, allocations: 40 kB / 331 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.655e-05/0.1209, allocations: 75.7 kB / 331 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003833/0.1213, allocations: 191.1 kB / 331.2 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005909/0.1219, allocations: 434.8 kB / 331.6 MB, free: 15.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1219, allocations: 0 / 331.6 MB, free: 15.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1219, allocations: 0 / 331.6 MB, free: 15.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.181e-05/0.122, allocations: 3.938 kB / 331.7 MB, free: 15.24 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.002049/0.124, allocations: 0.6873 MB / 332.3 MB, free: 14.5 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.387e-05/0.1241, allocations: 8.031 kB / 332.3 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001953/0.1243, allocations: 44.47 kB / 332.4 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006761/0.125, allocations: 299.4 kB / 332.7 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/0.1251, allocations: 50.69 kB / 332.7 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.806e-05/0.1252, allocations: 20.38 kB / 332.8 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009866/0.1262, allocations: 321.6 kB / 333.1 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.1262, allocations: 0 / 333.1 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.321e-05/0.1263, allocations: 8 kB / 333.1 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.1263, allocations: 8 kB / 333.1 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005765/0.1269, allocations: 205.6 kB / 333.3 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002062/0.129, allocations: 0.8102 MB / 334.1 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007694/0.1298, allocations: 275 kB / 334.4 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003246/0.1301, allocations: 120.8 kB / 334.5 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.441e-05/0.1302, allocations: 7.984 kB / 334.5 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.169e-05/0.1302, allocations: 38.56 kB / 334.5 MB, free: 12.16 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 2.334e-06/0.1302, allocations: 0 / 334.5 MB, free: 12.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001486/0.1317, allocations: 491.9 kB / 335 MB, free: 11.65 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001804/0.1319, allocations: 312.4 kB / 335.3 MB, free: 11.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004547/0.1324, allocations: 279 kB / 335.6 MB, free: 10.98 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.714e-05/0.1325, allocations: 37.7 kB / 335.6 MB, free: 10.94 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.1326, allocations: 164.7 kB / 335.8 MB, free: 10.77 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002016/0.1329, allocations: 106.5 kB / 335.9 MB, free: 10.67 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/0.133, allocations: 69.69 kB / 336 MB, free: 10.59 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1332, allocations: 342.8 kB / 336.3 MB, free: 10.25 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003187/0.1335, allocations: 87.97 kB / 336.4 MB, free: 10.16 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005237/0.1341, allocations: 215.7 kB / 336.6 MB, free: 9.91 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006446/0.1347, allocations: 270.7 kB / 336.8 MB, free: 9.629 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1347, allocations: 3.938 kB / 336.9 MB, free: 9.625 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000876/0.1356, allocations: 364.8 kB / 337.2 MB, free: 9.254 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.884e-05/0.1357, allocations: 29.7 kB / 337.2 MB, free: 9.219 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.1357, allocations: 4 kB / 337.2 MB, free: 9.215 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002158/0.1359, allocations: 36.94 kB / 337.3 MB, free: 9.176 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.1373, allocations: 163.8 kB / 337.4 MB, free: 9.016 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005084/0.1424, allocations: 3.24 MB / 340.7 MB, free: 5.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004759/0.1429, allocations: 35.78 kB / 340.7 MB, free: 5.465 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.057e-05/0.1429, allocations: 8 kB / 340.7 MB, free: 5.457 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.0002744/0.1432, allocations: 161.7 kB / 340.9 MB, free: 5.289 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.1434, allocations: 27.72 kB / 340.9 MB, free: 5.262 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001148/0.1435, allocations: 39.17 kB / 340.9 MB, free: 5.223 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.1435, allocations: 7.938 kB / 341 MB, free: 5.215 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1435, allocations: 0 / 341 MB, free: 5.215 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008869/0.1444, allocations: 0.6543 MB / 341.6 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006636/0.1451, allocations: 393.2 kB / 342 MB, free: 4.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/0.1451, allocations: 3.938 kB / 342 MB, free: 4.016 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001795/0.1469, allocations: 211.7 kB / 342.2 MB, free: 3.809 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001114/0.147, allocations: 24.84 kB / 342.2 MB, free: 3.781 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.947e-05/0.1471, allocations: 4 kB / 342.2 MB, free: 3.777 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004586/0.1517, allocations: 3.045 MB / 345.3 MB, free: 464 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1517, allocations: 0 / 345.3 MB, free: 464 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.1529, allocations: 0.5154 MB / 345.8 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002907/0.1532, allocations: 136.7 kB / 345.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.681e-05/0.1533, allocations: 8 kB / 345.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003741/0.1537, allocations: 15.98 kB / 345.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.1538, allocations: 27.97 kB / 346 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.012e-05/0.1539, allocations: 8 kB / 346 MB, free: 15.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000427/0.1543, allocations: 202 kB / 346.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1543, allocations: 0 / 346.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007312/0.1551, allocations: 107.8 kB / 346.3 MB, free: 15.4 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.0002188/0.1553, allocations: 103.2 kB / 346.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002194/0.1575, allocations: 0.5485 MB / 346.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.1575, allocations: 4.188 kB / 346.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001911/0.1594, allocations: 394.9 kB / 347.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008673/0.1603, allocations: 92.31 kB / 347.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002609/0.1629, allocations: 0.9767 MB / 348.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004009/0.1634, allocations: 0.7723 MB / 349.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002003/0.1636, allocations: 38.95 kB / 349.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.396e-05/0.1637, allocations: 27.44 kB / 349.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1637, allocations: 0 / 349.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of Templates: time 0.01251/0.1762, allocations: 6.096 MB / 355.3 MB, free: 6.27 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)