Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001394/0.001394, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 192.1 kB / 16.53 MB, free: 6.391 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.547/1.547, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.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.002308/0.002308, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.348, allocations: 46.63 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00402/0.3521, allocations: 2.751 MB / 328.1 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.3536, allocations: 0.8642 MB / 328.9 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002285/0.3538, allocations: 7.562 kB / 328.9 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003661/0.3542, allocations: 72.31 kB / 329 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003203/0.3546, allocations: 135.9 kB / 329.1 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002797/0.3549, allocations: 87.17 kB / 329.2 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005437/0.3554, allocations: 438.3 kB / 329.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002222/0.3556, allocations: 99.67 kB / 329.7 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.3558, allocations: 154.2 kB / 329.9 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002584/0.3561, allocations: 185.6 kB / 330.1 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.313e-05/0.3562, allocations: 34.72 kB / 330.1 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.449e-05/0.3563, allocations: 34.53 kB / 330.1 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.022e-05/0.3563, allocations: 73.53 kB / 330.2 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.3566, allocations: 192.7 kB / 330.4 MB, free: 14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004601/0.357, allocations: 430.5 kB / 330.8 MB, free: 13.69 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.255e-06/0.357, allocations: 3.984 kB / 330.8 MB, free: 13.68 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.357, allocations: 0 / 330.8 MB, free: 13.68 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.3571, allocations: 0 / 330.8 MB, free: 13.68 MB / 270.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.00121/0.3583, allocations: 0.6809 MB / 331.5 MB, free: 13.08 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.343e-05/0.3583, allocations: 9 kB / 331.5 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.3585, allocations: 43.03 kB / 331.6 MB, free: 13.06 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004292/0.3589, allocations: 304.1 kB / 331.9 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.359, allocations: 47.2 kB / 331.9 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.545e-05/0.3591, allocations: 22.03 kB / 331.9 MB, free: 12.72 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000555/0.3597, allocations: 323.5 kB / 332.2 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.3597, allocations: 1.094 kB / 332.2 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.3597, allocations: 11.28 kB / 332.3 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.3597, allocations: 5.344 kB / 332.3 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005156/0.3603, allocations: 200.3 kB / 332.5 MB, free: 12.37 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.3619, allocations: 0.8129 MB / 333.3 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005837/0.3625, allocations: 273.3 kB / 333.5 MB, free: 11.49 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.3627, allocations: 120.8 kB / 333.6 MB, free: 11.37 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.875e-05/0.3628, allocations: 11.94 kB / 333.7 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.3628, allocations: 38.56 kB / 333.7 MB, free: 11.31 MB / 270.1 MB Notification: Performance of pre-optimization done (n=29): time 1.854e-06/0.3628, allocations: 3.938 kB / 333.7 MB, free: 11.3 MB / 270.1 MB Notification: Performance of matching and sorting (n=29): time 0.001336/0.3642, allocations: 483.2 kB / 334.2 MB, free: 10.8 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000286/0.3645, allocations: 316.4 kB / 334.5 MB, free: 10.42 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000366/0.3649, allocations: 279 kB / 334.8 MB, free: 10.14 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.364e-05/0.3649, allocations: 29.7 kB / 334.8 MB, free: 10.1 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.365, allocations: 168.8 kB / 334.9 MB, free: 9.93 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.014e-05/0.3651, allocations: 110.4 kB / 335.1 MB, free: 9.82 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.3653, allocations: 65.69 kB / 335.1 MB, free: 9.75 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3654, allocations: 342.8 kB / 335.5 MB, free: 9.406 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.3656, allocations: 91.95 kB / 335.5 MB, free: 9.316 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002939/0.3659, allocations: 220.3 kB / 335.8 MB, free: 9.059 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004404/0.3664, allocations: 262.7 kB / 336 MB, free: 8.785 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.3664, allocations: 0 / 336 MB, free: 8.785 MB / 270.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006747/0.3671, allocations: 368.7 kB / 336.4 MB, free: 8.41 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.646e-05/0.3671, allocations: 37.69 kB / 336.4 MB, free: 8.367 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.3671, allocations: 0 / 336.4 MB, free: 8.367 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001692/0.3673, allocations: 36.84 kB / 336.4 MB, free: 8.328 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.3683, allocations: 163.9 kB / 336.6 MB, free: 8.168 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003926/0.3723, allocations: 3.232 MB / 339.8 MB, free: 4.66 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003576/0.3727, allocations: 31.81 kB / 339.9 MB, free: 4.629 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/0.3727, allocations: 12 kB / 339.9 MB, free: 4.617 MB / 270.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.0002203/0.3729, allocations: 153.7 kB / 340 MB, free: 4.457 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.604e-05/0.373, allocations: 35.61 kB / 340.1 MB, free: 4.422 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.908e-05/0.3731, allocations: 39.17 kB / 340.1 MB, free: 4.383 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.3731, allocations: 7.984 kB / 340.1 MB, free: 4.375 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.3731, allocations: 4 kB / 340.1 MB, free: 4.371 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006929/0.3738, allocations: 0.6472 MB / 340.8 MB, free: 3.617 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004566/0.3743, allocations: 393.2 kB / 341.2 MB, free: 3.184 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3743, allocations: 192 / 341.2 MB, free: 3.184 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001266/0.3756, allocations: 207.7 kB / 341.4 MB, free: 2.98 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.042e-05/0.3757, allocations: 24.84 kB / 341.4 MB, free: 2.953 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.125e-05/0.3757, allocations: 4 kB / 341.4 MB, free: 2.949 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003249/0.3789, allocations: 3.045 MB / 344.4 MB, free: 15.62 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.379, allocations: 3.938 kB / 344.4 MB, free: 15.62 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008388/0.3798, allocations: 0.5116 MB / 344.9 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001924/0.38, allocations: 144.7 kB / 345.1 MB, free: 14.93 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.794e-05/0.3801, allocations: 4 kB / 345.1 MB, free: 14.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.3803, allocations: 19.98 kB / 345.1 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.83e-05/0.3804, allocations: 23.97 kB / 345.1 MB, free: 14.88 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.126e-05/0.3805, allocations: 7.984 kB / 345.1 MB, free: 14.88 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002227/0.3807, allocations: 202 kB / 345.3 MB, free: 14.68 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3807, allocations: 96 / 345.3 MB, free: 14.68 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004764/0.3812, allocations: 111.8 kB / 345.4 MB, free: 14.57 MB / 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.0001549/0.3813, allocations: 111.1 kB / 345.6 MB, free: 14.45 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.3831, allocations: 0.5486 MB / 346.1 MB, free: 13.87 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.3831, allocations: 0 / 346.1 MB, free: 13.87 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00141/0.3846, allocations: 398.4 kB / 346.5 MB, free: 13.47 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007346/0.3853, allocations: 88.38 kB / 346.6 MB, free: 13.38 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.3873, allocations: 0.8632 MB / 347.4 MB, free: 12.5 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.3877, allocations: 0.7762 MB / 348.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001929/0.3879, allocations: 42.89 kB / 348.3 MB, free: 11.66 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.03e-05/0.388, allocations: 27.44 kB / 348.3 MB, free: 11.63 MB / 286.1 MB Notification: Performance of SimCode: time 7.31e-07/0.388, allocations: 0 / 348.3 MB, free: 11.63 MB / 286.1 MB Notification: Performance of Templates: time 0.01161/0.3996, allocations: 6.194 MB / 354.5 MB, free: 5.43 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1)