Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.9236/0.9236, allocations: 110.8 MB / 118.3 MB, free: 14.47 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001805/0.001805, allocations: 163.4 kB / 144 MB, free: 4.789 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.46e-05/1.462e-05, allocations: 4 kB / 173.8 MB, free: 22.8 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05562/0.05565, allocations: 25.18 MB / 199 MB, free: 13.7 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.094/3.149, allocations: 1.454 GB / 1.648 GB, free: 8.793 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/3.15, allocations: 63.97 kB / 1.648 GB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.781/6.931, allocations: 0.8921 GB / 2.54 GB, free: 18.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.453e-06/6.931, allocations: 0 / 2.54 GB, free: 18.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.00033/6.931, allocations: 69.8 kB / 2.541 GB, free: 18.83 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 573 * Number of variables: 573 Notification: Performance of Generate backend data structure: time 0.0171/6.948, allocations: 3.878 MB / 2.544 GB, free: 16.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/6.948, allocations: 11.56 kB / 2.544 GB, free: 16.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002272/6.951, allocations: 310.5 kB / 2.545 GB, free: 16.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006387/6.957, allocations: 1.969 MB / 2.547 GB, free: 16.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003539/6.958, allocations: 196.5 kB / 2.547 GB, free: 16.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001046/6.959, allocations: 130.1 kB / 2.547 GB, free: 16.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005635/6.964, allocations: 2.991 MB / 2.55 GB, free: 16.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006419/6.971, allocations: 3.227 MB / 2.553 GB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.368e-05/6.971, allocations: 10.92 kB / 2.553 GB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004722/6.971, allocations: 7.812 kB / 2.553 GB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002115/6.971, allocations: 179.2 kB / 2.553 GB, free: 15.55 MB / 298.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0213/6.993, allocations: 16.44 MB / 2.569 GB, free: 5.957 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002929/6.996, allocations: 1.925 MB / 2.571 GB, free: 5.484 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001981/6.998, allocations: 1.372 MB / 2.572 GB, free: 4.977 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4737/7.472, allocations: 108.2 MB / 2.678 GB, free: 18.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.516e-05/7.472, allocations: 56.84 kB / 2.678 GB, free: 18.07 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001462/7.473, allocations: 120.9 kB / 2.678 GB, free: 18.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 7.945e-06/7.473, allocations: 0 / 2.678 GB, free: 18.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=234): time 0.1634/7.637, allocations: 19.56 MB / 2.697 GB, free: 14.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.143e-05/7.637, allocations: 128.8 kB / 2.697 GB, free: 14.51 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002205/7.639, allocations: 1.046 MB / 2.698 GB, free: 13.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005523/7.639, allocations: 25.7 kB / 2.698 GB, free: 13.81 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Fluid/Valves.mo:368:7-373:78:writable] Warning: The parameter valve.Av has fixed = false, a start value, start = valve.m_flow_nominal * Modelica.Fluid.Valves.ValveIncompressible$valve.valveCharacteristic(valve.opening_nominal) / sqrt(valve.rho_nominal * valve.dp_nominal) and a binding equation valve.Av = 0.0, which is probably redundant. The binding equation will be ignored, as it is expected for Modelica 3.1. Notification: Performance of collectInitialEqns (initialization): time 0.0008922/7.64, allocations: 1.042 MB / 2.699 GB, free: 13.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00117/7.642, allocations: 0.7628 MB / 2.7 GB, free: 12.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003758/7.642, allocations: 0 / 2.7 GB, free: 12.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002439/7.642, allocations: 409.6 kB / 2.701 GB, free: 12.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002969/7.645, allocations: 1.802 MB / 2.702 GB, free: 11.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003254/7.648, allocations: 2.27 MB / 2.705 GB, free: 9.973 MB / 362.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.02425/7.673, allocations: 6.668 MB / 2.711 GB, free: 6.137 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.147e-05/7.673, allocations: 4 kB / 2.711 GB, free: 6.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=314) (initialization): time 0.01799/7.691, allocations: 6.75 MB / 2.718 GB, free: 2.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.138e-05/7.691, allocations: 15.47 kB / 2.718 GB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.413e-05/7.691, allocations: 13.12 kB / 2.718 GB, free: 2.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01261/7.703, allocations: 4.368 MB / 2.722 GB, free: 0 / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003182/7.707, allocations: 460.9 kB / 2.722 GB, free: 0 / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2625/7.969, allocations: 7.996 MB / 2.73 GB, free: 79.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003872/7.973, allocations: 356.6 kB / 2.731 GB, free: 79.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005861/7.974, allocations: 146.9 kB / 2.731 GB, free: 79.77 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.heater.mediums[1].p = 0.0. Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.tank.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real $DER.heater.mediums[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real [1] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.tank.ports[2].p:DUMMY_DER(flow=false fixed = false ) "Thermodynamic pressure in the connection point" type: Real [2] $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 14 (radiator.state_b.phase,heater.state_a.phase,valve.state_b.phase,valve.state_a.phase,tank.heatTransfer.states[1].phase,pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[1].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,radiator.state_a.phase,heater.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 148 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 11,19 125} Notification: Performance of prepare postOptimizeDAE: time 0.0007059/7.974, allocations: 164 kB / 2.731 GB, free: 79.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005412/7.975, allocations: 204.4 kB / 2.731 GB, free: 79.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01893/7.994, allocations: 10.04 MB / 2.741 GB, free: 79.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01505/8.009, allocations: 8.778 MB / 2.749 GB, free: 78.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/8.009, allocations: 0 / 2.749 GB, free: 78.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01483/8.024, allocations: 8.92 MB / 2.758 GB, free: 77.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02789/8.052, allocations: 16.24 MB / 2.774 GB, free: 76.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/8.052, allocations: 0 / 2.774 GB, free: 76.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001861/8.054, allocations: 403.3 kB / 2.774 GB, free: 76.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006646/8.06, allocations: 3.46 MB / 2.778 GB, free: 76.76 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007027/8.061, allocations: 77.33 kB / 2.778 GB, free: 76.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01078/8.072, allocations: 9.423 MB / 2.787 GB, free: 72.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3531/8.425, allocations: 54.61 MB / 2.84 GB, free: 70.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02101/8.446, allocations: 12.42 MB / 2.853 GB, free: 69.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002019/8.448, allocations: 0.8997 MB / 2.853 GB, free: 69.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005494/8.449, allocations: 16.8 kB / 2.853 GB, free: 69.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002733/8.452, allocations: 278.8 kB / 2.854 GB, free: 69.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004543/8.452, allocations: 252.2 kB / 2.854 GB, free: 69.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002856/8.452, allocations: 114.4 kB / 2.854 GB, free: 69.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001041/8.453, allocations: 0.7657 MB / 2.855 GB, free: 69.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.4e-07/8.453, allocations: 3.062 kB / 2.855 GB, free: 69.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01746/8.471, allocations: 5.203 MB / 2.86 GB, free: 69.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 ($STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 40 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse12.phase,$cse15.phase,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse24.phase,$cse24.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,$cse45.phase,$cse48.phase,$cse53.phase,$cse53.region,$cse56.phase,$cse56.region,$cse57.phase,$cse60.phase,$cse60.region,$cse63.phase,tank.heatTransfer.states[1].phase,pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[1].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,2 9,2 4,1 1,4 16,2 12,1 1,7 33} Notification: Performance of Backend phase and start with SimCode phase: time 0.03156/8.502, allocations: 5.242 MB / 2.865 GB, free: 68.58 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009783/8.512, allocations: 5.576 MB / 2.87 GB, free: 68.47 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/8.512, allocations: 0 / 2.87 GB, free: 68.47 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006677/8.519, allocations: 3.86 MB / 2.874 GB, free: 68.44 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005038/8.524, allocations: 0.9465 MB / 2.875 GB, free: 68.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/8.537, allocations: 7.457 MB / 2.882 GB, free: 67.03 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00173/8.539, allocations: 2.363 MB / 2.885 GB, free: 66.26 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003224/8.542, allocations: 0.9015 MB / 2.886 GB, free: 66.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009621/8.543, allocations: 253.1 kB / 2.886 GB, free: 66.22 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/8.543, allocations: 1.5 kB / 2.886 GB, free: 66.22 MB / 362.7 MB Notification: Performance of Templates: time 0.4718/9.015, allocations: 188.7 MB / 3.07 GB, free: 17.42 MB / 362.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)