Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.075/1.075, allocations: 111.1 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002707/0.0002708, allocations: 8 kB / 158.4 MB, free: 15.08 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05969/0.06, allocations: 25.17 MB / 183.6 MB, free: 5.875 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.751/4.811, allocations: 1.453 GB / 1.633 GB, free: 36.75 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/4.812, allocations: 72.5 kB / 1.633 GB, free: 36.75 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.296/7.108, allocations: 444.2 MB / 2.066 GB, free: 19.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.154e-06/7.108, allocations: 0 / 2.066 GB, free: 19.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.212e-05/7.108, allocations: 15.34 kB / 2.066 GB, free: 19.05 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.006894/7.115, allocations: 1.798 MB / 2.068 GB, free: 17.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/7.115, allocations: 11.62 kB / 2.068 GB, free: 17.96 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000277/7.115, allocations: 105.2 kB / 2.068 GB, free: 17.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001994/7.115, allocations: 82.41 kB / 2.068 GB, free: 17.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009241/7.116, allocations: 486.2 kB / 2.069 GB, free: 17.62 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.97e-05/7.116, allocations: 66.52 kB / 2.069 GB, free: 17.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/7.117, allocations: 56.22 kB / 2.069 GB, free: 17.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001945/7.119, allocations: 0.7827 MB / 2.07 GB, free: 17.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/7.119, allocations: 1.312 kB / 2.07 GB, free: 17.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.552e-05/7.119, allocations: 28.34 kB / 2.07 GB, free: 17.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/7.119, allocations: 11.06 kB / 2.07 GB, free: 17.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001885/7.121, allocations: 0.6733 MB / 2.07 GB, free: 17.42 MB / 266.7 MB 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.1084/7.229, allocations: 30.46 MB / 2.1 GB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002144/7.231, allocations: 459.5 kB / 2.101 GB, free: 14.48 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6135/7.845, allocations: 121.5 MB / 2.219 GB, free: 19.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001292/7.846, allocations: 420.3 kB / 2.22 GB, free: 19.55 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005148/7.847, allocations: 51.28 kB / 2.22 GB, free: 19.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 3.196e-06/7.847, allocations: 1.75 kB / 2.22 GB, free: 19.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.01761/7.864, allocations: 2.937 MB / 2.223 GB, free: 18.81 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/7.864, allocations: 221.7 kB / 2.223 GB, free: 18.55 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006448/7.865, allocations: 382 kB / 2.223 GB, free: 18.45 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001186/7.865, allocations: 39.86 kB / 2.223 GB, free: 18.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000269/7.866, allocations: 365.8 kB / 2.223 GB, free: 18.2 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002297/7.866, allocations: 184 kB / 2.224 GB, free: 18.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.69e-05/7.866, allocations: 12.81 kB / 2.224 GB, free: 18.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001458/7.866, allocations: 337.2 kB / 2.224 GB, free: 17.8 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007573/7.867, allocations: 238.4 kB / 2.224 GB, free: 17.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008543/7.868, allocations: 409.5 kB / 2.225 GB, free: 17.6 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008905/7.869, allocations: 339.5 kB / 2.225 GB, free: 17.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/7.869, allocations: 1.938 kB / 2.225 GB, free: 17.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002532/7.871, allocations: 0.8642 MB / 2.226 GB, free: 17.39 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.386e-05/7.871, allocations: 70.56 kB / 2.226 GB, free: 17.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/7.871, allocations: 5.375 kB / 2.226 GB, free: 17.33 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008496/7.88, allocations: 340.5 kB / 2.226 GB, free: 17.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009873/7.881, allocations: 144.5 kB / 2.226 GB, free: 17.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/7.882, allocations: 0.6907 MB / 2.227 GB, free: 16.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/7.883, allocations: 69.42 kB / 2.227 GB, free: 16.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/7.883, allocations: 35.44 kB / 2.227 GB, free: 16.79 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: controller.x:VARIABLE(start = controller.x_start fixed = true ) "State of block" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 16 (SteamValve.state_b.phase,SteamValve.state_a.phase,$whenCondition1,$whenCondition2,pump.medium.phase,q_F_Tab.a,q_F_Tab.b,q_F_Tab.last,$PRE.q_F_Tab.nextEvent,q_F_Tab.nextEvent,Y_Valve_Tab.a,Y_Valve_Tab.b,Y_Valve_Tab.last,$PRE.Y_Valve_Tab.nextEvent,Y_Valve_Tab.nextEvent,sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006793/7.884, allocations: 283.7 kB / 2.227 GB, free: 16.6 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001947/7.884, allocations: 61.38 kB / 2.227 GB, free: 16.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004821/7.889, allocations: 1.867 MB / 2.229 GB, free: 16.37 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.469e-05/7.889, allocations: 21.98 kB / 2.229 GB, free: 16.37 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/7.889, allocations: 0 / 2.229 GB, free: 16.37 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.087e-05/7.889, allocations: 3.516 kB / 2.229 GB, free: 16.37 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004909/7.894, allocations: 2.455 MB / 2.232 GB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/7.894, allocations: 0 / 2.232 GB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000755/7.895, allocations: 99.22 kB / 2.232 GB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004128/7.899, allocations: 413.4 kB / 2.232 GB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001797/7.899, allocations: 29.25 kB / 2.232 GB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001267/7.901, allocations: 0.8123 MB / 2.233 GB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/7.901, allocations: 0.75 kB / 2.233 GB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004596/7.905, allocations: 2.071 MB / 2.235 GB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004494/7.906, allocations: 175.7 kB / 2.235 GB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002523/7.906, allocations: 22.88 kB / 2.235 GB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000882/7.907, allocations: 50.72 kB / 2.235 GB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/7.907, allocations: 48.72 kB / 2.235 GB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/7.907, allocations: 31.3 kB / 2.235 GB, free: 14.14 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006138/7.908, allocations: 355 kB / 2.236 GB, free: 13.92 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.3e-07/7.908, allocations: 0 / 2.236 GB, free: 13.92 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.006694/7.915, allocations: 1.382 MB / 2.237 GB, free: 12.83 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (evaporator.p,evaporator.V_l,controller.x) * Number of discrete variables: 18 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse13.phase,$cse16.phase,$cse17.phase,$cse17.region,$whenCondition1,$whenCondition2,pump.medium.phase,q_F_Tab.a,q_F_Tab.b,q_F_Tab.last,q_F_Tab.nextEvent,Y_Valve_Tab.a,Y_Valve_Tab.b,Y_Valve_Tab.last,Y_Valve_Tab.nextEvent) * Number of discrete states: 10 (Y_Valve_Tab.last,Y_Valve_Tab.nextEvent,Y_Valve_Tab.b,Y_Valve_Tab.a,$whenCondition2,q_F_Tab.last,q_F_Tab.nextEvent,q_F_Tab.b,q_F_Tab.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01666/7.931, allocations: 4.507 MB / 2.241 GB, free: 9.781 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003204/7.935, allocations: 1.035 MB / 2.242 GB, free: 9.133 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/7.935, allocations: 0.8438 kB / 2.242 GB, free: 9.133 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001979/7.937, allocations: 0.7793 MB / 2.243 GB, free: 8.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/7.939, allocations: 253.4 kB / 2.243 GB, free: 8.523 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/7.955, allocations: 7.631 MB / 2.251 GB, free: 2.055 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006999/7.956, allocations: 0.9891 MB / 2.252 GB, free: 1.156 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006796/7.957, allocations: 318 kB / 2.252 GB, free: 1.098 MB / 330.7 MB Notification: Performance of SimCode: time 2.034e-06/7.957, allocations: 0 / 2.252 GB, free: 1.098 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.265/12.22, allocations: 40.81 MB / 2.292 GB, free: 76.09 MB / 330.7 MB