Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator.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.ClosedLoopDigitalSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator") translateModel(ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 110.3 kB / 17.74 MB, free: 5.359 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.001078/0.001078, allocations: 189.4 kB / 18.68 MB, free: 4.434 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.362/1.362, 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.2822/0.2822, allocations: 48.85 MB / 320.8 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.001447/0.001447, allocations: 67.88 kB / 451.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1236, allocations: 59.15 MB / 0.4984 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator): time 0.5908/0.7145, allocations: 258.4 MB / 0.7507 GB, free: 7.602 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.3939/1.109, allocations: 18.68 MB / 0.769 GB, free: 1.367 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002396/1.111, allocations: 34.28 kB / 0.769 GB, free: 1.367 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.003231/1.114, allocations: 0.9579 MB / 0.7699 GB, free: 1.367 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005348/1.12, allocations: 1.497 MB / 0.7714 GB, free: 1.367 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.02518/1.145, allocations: 8.006 MB / 0.7792 GB, free: 1.215 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01722/1.162, allocations: 12.29 MB / 0.7912 GB, free: 1.184 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007468/1.17, allocations: 4.037 MB / 0.7951 GB, free: 0.9375 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00985/1.179, allocations: 3.85 MB / 0.7989 GB, free: 0.9375 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008852/1.188, allocations: 4.015 MB / 0.8028 GB, free: 0.9375 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.003795/1.192, allocations: 1.071 MB / 0.8039 GB, free: 0.9375 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02817/1.22, allocations: 8.732 MB / 0.8124 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.005892/1.226, allocations: 3.348 MB / 0.8157 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.01171/1.238, allocations: 4.149 MB / 0.8197 GB, free: 168 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03914/1.277, allocations: 17.19 MB / 0.8365 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.492e-05/1.277, allocations: 4.875 kB / 0.8365 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.226e-06/1.277, allocations: 0 / 0.8365 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0006033/1.278, allocations: 0.7188 kB / 0.8365 GB, free: 7.305 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: 1372 * Number of variables: 1372 Notification: Performance of Generate backend data structure: time 0.0405/1.319, allocations: 7.54 MB / 0.8439 GB, free: 364 kB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 7.09e-05/1.319, allocations: 20.66 kB / 0.8439 GB, free: 344 kB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0171/1.336, allocations: 2.398 MB / 0.8462 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/1.348, allocations: 3.809 MB / 0.85 GB, free: 10.25 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007185/1.349, allocations: 388.1 kB / 0.8503 GB, free: 9.879 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00587/1.355, allocations: 0.6805 MB / 0.851 GB, free: 9.211 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04133/1.396, allocations: 13.38 MB / 0.8641 GB, free: 11.78 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002492/1.397, allocations: 7.094 kB / 0.8641 GB, free: 11.77 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003351/1.4, allocations: 216.7 kB / 0.8643 GB, free: 11.57 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004494/1.401, allocations: 358.5 kB / 0.8646 GB, free: 11.21 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03887/1.439, allocations: 15.42 MB / 0.8797 GB, free: 11.79 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.08465/1.524, allocations: 42.63 MB / 0.9213 GB, free: 15.31 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03512/1.559, allocations: 21.51 MB / 0.9423 GB, free: 8.316 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01006/1.569, allocations: 5.083 MB / 0.9473 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1629/1.732, allocations: 81.24 MB / 1.027 GB, free: 8.344 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01972/1.752, allocations: 7.68 MB / 1.034 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=608): time 1.139e-05/1.752, allocations: 0 / 1.034 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of matching and sorting (n=609): time 0.4068/2.159, allocations: 40.39 MB / 1.074 GB, free: 403.2 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003168/2.159, allocations: 0.4931 MB / 1.074 GB, free: 402.7 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003788/2.163, allocations: 1.655 MB / 1.076 GB, free: 402 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.002345/2.166, allocations: 138.1 kB / 1.076 GB, free: 401.9 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.00159/2.167, allocations: 1.444 MB / 1.077 GB, free: 400.8 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.004571/2.172, allocations: 2.123 MB / 1.079 GB, free: 399.2 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008768/2.181, allocations: 1.305 MB / 1.081 GB, free: 398.7 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.03e-05/2.181, allocations: 301.1 kB / 1.081 GB, free: 398.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01178/2.192, allocations: 5.739 MB / 1.086 GB, free: 395.9 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01108/2.204, allocations: 6.475 MB / 1.093 GB, free: 392.1 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02063/2.224, allocations: 12.46 MB / 1.105 GB, free: 380.7 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.241e-05/2.224, allocations: 0 / 1.105 GB, free: 380.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=699) (initialization): time 0.03985/2.264, allocations: 19.01 MB / 1.123 GB, free: 361.6 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/2.264, allocations: 12 kB / 1.123 GB, free: 361.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.611e-05/2.264, allocations: 11.06 kB / 1.123 GB, free: 361.6 MB / 0.8106 GB Warning: The tearing heuristic was not able to avoid discrete iteration variables because otherwise the system could not have been torn. This may lead to problems during simulation. Notification: Performance of postOpt tearingSystem (initialization): time 0.1372/2.401, allocations: 32.31 MB / 1.155 GB, free: 330.2 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002297/2.404, allocations: 387.4 kB / 1.155 GB, free: 329.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05193/2.456, allocations: 24.74 MB / 1.18 GB, free: 304.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00782/2.464, allocations: 339.7 kB / 1.18 GB, free: 304.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002521/2.466, allocations: 355.7 kB / 1.18 GB, free: 304.2 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01483/2.481, allocations: 7.215 MB / 1.187 GB, free: 297 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.01151/2.493, allocations: 6.407 MB / 1.194 GB, free: 290.4 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02175/2.514, allocations: 12.32 MB / 1.206 GB, free: 277.9 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.303e-05/2.514, allocations: 4 kB / 1.206 GB, free: 277.9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=699) (initialization_lambda0): time 0.04166/2.556, allocations: 19.2 MB / 1.224 GB, free: 258.6 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/2.556, allocations: 11.28 kB / 1.224 GB, free: 258.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/2.556, allocations: 12 kB / 1.224 GB, free: 258.6 MB / 0.8106 GB Warning: The tearing heuristic was not able to avoid discrete iteration variables because otherwise the system could not have been torn. This may lead to problems during simulation. Notification: Performance of postOpt tearingSystem (initialization): time 0.09401/2.65, allocations: 24.63 MB / 1.248 GB, free: 233.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002514/2.653, allocations: 459.4 kB / 1.249 GB, free: 233.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04363/2.696, allocations: 24.09 MB / 1.272 GB, free: 209.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007307/2.704, allocations: 347.7 kB / 1.273 GB, free: 209 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001991/2.706, allocations: 355.7 kB / 1.273 GB, free: 208.6 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 23 (DigitalPI1.firstTrigger,$PRE.DigitalPI1.firstTrigger,DigitalPI1.sampleTrigger,$whenCondition1,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,DigitalPI1.CS,DigitalPI1.CSwind,DigitalPI1.e_int_wind,DigitalPI1.e_int,$PRE.DigitalPI1.e_int,DigitalPI1.e,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 (195): * Single equations (assignments): 191 * 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 {(37,468)} Notification: Performance of prepare postOptimizeDAE: time 0.003952/2.71, allocations: 459.8 kB / 1.273 GB, free: 208.1 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003007/2.713, allocations: 356 kB / 1.274 GB, free: 207.8 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0506/2.763, allocations: 35.31 MB / 1.308 GB, free: 172.3 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001936/2.764, allocations: 39.81 kB / 1.308 GB, free: 172.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.271e-05/2.764, allocations: 0 / 1.308 GB, free: 172.3 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00526/2.769, allocations: 1.773 MB / 1.31 GB, free: 170.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002821/2.772, allocations: 220.8 kB / 1.31 GB, free: 170.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007614/2.779, allocations: 467.3 kB / 1.311 GB, free: 169.8 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002517/2.782, allocations: 0.5078 MB / 1.311 GB, free: 169.3 MB / 0.8106 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.04102/2.823, allocations: 16.78 MB / 1.328 GB, free: 152.5 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.03434/2.857, allocations: 19.81 MB / 1.347 GB, free: 132.6 MB / 0.8106 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00911/2.867, allocations: 6.587 MB / 1.353 GB, free: 126 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.002313/2.869, allocations: 1.237 MB / 1.355 GB, free: 124.8 MB / 0.8106 GB Notification: Performance of Backend: time 4.11e-07/2.869, allocations: 0 / 1.355 GB, free: 124.8 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.05481/2.924, allocations: 18.56 MB / 1.373 GB, free: 106.5 MB / 0.8106 GB Notification: Performance of SimCode: time 0.02407/2.948, allocations: 12.35 MB / 1.385 GB, free: 94.12 MB / 0.8106 GB Notification: Performance of Templates: time 0.6444/3.592, allocations: 339.7 MB / 1.716 GB, free: 142.5 MB / 0.8106 GB make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator.makefile (rm -f ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator.pipe ; mkfifo ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator.pipe >> ../files/ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator.sim & ./ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulator.pipe 2>&1)