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.9553/0.9553, allocations: 110.8 MB / 123.3 MB, free: 10.78 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001927/0.001928, allocations: 155.4 kB / 149.1 MB, free: 0.9922 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.647e-05/2.69e-05, allocations: 4 kB / 180.2 MB, free: 17.58 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06284/0.06289, allocations: 25.18 MB / 205.4 MB, free: 8.445 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.832/3.895, allocations: 1.455 GB / 1.655 GB, free: 43.87 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001927/3.896, allocations: 68.44 kB / 1.655 GB, free: 43.87 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.665/7.561, allocations: 0.8991 GB / 2.554 GB, free: 15.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.816e-06/7.561, allocations: 0 / 2.554 GB, free: 15.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002303/7.561, allocations: 67.2 kB / 2.554 GB, free: 15.04 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.01455/7.575, allocations: 3.888 MB / 2.558 GB, free: 13.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/7.575, allocations: 10.53 kB / 2.558 GB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001535/7.577, allocations: 306.9 kB / 2.558 GB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004916/7.582, allocations: 1.969 MB / 2.56 GB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002928/7.582, allocations: 267.4 kB / 2.561 GB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006968/7.583, allocations: 224.6 kB / 2.561 GB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006186/7.589, allocations: 3.68 MB / 2.564 GB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.684e-05/7.589, allocations: 3.938 kB / 2.564 GB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000293/7.59, allocations: 95.75 kB / 2.565 GB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002145/7.59, allocations: 182.1 kB / 2.565 GB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005499/7.595, allocations: 3.463 MB / 2.568 GB, free: 11.56 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.0245/7.62, allocations: 16.92 MB / 2.585 GB, free: 14.47 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004126/7.624, allocations: 2.111 MB / 2.587 GB, free: 12.44 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002259/7.626, allocations: 1.42 MB / 2.588 GB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4162/8.042, allocations: 108.3 MB / 2.694 GB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.549e-05/8.043, allocations: 55.81 kB / 2.694 GB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001603/8.044, allocations: 178.8 kB / 2.694 GB, free: 15.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 8.927e-06/8.044, allocations: 0 / 2.694 GB, free: 15.5 MB / 362.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: tank.level 2: tank.medium.h 3: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=205): time 0.05204/8.096, allocations: 12.28 MB / 2.706 GB, free: 14.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/8.096, allocations: 129 kB / 2.706 GB, free: 14.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003191/8.1, allocations: 1.427 MB / 2.708 GB, free: 14.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006615/8.1, allocations: 62.58 kB / 2.708 GB, free: 14.26 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.001103/8.101, allocations: 1.02 MB / 2.709 GB, free: 13.94 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001064/8.103, allocations: 0.7002 MB / 2.709 GB, free: 13.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002265/8.103, allocations: 50 kB / 2.709 GB, free: 13.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000262/8.103, allocations: 390.6 kB / 2.71 GB, free: 13.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002933/8.106, allocations: 1.339 MB / 2.711 GB, free: 13.19 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003191/8.109, allocations: 1.807 MB / 2.713 GB, free: 12.67 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.07526/8.184, allocations: 8.514 MB / 2.721 GB, free: 9.668 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.484e-05/8.185, allocations: 4 kB / 2.721 GB, free: 9.664 MB / 362.7 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.0116/8.196, allocations: 4.698 MB / 2.726 GB, free: 7.109 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/8.196, allocations: 8 kB / 2.726 GB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.356e-05/8.196, allocations: 12 kB / 2.726 GB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02036/8.217, allocations: 4.636 MB / 2.73 GB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/8.218, allocations: 280.5 kB / 2.731 GB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0084/8.226, allocations: 5.543 MB / 2.736 GB, free: 476 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/8.229, allocations: 288.1 kB / 2.736 GB, free: 284 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003638/8.23, allocations: 116.3 kB / 2.736 GB, free: 200 kB / 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. 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 (138): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 1 {20 124} Notification: Performance of prepare postOptimizeDAE: time 0.0005545/8.23, allocations: 234.4 kB / 2.737 GB, free: 48 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2452/8.476, allocations: 226.5 kB / 2.737 GB, free: 77.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01317/8.489, allocations: 7.758 MB / 2.744 GB, free: 77.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.968e-05/8.489, allocations: 70.89 kB / 2.744 GB, free: 77.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/8.489, allocations: 4.688 kB / 2.744 GB, free: 77.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008244/8.497, allocations: 6.678 MB / 2.751 GB, free: 76.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01885/8.516, allocations: 11.21 MB / 2.762 GB, free: 76.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/8.516, allocations: 3.953 kB / 2.762 GB, free: 76.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001457/8.518, allocations: 372.2 kB / 2.762 GB, free: 76.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00559/8.523, allocations: 2.267 MB / 2.764 GB, free: 75.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004822/8.524, allocations: 88.11 kB / 2.765 GB, free: 75.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004566/8.528, allocations: 6.276 MB / 2.771 GB, free: 72.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/8.528, allocations: 0 / 2.771 GB, free: 72.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01246/8.541, allocations: 8.993 MB / 2.779 GB, free: 71.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002723/8.544, allocations: 0.779 MB / 2.78 GB, free: 71.56 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006608/8.544, allocations: 60.14 kB / 2.78 GB, free: 71.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002004/8.546, allocations: 248.1 kB / 2.78 GB, free: 71.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004519/8.547, allocations: 213.2 kB / 2.781 GB, free: 71.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002685/8.547, allocations: 89.48 kB / 2.781 GB, free: 71.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001885/8.549, allocations: 1.105 MB / 2.782 GB, free: 71.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.7e-07/8.549, allocations: 0 / 2.782 GB, free: 71.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.009652/8.559, allocations: 2.572 MB / 2.784 GB, free: 71.33 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (tank.medium.h,tank.m,heater.mediums[1].h,radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 36 ($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,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,$cse41.phase,$cse44.phase,$cse51.phase,$cse52.phase,$cse55.phase,$cse55.region,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 (198): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {1 1,2 4,1 1,4 17,2 12,1 1,3 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.01232/8.571, allocations: 3.27 MB / 2.788 GB, free: 71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007805/8.579, allocations: 4.247 MB / 2.792 GB, free: 70.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/8.579, allocations: 4.594 kB / 2.792 GB, free: 70.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004244/8.583, allocations: 2.829 MB / 2.794 GB, free: 70.87 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005847/8.589, allocations: 1.084 MB / 2.796 GB, free: 70.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/8.601, allocations: 6.358 MB / 2.802 GB, free: 69.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001444/8.602, allocations: 2.208 MB / 2.804 GB, free: 69 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00267/8.605, allocations: 0.8205 MB / 2.805 GB, free: 68.94 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006007/8.606, allocations: 212.2 kB / 2.805 GB, free: 68.93 MB / 362.7 MB Notification: Performance of SimCode: time 1.453e-06/8.606, allocations: 2.031 kB / 2.805 GB, free: 68.93 MB / 362.7 MB Notification: Performance of Templates: time 0.4279/9.033, allocations: 108 MB / 2.91 GB, free: 68.23 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)