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.001608/0.001608, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002566/0.002566, allocations: 189.8 kB / 16.13 MB, free: 6.66 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.622/1.622, allocations: 205.1 MB / 222 MB, free: 4.746 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.001361/0.001361, allocations: 51.92 kB / 278 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.324, allocations: 46.62 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004122/0.3281, allocations: 2.805 MB / 327.5 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00154/0.3297, allocations: 0.8577 MB / 328.3 MB, free: 15 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.3299, allocations: 3.531 kB / 328.3 MB, free: 15 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002728/0.3302, allocations: 64.67 kB / 328.4 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002591/0.3305, allocations: 121.3 kB / 328.5 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001884/0.3307, allocations: 81.31 kB / 328.6 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000462/0.3311, allocations: 411.1 kB / 329 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002081/0.3313, allocations: 86.64 kB / 329.1 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.3315, allocations: 144.6 kB / 329.2 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002139/0.3317, allocations: 173.8 kB / 329.4 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.04e-05/0.3318, allocations: 23.84 kB / 329.4 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.229e-05/0.3319, allocations: 23.78 kB / 329.4 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.477e-05/0.332, allocations: 69.42 kB / 329.5 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002068/0.3322, allocations: 180.8 kB / 329.7 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004306/0.3326, allocations: 425.5 kB / 330.1 MB, free: 13.83 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.3326, allocations: 0 / 330.1 MB, free: 13.83 MB / 270.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.3326, allocations: 0 / 330.1 MB, free: 13.83 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.3326, allocations: 0 / 330.1 MB, free: 13.83 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.001162/0.3338, allocations: 0.6803 MB / 330.8 MB, free: 13.23 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.3339, allocations: 10 kB / 330.8 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.78e-05/0.334, allocations: 42.91 kB / 330.8 MB, free: 13.21 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003792/0.3344, allocations: 294.7 kB / 331.1 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.216e-05/0.3345, allocations: 55.78 kB / 331.2 MB, free: 12.87 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.47e-05/0.3345, allocations: 18.81 kB / 331.2 MB, free: 12.87 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005414/0.3351, allocations: 323.4 kB / 331.5 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.3351, allocations: 0 / 331.5 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.334e-05/0.3351, allocations: 12.45 kB / 331.5 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3351, allocations: 4.344 kB / 331.5 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004667/0.3356, allocations: 197.5 kB / 331.7 MB, free: 12.52 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.337, allocations: 0.8159 MB / 332.5 MB, free: 11.85 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.3376, allocations: 277.3 kB / 332.8 MB, free: 11.71 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002381/0.3379, allocations: 115.4 kB / 332.9 MB, free: 11.65 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.829e-05/0.3379, allocations: 7.406 kB / 332.9 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.987e-05/0.338, allocations: 38.94 kB / 333 MB, free: 11.6 MB / 270.1 MB Notification: Performance of pre-optimization done (n=29): time 1.924e-06/0.338, allocations: 0 / 333 MB, free: 11.6 MB / 270.1 MB Notification: Performance of matching and sorting (n=29): time 0.00114/0.3391, allocations: 489.2 kB / 333.4 MB, free: 11.13 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001755/0.3393, allocations: 312.4 kB / 333.7 MB, free: 10.75 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.3396, allocations: 287 kB / 334 MB, free: 10.46 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.45e-05/0.3397, allocations: 33.7 kB / 334.1 MB, free: 10.42 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.3398, allocations: 160.8 kB / 334.2 MB, free: 10.25 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.672e-05/0.3399, allocations: 114.4 kB / 334.3 MB, free: 10.14 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.34, allocations: 57.7 kB / 334.4 MB, free: 10.08 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3402, allocations: 346.8 kB / 334.7 MB, free: 9.73 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.3404, allocations: 91.95 kB / 334.8 MB, free: 9.641 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002832/0.3407, allocations: 220.2 kB / 335 MB, free: 9.383 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000426/0.3411, allocations: 270.6 kB / 335.3 MB, free: 9.102 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.3411, allocations: 0 / 335.3 MB, free: 9.102 MB / 270.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006405/0.3418, allocations: 368.8 kB / 335.7 MB, free: 8.727 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.228e-05/0.3418, allocations: 33.7 kB / 335.7 MB, free: 8.688 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.3418, allocations: 3.984 kB / 335.7 MB, free: 8.684 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001807/0.342, allocations: 36.84 kB / 335.7 MB, free: 8.645 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009728/0.343, allocations: 159.8 kB / 335.9 MB, free: 8.488 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003336/0.3464, allocations: 2.984 MB / 338.9 MB, free: 5.242 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.3467, allocations: 43.81 kB / 338.9 MB, free: 5.199 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/0.3467, allocations: 11.98 kB / 338.9 MB, free: 5.188 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.0001931/0.3469, allocations: 154.3 kB / 339.1 MB, free: 5.027 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.943e-05/0.347, allocations: 43.64 kB / 339.1 MB, free: 4.984 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.392e-05/0.3471, allocations: 35.08 kB / 339.1 MB, free: 4.949 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.3471, allocations: 4 kB / 339.1 MB, free: 4.945 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.3471, allocations: 0 / 339.1 MB, free: 4.945 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007257/0.3478, allocations: 0.6543 MB / 339.8 MB, free: 4.184 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004177/0.3483, allocations: 385.2 kB / 340.2 MB, free: 3.758 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.3483, allocations: 0 / 340.2 MB, free: 3.758 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001246/0.3495, allocations: 207.9 kB / 340.4 MB, free: 3.555 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.935e-05/0.3496, allocations: 28.78 kB / 340.4 MB, free: 3.523 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.3496, allocations: 12 kB / 340.4 MB, free: 3.512 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002972/0.3526, allocations: 2.82 MB / 343.2 MB, free: 436 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3526, allocations: 8.016 kB / 343.3 MB, free: 428 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008475/0.3535, allocations: 0.5039 MB / 343.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.3537, allocations: 144.7 kB / 343.9 MB, free: 15.73 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.091e-05/0.3537, allocations: 8 kB / 343.9 MB, free: 15.72 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.354, allocations: 23.92 kB / 343.9 MB, free: 15.7 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.304e-05/0.3541, allocations: 15.97 kB / 343.9 MB, free: 15.68 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.592e-05/0.3541, allocations: 15.98 kB / 344 MB, free: 15.67 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001985/0.3543, allocations: 201.9 kB / 344.2 MB, free: 15.47 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3543, allocations: 0 / 344.2 MB, free: 15.47 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004443/0.3548, allocations: 107.8 kB / 344.3 MB, free: 15.36 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.0001396/0.3549, allocations: 115.1 kB / 344.4 MB, free: 15.24 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001527/0.3564, allocations: 0.5215 MB / 344.9 MB, free: 14.69 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3565, allocations: 0 / 344.9 MB, free: 14.69 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.3578, allocations: 410.8 kB / 345.3 MB, free: 14.28 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005923/0.3584, allocations: 88.36 kB / 345.4 MB, free: 14.19 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.3603, allocations: 0.9522 MB / 346.3 MB, free: 13.21 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.3607, allocations: 0.7762 MB / 347.1 MB, free: 12.41 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001917/0.3609, allocations: 34.97 kB / 347.1 MB, free: 12.38 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.505e-05/0.361, allocations: 31.42 kB / 347.2 MB, free: 12.35 MB / 286.1 MB Notification: Performance of SimCode: time 1.463e-06/0.361, allocations: 4 kB / 347.2 MB, free: 12.35 MB / 286.1 MB Notification: Performance of Templates: time 0.01123/0.3723, allocations: 5.772 MB / 353 MB, free: 6.574 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)