Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified") translateModel(ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008656/0.0008657, allocations: 191.9 kB / 8.137 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.027/1.027, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008266/0.0008266, allocations: 82.7 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3154/0.3154, allocations: 48.76 MB / 358.4 MB, free: 53.38 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 5.61e-06/5.63e-06, allocations: 0 / 424.7 MB, free: 8.285 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1077, allocations: 60.25 MB / 485 MB, free: 11.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.665/6.772, allocations: 3.999 GB / 4.473 GB, free: 79.61 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/6.773, allocations: 92.72 kB / 4.473 GB, free: 79.54 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.947/11.72, allocations: 2.126 GB / 6.599 GB, free: 23.78 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003169/11.72, allocations: 107.8 kB / 6.599 GB, free: 23.68 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1246 * Number of variables: 1246 Notification: Performance of Generate backend data structure: time 0.0208/11.74, allocations: 5.446 MB / 6.604 GB, free: 18.18 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/11.74, allocations: 12.03 kB / 6.604 GB, free: 18.17 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009797/11.75, allocations: 1.481 MB / 6.606 GB, free: 16.68 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01147/11.76, allocations: 3.808 MB / 6.61 GB, free: 12.84 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003451/11.76, allocations: 154.5 kB / 6.61 GB, free: 12.69 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002879/11.77, allocations: 303.8 kB / 6.61 GB, free: 12.39 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02031/11.79, allocations: 11.12 MB / 6.621 GB, free: 1.27 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1928/11.98, allocations: 8.865 MB / 6.63 GB, free: 77.37 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-05/11.98, allocations: 5.875 kB / 6.63 GB, free: 77.37 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001001/11.98, allocations: 7.531 kB / 6.63 GB, free: 77.37 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001675/11.98, allocations: 272.2 kB / 6.63 GB, free: 77.36 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04468/12.02, allocations: 35.29 MB / 6.664 GB, free: 67.43 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005785/12.03, allocations: 5.18 MB / 6.669 GB, free: 67.41 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004835/12.04, allocations: 4.148 MB / 6.673 GB, free: 67.37 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02823/12.06, allocations: 23.02 MB / 6.696 GB, free: 59.98 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004962/12.07, allocations: 4.089 MB / 6.7 GB, free: 59.82 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=507): time 6.372e-06/12.07, allocations: 2.875 kB / 6.7 GB, free: 59.82 MB / 0.5573 GB Notification: Performance of matching and sorting (n=507): time 0.0271/12.1, allocations: 11.11 MB / 6.711 GB, free: 59.3 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.787e-05/12.1, allocations: 268.6 kB / 6.711 GB, free: 59.04 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002258/12.1, allocations: 1.676 MB / 6.713 GB, free: 58.81 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001096/12.1, allocations: 32.27 kB / 6.713 GB, free: 58.78 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009498/12.1, allocations: 1.536 MB / 6.714 GB, free: 58.07 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001896/12.1, allocations: 1.736 MB / 6.716 GB, free: 57.05 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003729/12.1, allocations: 0 / 6.716 GB, free: 57.05 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000243/12.1, allocations: 0.5425 MB / 6.716 GB, free: 56.73 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00422/12.11, allocations: 3.353 MB / 6.72 GB, free: 56.71 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005302/12.11, allocations: 4.965 MB / 6.724 GB, free: 54.87 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009646/12.12, allocations: 5.72 MB / 6.73 GB, free: 54.11 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.945e-05/12.12, allocations: 14.66 kB / 6.73 GB, free: 54.11 MB / 0.5573 GB Notification: Performance of matching and sorting (n=761) (initialization): time 0.02328/12.15, allocations: 12.95 MB / 6.743 GB, free: 49.24 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002669/12.15, allocations: 18.5 MB / 6.761 GB, free: 45.79 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.537e-05/12.15, allocations: 48.28 kB / 6.761 GB, free: 45.79 MB / 0.573 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.03826/12.19, allocations: 9.251 MB / 6.77 GB, free: 43.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002993/12.19, allocations: 0.756 MB / 6.771 GB, free: 43.77 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02687/12.22, allocations: 16.72 MB / 6.787 GB, free: 35.54 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005597/12.22, allocations: 0.6782 MB / 6.788 GB, free: 35.25 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001062/12.22, allocations: 283 kB / 6.788 GB, free: 35.2 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 9.909e-06/12.22, allocations: 3.938 kB / 6.788 GB, free: 35.2 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02121/12.24, allocations: 11.8 MB / 6.799 GB, free: 30.79 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001385/12.24, allocations: 45.34 kB / 6.799 GB, free: 30.79 MB / 0.573 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.02823/12.27, allocations: 7.505 MB / 6.807 GB, free: 29.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003814/12.28, allocations: 0.8681 MB / 6.808 GB, free: 29.06 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02246/12.3, allocations: 15.53 MB / 6.823 GB, free: 20.66 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005821/12.3, allocations: 0.5923 MB / 6.823 GB, free: 20.43 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001365/12.31, allocations: 279.5 kB / 6.824 GB, free: 20.38 MB / 0.573 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: DigitalPI1.e_int_wind:DISCRETE(fixed = false ) "Integrated error before anti-windup filtering" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 210 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.DigitalPI1.firstTrigger,DigitalPI1.firstTrigger,$whenCondition1,DigitalPI1.sampleTrigger,DigitalPI1.e,$PRE.DigitalPI1.e_int,DigitalPI1.e_int,DigitalPI1.e_int_wind,DigitalPI1.CSwind,DigitalPI1.CS) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (416): * Single equations (assignments): 412 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {33 313} Notification: Performance of prepare postOptimizeDAE: time 0.002238/12.31, allocations: 243.1 kB / 6.824 GB, free: 20.23 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00143/12.31, allocations: 342.9 kB / 6.824 GB, free: 20.07 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0279/12.34, allocations: 11.91 MB / 6.836 GB, free: 15.75 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.619e-05/12.34, allocations: 52.81 kB / 6.836 GB, free: 15.75 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.462e-05/12.34, allocations: 17.94 kB / 6.836 GB, free: 15.75 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001014/12.34, allocations: 27.14 kB / 6.836 GB, free: 15.75 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04157/12.38, allocations: 19.05 MB / 6.855 GB, free: 7.992 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.614e-05/12.38, allocations: 0 / 6.855 GB, free: 7.992 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004655/12.38, allocations: 0.8133 MB / 6.855 GB, free: 7.965 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01328/12.4, allocations: 3.835 MB / 6.859 GB, free: 6.902 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001183/12.4, allocations: 141.5 kB / 6.859 GB, free: 6.863 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2229/12.62, allocations: 45.51 MB / 6.904 GB, free: 67.97 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/12.62, allocations: 3.906 kB / 6.904 GB, free: 67.97 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02838/12.65, allocations: 15.86 MB / 6.919 GB, free: 67.23 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002816/12.65, allocations: 1.352 MB / 6.92 GB, free: 66.98 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008669/12.65, allocations: 65.42 kB / 6.921 GB, free: 66.98 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003364/12.66, allocations: 258.4 kB / 6.921 GB, free: 66.97 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005965/12.66, allocations: 297.4 kB / 6.921 GB, free: 66.96 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004756/12.66, allocations: 198 kB / 6.921 GB, free: 66.96 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001485/12.66, allocations: 1.207 MB / 6.922 GB, free: 66.82 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.008792/12.67, allocations: 2.959 MB / 6.925 GB, free: 66.66 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 38 (Plant.Boiler.WaterSide.p,Plant.Boiler.WaterSide.htilde[1],Plant.Boiler.WaterSide.htilde[2],Plant.Boiler.WaterSide.htilde[3],Plant.Boiler.WaterSide.htilde[4],Plant.Boiler.WaterSide.htilde[5],Plant.Boiler.WaterSide.htilde[6],Plant.Boiler.WaterSide.htilde[7],Plant.Boiler.WaterSide.htilde[8],Plant.Boiler.WaterSide.htilde[9],Plant.Boiler.WaterSide.htilde[10],Plant.Boiler.TubeWalls.Tvol[1],Plant.Boiler.TubeWalls.Tvol[2],Plant.Boiler.TubeWalls.Tvol[3],Plant.Boiler.TubeWalls.Tvol[4],Plant.Boiler.TubeWalls.Tvol[5],Plant.Boiler.TubeWalls.Tvol[6],Plant.Boiler.TubeWalls.Tvol[7],Plant.Boiler.TubeWalls.Tvol[8],Plant.Boiler.TubeWalls.Tvol[9],Plant.Boiler.TubeWalls.Tvol[10],Plant.Boiler.GasSide.Ttilde[1],Plant.Boiler.GasSide.Ttilde[2],Plant.Boiler.GasSide.Ttilde[3],Plant.Boiler.GasSide.Ttilde[4],Plant.Boiler.GasSide.Ttilde[5],Plant.Boiler.GasSide.Ttilde[6],Plant.Boiler.GasSide.Ttilde[7],Plant.Boiler.GasSide.Ttilde[8],Plant.Boiler.GasSide.Ttilde[9],Plant.Boiler.GasSide.Ttilde[10],Plant.Boiler.GasSide.p,Plant.GasFlowActuator.y,Plant.WaterOutTSensor.y,Plant.GasInTSensor.y,Plant.GasOutTSensor.y,Plant.ValveOpeningActuator.y,Plant.WaterInTSensor.y) * Number of discrete variables: 8 (DigitalPI1.sampleTrigger,$whenCondition1,DigitalPI1.firstTrigger,DigitalPI1.e,DigitalPI1.e_int,DigitalPI1.e_int_wind,DigitalPI1.CSwind,DigitalPI1.CS) * Number of discrete states: 1 (DigitalPI1.e_int) * Top-level inputs: 0 Notification: Strong component statistics for simulation (430): * Single equations (assignments): 398 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 22 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 22 {(11,62.8%) 20,(1,100.0%) 1,(10,64.0%) 21,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002177/12.67, allocations: 1.562 MB / 6.927 GB, free: 66.45 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02953/12.7, allocations: 14.87 MB / 6.941 GB, free: 66.14 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/12.7, allocations: 3.969 kB / 6.941 GB, free: 66.14 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01057/12.71, allocations: 6.862 MB / 6.948 GB, free: 63.91 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006126/12.72, allocations: 1.358 MB / 6.949 GB, free: 63.89 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02113/12.74, allocations: 12.09 MB / 6.961 GB, free: 62.47 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003926/12.74, allocations: 3.442 MB / 6.965 GB, free: 61.69 MB / 0.573 GB Notification: Performance of SimCode: time 5.51e-07/12.74, allocations: 0 / 6.965 GB, free: 61.69 MB / 0.573 GB Notification: Performance of Templates: time 0.389/13.13, allocations: 168.2 MB / 7.129 GB, free: 78.87 MB / 0.573 GB make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified.makefile (rm -f ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified.pipe ; mkfifo ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified.pipe >> ../files/ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified.sim & ./ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified.pipe 2>&1)