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: "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_ClosedLoopDigitalSimulatorSimplified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_ClosedLoopDigitalSimulatorSimplified",fmuType="me",version="2.0",platforms={"static"}) [: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.0009318/0.0009318, allocations: 172.9 kB / 8.127 MB, free: 0.8555 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9854/0.9854, allocations: 205.2 MB / 213.7 MB, free: 8.492 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007997/0.0007997, allocations: 100.5 kB / 261.7 MB, free: 5.102 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.1797/0.1797, allocations: 48.77 MB / 358.5 MB, free: 5.984 MB / 306.8 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.1535/0.3332, allocations: 66.37 MB / 424.8 MB, free: 61.93 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06951/0.4027, allocations: 60.24 MB / 485.1 MB, free: 1.578 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.076/5.479, allocations: 3.999 GB / 4.473 GB, free: 152 MB / 0.5183 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002016/5.479, allocations: 91.22 kB / 4.473 GB, free: 152 MB / 0.5183 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 4.809/10.29, allocations: 2.131 GB / 6.604 GB, free: 15.46 MB / 0.5496 GB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/10.29, allocations: 8.531 kB / 6.604 GB, free: 15.46 MB / 0.5496 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01065/10.3, allocations: 1.488 MB / 6.606 GB, free: 15.21 MB / 0.5496 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01124/10.31, allocations: 3.81 MB / 6.609 GB, free: 14.68 MB / 0.5496 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002642/10.31, allocations: 151.2 kB / 6.61 GB, free: 14.68 MB / 0.5496 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002576/10.31, allocations: 299.2 kB / 6.61 GB, free: 14.67 MB / 0.5496 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01918/10.33, allocations: 11.12 MB / 6.621 GB, free: 14.65 MB / 0.5496 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01799/10.35, allocations: 8.874 MB / 6.629 GB, free: 14.18 MB / 0.5496 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.458e-05/10.35, allocations: 2.25 kB / 6.629 GB, free: 14.18 MB / 0.5496 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008203/10.35, allocations: 7.906 kB / 6.629 GB, free: 14.18 MB / 0.5496 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001611/10.35, allocations: 271.2 kB / 6.63 GB, free: 14.17 MB / 0.5496 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04809/10.4, allocations: 35.3 MB / 6.664 GB, free: 19.8 MB / 0.5652 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00617/10.41, allocations: 5.188 MB / 6.669 GB, free: 19.77 MB / 0.5652 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005039/10.41, allocations: 4.145 MB / 6.673 GB, free: 19.73 MB / 0.5652 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03197/10.44, allocations: 23.01 MB / 6.696 GB, free: 5.68 MB / 0.5652 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00601/10.45, allocations: 4.089 MB / 6.7 GB, free: 3.992 MB / 0.5652 GB Notification: Performance of pre-optimization done (n=507): time 1.122e-05/10.45, allocations: 2.953 kB / 6.7 GB, free: 3.992 MB / 0.5652 GB Notification: Performance of matching and sorting (n=507): time 0.02985/10.48, allocations: 11.13 MB / 6.711 GB, free: 15.97 MB / 0.5808 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/10.48, allocations: 260.7 kB / 6.711 GB, free: 15.71 MB / 0.5808 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003161/10.48, allocations: 1.678 MB / 6.712 GB, free: 14.95 MB / 0.5808 GB Notification: Performance of collectPreVariables (initialization): time 0.001235/10.48, allocations: 29.48 kB / 6.713 GB, free: 14.92 MB / 0.5808 GB Notification: Performance of collectInitialEqns (initialization): time 0.001455/10.48, allocations: 1.54 MB / 6.714 GB, free: 13.77 MB / 0.5808 GB Notification: Performance of collectInitialBindings (initialization): time 0.003121/10.49, allocations: 1.732 MB / 6.716 GB, free: 12.43 MB / 0.5808 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001064/10.49, allocations: 0 / 6.716 GB, free: 12.43 MB / 0.5808 GB Notification: Performance of setup shared object (initialization): time 0.0005441/10.49, allocations: 0.546 MB / 6.716 GB, free: 12.02 MB / 0.5808 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005562/10.49, allocations: 3.346 MB / 6.72 GB, free: 10.52 MB / 0.5808 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006406/10.5, allocations: 4.969 MB / 6.724 GB, free: 7.047 MB / 0.5808 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0108/10.51, allocations: 5.721 MB / 6.73 GB, free: 4.875 MB / 0.5808 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.861e-05/10.51, allocations: 14.31 kB / 6.73 GB, free: 4.875 MB / 0.5808 GB Notification: Performance of matching and sorting (n=761) (initialization): time 0.03106/10.54, allocations: 12.95 MB / 6.743 GB, free: 12 kB / 0.5808 GB Notification: Performance of prepare postOptimizeDAE: time 0.1749/10.72, allocations: 18.5 MB / 6.761 GB, free: 76.82 MB / 0.5808 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001179/10.72, allocations: 46.81 kB / 6.761 GB, free: 76.82 MB / 0.5808 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.03873/10.76, allocations: 9.251 MB / 6.77 GB, free: 76.66 MB / 0.5808 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002909/10.76, allocations: 0.7507 MB / 6.77 GB, free: 76.66 MB / 0.5808 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02414/10.78, allocations: 16.72 MB / 6.787 GB, free: 74.27 MB / 0.5808 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005322/10.79, allocations: 0.6813 MB / 6.787 GB, free: 74.27 MB / 0.5808 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007058/10.79, allocations: 279.4 kB / 6.788 GB, free: 74.27 MB / 0.5808 GB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/10.79, allocations: 3.625 kB / 6.788 GB, free: 74.27 MB / 0.5808 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02155/10.81, allocations: 11.81 MB / 6.799 GB, free: 74.08 MB / 0.5808 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001574/10.81, allocations: 46.59 kB / 6.799 GB, free: 74.08 MB / 0.5808 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.02978/10.84, allocations: 7.5 MB / 6.807 GB, free: 73.92 MB / 0.5808 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004093/10.85, allocations: 0.865 MB / 6.807 GB, free: 73.92 MB / 0.5808 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0207/10.87, allocations: 15.54 MB / 6.823 GB, free: 70.28 MB / 0.5808 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005224/10.87, allocations: 0.5908 MB / 6.823 GB, free: 70.16 MB / 0.5808 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007353/10.87, allocations: 278.9 kB / 6.824 GB, free: 70.16 MB / 0.5808 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.001435/10.87, allocations: 240 kB / 6.824 GB, free: 70.05 MB / 0.5808 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008975/10.87, allocations: 341.2 kB / 6.824 GB, free: 69.89 MB / 0.5808 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02551/10.9, allocations: 11.92 MB / 6.836 GB, free: 69.45 MB / 0.5808 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.103e-05/10.9, allocations: 49.56 kB / 6.836 GB, free: 69.45 MB / 0.5808 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.848e-05/10.9, allocations: 18.91 kB / 6.836 GB, free: 69.45 MB / 0.5808 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.021e-05/10.9, allocations: 22.41 kB / 6.836 GB, free: 69.45 MB / 0.5808 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03444/10.93, allocations: 19.05 MB / 6.854 GB, free: 68.71 MB / 0.5808 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.395e-05/10.93, allocations: 3.781 kB / 6.854 GB, free: 68.71 MB / 0.5808 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004239/10.94, allocations: 0.8126 MB / 6.855 GB, free: 68.71 MB / 0.5808 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01325/10.95, allocations: 3.836 MB / 6.859 GB, free: 68.51 MB / 0.5808 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001518/10.95, allocations: 146.6 kB / 6.859 GB, free: 68.51 MB / 0.5808 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04006/10.99, allocations: 45.49 MB / 6.904 GB, free: 39.62 MB / 0.5808 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/10.99, allocations: 5.781 kB / 6.904 GB, free: 39.62 MB / 0.5808 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03607/11.03, allocations: 15.88 MB / 6.919 GB, free: 33.75 MB / 0.5808 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03952/11.07, allocations: 21.36 MB / 6.94 GB, free: 24.55 MB / 0.5808 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003563/11.07, allocations: 1.348 MB / 6.941 GB, free: 23.78 MB / 0.5808 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001636/11.07, allocations: 66.28 kB / 6.941 GB, free: 23.75 MB / 0.5808 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004403/11.08, allocations: 258.8 kB / 6.942 GB, free: 23.74 MB / 0.5808 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009846/11.08, allocations: 299.5 kB / 6.942 GB, free: 23.7 MB / 0.5808 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008606/11.08, allocations: 198.4 kB / 6.942 GB, free: 23.66 MB / 0.5808 GB Notification: Performance of sort global known variables: time 0.002015/11.08, allocations: 1.2 MB / 6.943 GB, free: 23.12 MB / 0.5808 GB Notification: Performance of remove unused functions: time 0.01353/11.1, allocations: 3.195 MB / 6.946 GB, free: 22.56 MB / 0.5808 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.003003/11.1, allocations: 1.57 MB / 6.948 GB, free: 22.31 MB / 0.5808 GB Notification: Performance of simCode: created initialization part: time 0.03543/11.14, allocations: 14.85 MB / 6.962 GB, free: 17.28 MB / 0.5808 GB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/11.14, allocations: 4.375 kB / 6.962 GB, free: 17.28 MB / 0.5808 GB Notification: Performance of simCode: created simulation system equations: time 0.01291/11.15, allocations: 6.857 MB / 6.969 GB, free: 13.45 MB / 0.5808 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007651/11.16, allocations: 1.37 MB / 6.97 GB, free: 13.2 MB / 0.5808 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02835/11.18, allocations: 12.15 MB / 6.982 GB, free: 9.363 MB / 0.5808 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005504/11.19, allocations: 3.721 MB / 6.986 GB, free: 6.918 MB / 0.5808 GB Notification: Performance of SimCode: time 8.52e-07/11.19, allocations: 0 / 6.986 GB, free: 6.918 MB / 0.5808 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_HRB_Simulators_ClosedLoopDigitalSimulatorSimplified_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Examples_HRB_Simulators_ClosedLoopDigitalSimulatorSimplified.fmu > ThermoPower_ThermoPower.Examples.HRB.Simulators.ClosedLoopDigitalSimulatorSimplified.pipe 2>&1)