Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) 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(ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator") translateModel(ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 110.3 kB / 17.74 MB, free: 5.34 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.001386/0.001386, allocations: 189.4 kB / 18.67 MB, free: 4.418 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.313/1.313, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2716/0.2716, allocations: 48.84 MB / 320.7 MB, free: 11.02 MB / 270.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.001639/0.00164, allocations: 67.89 kB / 451.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.117, allocations: 59.16 MB / 0.4984 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator): time 0.4911/0.6081, allocations: 258.3 MB / 0.7507 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.3688/0.977, allocations: 18.61 MB / 0.7688 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001613/0.9786, allocations: 34.16 kB / 0.7689 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002373/0.981, allocations: 0.9552 MB / 0.7698 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00413/0.9852, allocations: 1.475 MB / 0.7712 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.02178/1.007, allocations: 7.994 MB / 0.779 GB, free: 1.227 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01478/1.022, allocations: 12.24 MB / 0.791 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006757/1.029, allocations: 4.027 MB / 0.7949 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00813/1.037, allocations: 3.835 MB / 0.7987 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007574/1.044, allocations: 3.987 MB / 0.8026 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.003316/1.048, allocations: 1.065 MB / 0.8036 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0236/1.071, allocations: 8.722 MB / 0.8121 GB, free: 0.8945 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.005652/1.077, allocations: 3.34 MB / 0.8154 GB, free: 0.8945 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.01195/1.089, allocations: 4.125 MB / 0.8194 GB, free: 204 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02948/1.119, allocations: 17.14 MB / 0.8361 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/1.119, allocations: 3.594 kB / 0.8362 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.024e-06/1.119, allocations: 0 / 0.8362 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0003403/1.119, allocations: 0.875 kB / 0.8362 GB, free: 7.504 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1369 * Number of variables: 1369 Notification: Performance of Generate backend data structure: time 0.0295/1.148, allocations: 7.46 MB / 0.8434 GB, free: 0.7305 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/1.149, allocations: 11.89 kB / 0.8435 GB, free: 0.7188 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01483/1.163, allocations: 2.396 MB / 0.8458 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01014/1.174, allocations: 3.785 MB / 0.8495 GB, free: 10.66 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004495/1.174, allocations: 387.6 kB / 0.8499 GB, free: 10.29 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003498/1.178, allocations: 0.6864 MB / 0.8505 GB, free: 9.617 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03266/1.21, allocations: 13.34 MB / 0.8636 GB, free: 12.22 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.879e-05/1.21, allocations: 0 / 0.8636 GB, free: 12.22 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001121/1.211, allocations: 210.5 kB / 0.8638 GB, free: 12.02 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003786/1.212, allocations: 354.5 kB / 0.8641 GB, free: 11.67 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03376/1.246, allocations: 15.4 MB / 0.8791 GB, free: 12.27 MB / 0.6544 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.08245/1.328, allocations: 42.57 MB / 0.9207 GB, free: 15.84 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03428/1.362, allocations: 21.47 MB / 0.9417 GB, free: 8.891 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009321/1.372, allocations: 5.048 MB / 0.9466 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.154/1.526, allocations: 81.23 MB / 1.026 GB, free: 8.965 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001671/1.526, allocations: 107.9 kB / 1.026 GB, free: 8.848 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=603): time 1.458e-05/1.526, allocations: 4 kB / 1.026 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of matching and sorting (n=604): time 0.365/1.891, allocations: 39.22 MB / 1.064 GB, free: 404.7 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.961e-05/1.891, allocations: 139.3 kB / 1.064 GB, free: 404.6 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002711/1.894, allocations: 1.619 MB / 1.066 GB, free: 403.9 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.002297/1.896, allocations: 139 kB / 1.066 GB, free: 403.8 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000921/1.897, allocations: 1.407 MB / 1.068 GB, free: 402.7 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.003515/1.901, allocations: 2.096 MB / 1.07 GB, free: 401.1 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003035/1.904, allocations: 1.283 MB / 1.071 GB, free: 400.6 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 5.112e-05/1.904, allocations: 304.5 kB / 1.071 GB, free: 400.3 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00836/1.912, allocations: 5.703 MB / 1.077 GB, free: 397.8 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009495/1.922, allocations: 6.317 MB / 1.083 GB, free: 394.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01816/1.94, allocations: 12.38 MB / 1.095 GB, free: 388.1 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.41e-05/1.94, allocations: 3.875 kB / 1.095 GB, free: 388.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=693) (initialization): time 0.03773/1.978, allocations: 19.16 MB / 1.114 GB, free: 371.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.859e-05/1.978, allocations: 15.98 kB / 1.114 GB, free: 371.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.762e-05/1.978, allocations: 8 kB / 1.114 GB, free: 371.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1321/2.11, allocations: 32.13 MB / 1.145 GB, free: 340.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002122/2.112, allocations: 431.3 kB / 1.146 GB, free: 339.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03853/2.151, allocations: 24.47 MB / 1.169 GB, free: 315.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006962/2.158, allocations: 311.8 kB / 1.17 GB, free: 314.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001974/2.16, allocations: 347.7 kB / 1.17 GB, free: 314.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01322/2.173, allocations: 7.187 MB / 1.177 GB, free: 307.2 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.009883/2.183, allocations: 6.246 MB / 1.183 GB, free: 300.8 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01876/2.202, allocations: 12.25 MB / 1.195 GB, free: 288.4 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.484e-05/2.202, allocations: 4 kB / 1.195 GB, free: 288.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=693) (initialization_lambda0): time 0.04097/2.243, allocations: 18.72 MB / 1.213 GB, free: 269.6 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.276e-05/2.243, allocations: 8 kB / 1.213 GB, free: 269.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.466e-05/2.243, allocations: 12 kB / 1.213 GB, free: 269.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09614/2.339, allocations: 24.41 MB / 1.237 GB, free: 245.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002377/2.341, allocations: 0.4941 MB / 1.238 GB, free: 244.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03891/2.38, allocations: 23.81 MB / 1.261 GB, free: 220.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006698/2.387, allocations: 311.8 kB / 1.261 GB, free: 220.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001972/2.389, allocations: 359.7 kB / 1.262 GB, free: 220 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 13 (Plant.Boiler.WaterSide.fluidState[11].phase,Plant.Boiler.WaterSide.fluidState[10].phase,Plant.Boiler.WaterSide.fluidState[9].phase,Plant.Boiler.WaterSide.fluidState[8].phase,Plant.Boiler.WaterSide.fluidState[7].phase,Plant.Boiler.WaterSide.fluidState[6].phase,Plant.Boiler.WaterSide.fluidState[5].phase,Plant.Boiler.WaterSide.fluidState[4].phase,Plant.Boiler.WaterSide.fluidState[3].phase,Plant.Boiler.WaterSide.fluidState[2].phase,Plant.Boiler.WaterSide.fluidState[1].phase,Plant.WaterOut.fluidState.phase,Plant.WaterIn.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 1, 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 {(36,460)} Notification: Performance of prepare postOptimizeDAE: time 0.004084/2.393, allocations: 450 kB / 1.262 GB, free: 219.6 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003554/2.397, allocations: 353.7 kB / 1.262 GB, free: 219.2 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04849/2.445, allocations: 35.15 MB / 1.297 GB, free: 183.9 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001765/2.445, allocations: 35.83 kB / 1.297 GB, free: 183.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.897e-05/2.445, allocations: 4 kB / 1.297 GB, free: 183.9 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004484/2.45, allocations: 1.769 MB / 1.298 GB, free: 182.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002523/2.453, allocations: 203.9 kB / 1.299 GB, free: 181.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007264/2.46, allocations: 455.3 kB / 1.299 GB, free: 181.5 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002189/2.462, allocations: 0.496 MB / 1.3 GB, free: 181 MB / 0.8106 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.03753/2.5, allocations: 16.53 MB / 1.316 GB, free: 164.4 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0283/2.528, allocations: 19.47 MB / 1.335 GB, free: 144.9 MB / 0.8106 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00843/2.536, allocations: 6.532 MB / 1.341 GB, free: 138.3 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001814/2.538, allocations: 1.176 MB / 1.342 GB, free: 137.1 MB / 0.8106 GB Notification: Performance of Backend: time 6.31e-07/2.538, allocations: 4 kB / 1.342 GB, free: 137.1 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.04972/2.588, allocations: 18.28 MB / 1.36 GB, free: 119.1 MB / 0.8106 GB Notification: Performance of SimCode: time 0.01976/2.608, allocations: 12.25 MB / 1.372 GB, free: 106.8 MB / 0.8106 GB Notification: Performance of Templates: time 0.5545/3.162, allocations: 334 MB / 1.698 GB, free: 157.6 MB / 0.8106 GB make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator.makefile (rm -f ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator.pipe ; mkfifo ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator.pipe >> ../files/ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator.sim & ./ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopSimulator.pipe 2>&1)