Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.0007956/0.0007957, allocations: 97.48 kB / 15.36 MB, free: 0.7344 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.005578/0.005578, allocations: 169.9 kB / 16.27 MB, free: 6.324 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.71/1.71, allocations: 205.4 MB / 222.4 MB, free: 5.547 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.0005425/0.0005425, allocations: 8 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3023, allocations: 47.58 MB / 327 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002667/0.305, allocations: 2.445 MB / 329.5 MB, free: 15.47 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.3067, allocations: 0.7856 MB / 330.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/0.3069, allocations: 2.969 kB / 330.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003349/0.3072, allocations: 65.5 kB / 330.3 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003852/0.3076, allocations: 120 kB / 330.4 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.3079, allocations: 83.19 kB / 330.5 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006072/0.3085, allocations: 414.5 kB / 330.9 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/0.3088, allocations: 89.78 kB / 331 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002151/0.309, allocations: 140.6 kB / 331.2 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002651/0.3093, allocations: 166.2 kB / 331.3 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.29e-05/0.3093, allocations: 25.56 kB / 331.3 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.746e-05/0.3094, allocations: 22.81 kB / 331.4 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.717e-05/0.3095, allocations: 64.75 kB / 331.4 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002369/0.3097, allocations: 210.8 kB / 331.6 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004763/0.3102, allocations: 412.8 kB / 332 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.3102, allocations: 0 / 332 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.3102, allocations: 0 / 332 MB, free: 13.64 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.3103, allocations: 0 / 332 MB, free: 13.64 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.001055/0.3113, allocations: 0.6225 MB / 332.7 MB, free: 13.07 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.3114, allocations: 12.62 kB / 332.7 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.3115, allocations: 39.5 kB / 332.7 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005072/0.312, allocations: 295.3 kB / 333 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.3122, allocations: 57.28 kB / 333.1 MB, free: 12.72 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.833e-05/0.3122, allocations: 26.56 kB / 333.1 MB, free: 12.71 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005877/0.3128, allocations: 323.2 kB / 333.4 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.3128, allocations: 0 / 333.4 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.464e-05/0.3129, allocations: 12.23 kB / 333.4 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.3129, allocations: 4.438 kB / 333.4 MB, free: 12.45 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004561/0.3134, allocations: 208.7 kB / 333.6 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.3149, allocations: 0.8118 MB / 334.4 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006221/0.3156, allocations: 289.2 kB / 334.7 MB, free: 11.48 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000228/0.3158, allocations: 120.8 kB / 334.8 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.547e-05/0.3159, allocations: 15.97 kB / 334.8 MB, free: 11.34 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.3159, allocations: 34.56 kB / 334.9 MB, free: 11.3 MB / 270.1 MB Notification: Performance of pre-optimization done (n=29): time 1.643e-06/0.3159, allocations: 0 / 334.9 MB, free: 11.3 MB / 270.1 MB Notification: Performance of matching and sorting (n=29): time 0.001151/0.3171, allocations: 499.9 kB / 335.4 MB, free: 10.79 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001918/0.3173, allocations: 316.4 kB / 335.7 MB, free: 10.4 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/0.3176, allocations: 279 kB / 335.9 MB, free: 10.12 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.689e-05/0.3177, allocations: 33.7 kB / 336 MB, free: 10.08 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.3178, allocations: 168.7 kB / 336.1 MB, free: 9.906 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.579e-05/0.3179, allocations: 106.5 kB / 336.2 MB, free: 9.801 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-05/0.318, allocations: 33.7 kB / 336.3 MB, free: 9.762 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3181, allocations: 334.8 kB / 336.6 MB, free: 9.426 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.3183, allocations: 95.95 kB / 336.7 MB, free: 9.332 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003034/0.3186, allocations: 228.3 kB / 336.9 MB, free: 9.066 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004499/0.3191, allocations: 278.6 kB / 337.2 MB, free: 8.777 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3191, allocations: 0 / 337.2 MB, free: 8.777 MB / 270.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006186/0.3197, allocations: 372.8 kB / 337.6 MB, free: 8.398 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.3198, allocations: 41.64 kB / 337.6 MB, free: 8.352 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3198, allocations: 0 / 337.6 MB, free: 8.352 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001616/0.32, allocations: 36.84 kB / 337.6 MB, free: 8.312 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.321, allocations: 199.9 kB / 337.8 MB, free: 8.117 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003669/0.3247, allocations: 3.078 MB / 340.9 MB, free: 4.777 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.3251, allocations: 35.91 kB / 340.9 MB, free: 4.742 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.676e-05/0.3251, allocations: 15.94 kB / 341 MB, free: 4.727 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.0002174/0.3253, allocations: 149.8 kB / 341.1 MB, free: 4.57 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.814e-05/0.3254, allocations: 39.56 kB / 341.1 MB, free: 4.531 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.642e-05/0.3255, allocations: 39.08 kB / 341.2 MB, free: 4.492 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.3255, allocations: 4 kB / 341.2 MB, free: 4.488 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3255, allocations: 0 / 341.2 MB, free: 4.488 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006965/0.3262, allocations: 0.6698 MB / 341.9 MB, free: 3.711 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004375/0.3267, allocations: 377.2 kB / 342.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.3267, allocations: 192 / 342.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/0.328, allocations: 259.9 kB / 342.5 MB, free: 3.039 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.313e-05/0.3281, allocations: 24.78 kB / 342.5 MB, free: 3.012 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.3281, allocations: 15.98 kB / 342.5 MB, free: 2.996 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003035/0.3311, allocations: 2.894 MB / 345.4 MB, free: 15.84 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3312, allocations: 4.156 kB / 345.4 MB, free: 15.83 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008313/0.332, allocations: 0.5235 MB / 345.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.3322, allocations: 140.8 kB / 346.1 MB, free: 15.13 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.684e-05/0.3323, allocations: 11.98 kB / 346.1 MB, free: 15.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002701/0.3325, allocations: 19.98 kB / 346.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.588e-05/0.3326, allocations: 19.97 kB / 346.1 MB, free: 15.08 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.3326, allocations: 12 kB / 346.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002009/0.3329, allocations: 201.9 kB / 346.3 MB, free: 14.87 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3329, allocations: 0 / 346.3 MB, free: 14.87 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004376/0.3333, allocations: 111.8 kB / 346.4 MB, free: 14.76 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.0001623/0.3335, allocations: 107.2 kB / 346.6 MB, free: 14.64 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001585/0.3351, allocations: 0.5838 MB / 347.1 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3351, allocations: 0 / 347.1 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.3365, allocations: 454.8 kB / 347.6 MB, free: 13.58 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000609/0.3371, allocations: 96.25 kB / 347.7 MB, free: 13.48 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/0.3389, allocations: 1.046 MB / 348.7 MB, free: 12.41 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.3393, allocations: 0.7762 MB / 349.5 MB, free: 11.61 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001589/0.3395, allocations: 34.97 kB / 349.5 MB, free: 11.58 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.59e-05/0.3395, allocations: 31.42 kB / 349.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3395, allocations: 0 / 349.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of Templates: time 0.01065/0.3502, allocations: 5.717 MB / 355.3 MB, free: 5.828 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1)