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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001603/0.001603, allocations: 180.3 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.915/1.915, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001143/0.001143, allocations: 98.62 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6334/0.6334, allocations: 48.77 MB / 367.9 MB, free: 47.45 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004701/0.0004701, allocations: 12 kB / 438.6 MB, free: 10.98 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2094, allocations: 60.25 MB / 498.9 MB, free: 14.59 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 12.69/12.9, allocations: 4 GB / 4.487 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002892/12.9, allocations: 92.98 kB / 4.487 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 7.73/20.63, allocations: 2.134 GB / 6.621 GB, free: 56.38 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.036e-06/20.63, allocations: 0 / 6.621 GB, free: 56.38 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0005325/20.63, allocations: 114.1 kB / 6.621 GB, free: 56.36 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.03014/20.66, allocations: 5.853 MB / 6.627 GB, free: 53.1 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/20.66, allocations: 13.89 kB / 6.627 GB, free: 53.1 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01303/20.67, allocations: 1.535 MB / 6.628 GB, free: 52.32 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01878/20.69, allocations: 3.804 MB / 6.632 GB, free: 49.73 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006535/20.69, allocations: 351.5 kB / 6.632 GB, free: 49.57 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004523/20.7, allocations: 0.5116 MB / 6.633 GB, free: 49.39 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03397/20.73, allocations: 9.477 MB / 6.642 GB, free: 43.58 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003715/20.73, allocations: 0 / 6.642 GB, free: 43.58 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0048/20.74, allocations: 204.3 kB / 6.642 GB, free: 43.43 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003319/20.74, allocations: 262.7 kB / 6.642 GB, free: 43.38 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03025/20.77, allocations: 11.59 MB / 6.654 GB, free: 37.21 MB / 0.5573 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.08058/20.85, allocations: 32.6 MB / 6.686 GB, free: 4.844 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4691/21.32, allocations: 11.36 MB / 6.697 GB, free: 56.11 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04997/21.37, allocations: 22.07 MB / 6.718 GB, free: 48.75 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007732/21.38, allocations: 4.115 MB / 6.722 GB, free: 48.59 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=486): time 8.155e-06/21.38, allocations: 1.938 kB / 6.722 GB, free: 48.59 MB / 0.5573 GB Notification: Performance of matching and sorting (n=486): time 0.05856/21.43, allocations: 17.26 MB / 6.739 GB, free: 45.94 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001852/21.43, allocations: 260.7 kB / 6.739 GB, free: 45.68 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005778/21.44, allocations: 1.882 MB / 6.741 GB, free: 45.45 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.002912/21.44, allocations: 118.2 kB / 6.741 GB, free: 45.42 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.003286/21.45, allocations: 1.789 MB / 6.743 GB, free: 44.72 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.005552/21.45, allocations: 1.729 MB / 6.745 GB, free: 43.86 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002566/21.45, allocations: 116.1 kB / 6.745 GB, free: 43.86 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0009908/21.46, allocations: 0.5359 MB / 6.745 GB, free: 43.55 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009045/21.46, allocations: 3.363 MB / 6.749 GB, free: 43.53 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01283/21.48, allocations: 5.017 MB / 6.754 GB, free: 41.66 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01223/21.49, allocations: 4.306 MB / 6.758 GB, free: 41.57 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002795/21.49, allocations: 12.84 kB / 6.758 GB, free: 41.57 MB / 0.5573 GB Notification: Performance of matching and sorting (n=739) (initialization): time 0.04104/21.53, allocations: 12 MB / 6.77 GB, free: 40.25 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.006136/21.54, allocations: 18.67 MB / 6.788 GB, free: 36.79 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002025/21.54, allocations: 48.19 kB / 6.788 GB, free: 36.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.1032/21.64, allocations: 15.15 MB / 6.803 GB, free: 34.67 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003493/21.64, allocations: 0.7191 MB / 6.803 GB, free: 34.64 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03354/21.68, allocations: 14 MB / 6.817 GB, free: 27.21 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008773/21.69, allocations: 0.8176 MB / 6.818 GB, free: 26.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002743/21.69, allocations: 272 kB / 6.818 GB, free: 26.86 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/21.69, allocations: 3.688 kB / 6.818 GB, free: 26.86 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03719/21.73, allocations: 11.12 MB / 6.829 GB, free: 22.24 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002774/21.73, allocations: 44.44 kB / 6.829 GB, free: 22.24 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.06923/21.8, allocations: 10.73 MB / 6.839 GB, free: 20.42 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006559/21.8, allocations: 0.8308 MB / 6.84 GB, free: 20.39 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03159/21.83, allocations: 13.49 MB / 6.853 GB, free: 12.46 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009037/21.84, allocations: 0.7262 MB / 6.854 GB, free: 12.15 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002947/21.85, allocations: 275.8 kB / 6.854 GB, free: 12.1 MB / 0.573 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (395): * Single equations (assignments): 391 * 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 312} Notification: Performance of prepare postOptimizeDAE: time 0.01008/21.86, allocations: 1.765 MB / 6.856 GB, free: 11.13 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003401/21.86, allocations: 344.2 kB / 6.856 GB, free: 10.97 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03996/21.9, allocations: 10.67 MB / 6.867 GB, free: 6.648 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.524e-05/21.9, allocations: 45.41 kB / 6.867 GB, free: 6.648 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001254/21.9, allocations: 22.45 kB / 6.867 GB, free: 6.648 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002323/21.9, allocations: 24.53 kB / 6.867 GB, free: 6.645 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06684/21.97, allocations: 18.25 MB / 6.885 GB, free: 14.63 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.483e-05/21.97, allocations: 3.562 kB / 6.885 GB, free: 14.63 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006339/21.97, allocations: 0.7841 MB / 6.886 GB, free: 13.99 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01558/21.99, allocations: 3.908 MB / 6.889 GB, free: 11.18 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00242/21.99, allocations: 195.5 kB / 6.89 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.461/22.45, allocations: 49.8 MB / 6.938 GB, free: 89.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/22.45, allocations: 4.031 kB / 6.938 GB, free: 89.55 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03054/22.48, allocations: 14.49 MB / 6.952 GB, free: 88.98 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004872/22.49, allocations: 1.338 MB / 6.954 GB, free: 88.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001825/22.49, allocations: 147.2 kB / 6.954 GB, free: 88.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005182/22.5, allocations: 349.4 kB / 6.954 GB, free: 88.71 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001587/22.5, allocations: 392.7 kB / 6.954 GB, free: 88.71 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005718/22.5, allocations: 197 kB / 6.955 GB, free: 88.71 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.002279/22.5, allocations: 1.384 MB / 6.956 GB, free: 88.56 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.51e-07/22.5, allocations: 2.344 kB / 6.956 GB, free: 88.56 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01408/22.51, allocations: 3.262 MB / 6.959 GB, free: 88.41 MB / 0.6042 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (408): * Single equations (assignments): 376 * 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.003091/22.52, allocations: 1.391 MB / 6.961 GB, free: 88.21 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.04121/22.56, allocations: 14.91 MB / 6.975 GB, free: 87.83 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.777e-05/22.56, allocations: 5.938 kB / 6.975 GB, free: 87.83 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.01642/22.57, allocations: 7.269 MB / 6.982 GB, free: 85.28 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009295/22.58, allocations: 1.612 MB / 6.984 GB, free: 85.25 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03268/22.62, allocations: 14.78 MB / 6.998 GB, free: 80.96 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005805/22.62, allocations: 3.086 MB / 7.001 GB, free: 80.16 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.008935/22.63, allocations: 2.21 MB / 7.003 GB, free: 80.12 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001962/22.63, allocations: 309.8 kB / 7.004 GB, free: 80.11 MB / 0.6042 GB Notification: Performance of SimCode: time 2.104e-06/22.63, allocations: 0.75 kB / 7.004 GB, free: 80.11 MB / 0.6042 GB Notification: Performance of Templates: time 0.5789/23.21, allocations: 165.2 MB / 7.165 GB, free: 86.91 MB / 0.6042 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)