Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.676/1.676, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003679/0.0003679, allocations: 12 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08426/0.08467, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.97/8.054, allocations: 2.56 GB / 2.826 GB, free: 85.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003057/8.055, allocations: 92.89 kB / 2.826 GB, free: 85.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.435/10.49, allocations: 483.7 MB / 3.299 GB, free: 22.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.523e-06/10.49, allocations: 0 / 3.299 GB, free: 22.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.992e-05/10.49, allocations: 15.59 kB / 3.299 GB, free: 22.78 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.007846/10.5, allocations: 1.869 MB / 3.3 GB, free: 21.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/10.5, allocations: 9.5 kB / 3.3 GB, free: 21.59 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003483/10.5, allocations: 123.4 kB / 3.301 GB, free: 21.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003081/10.5, allocations: 234.3 kB / 3.301 GB, free: 21.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001478/10.5, allocations: 0.5057 MB / 3.301 GB, free: 21.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.507e-05/10.5, allocations: 49.19 kB / 3.301 GB, free: 21.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/10.5, allocations: 58.91 kB / 3.301 GB, free: 21.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003083/10.51, allocations: 0.9053 MB / 3.302 GB, free: 20.63 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.999e-05/10.51, allocations: 0 / 3.302 GB, free: 20.63 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001133/10.51, allocations: 29.03 kB / 3.302 GB, free: 20.62 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.705e-05/10.51, allocations: 15 kB / 3.302 GB, free: 20.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002808/10.51, allocations: 0.7304 MB / 3.303 GB, free: 20.41 MB / 362.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.006541/10.52, allocations: 4.122 MB / 3.307 GB, free: 17.06 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002588/10.52, allocations: 0.6171 MB / 3.308 GB, free: 16.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6044/11.12, allocations: 54.89 MB / 3.361 GB, free: 32.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003411/11.13, allocations: 0.5382 MB / 3.362 GB, free: 31.89 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001021/11.13, allocations: 85.7 kB / 3.362 GB, free: 31.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=53): time 7.124e-06/11.13, allocations: 0 / 3.362 GB, free: 31.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.0261/11.15, allocations: 3.251 MB / 3.365 GB, free: 31.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/11.15, allocations: 274 kB / 3.365 GB, free: 30.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/11.15, allocations: 394.7 kB / 3.366 GB, free: 30.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002466/11.16, allocations: 38.48 kB / 3.366 GB, free: 30.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003618/11.16, allocations: 363.7 kB / 3.366 GB, free: 30.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004035/11.16, allocations: 200.8 kB / 3.366 GB, free: 30.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/11.16, allocations: 13.84 kB / 3.366 GB, free: 30.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/11.16, allocations: 338 kB / 3.367 GB, free: 29.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001383/11.16, allocations: 261.4 kB / 3.367 GB, free: 29.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001619/11.16, allocations: 457.4 kB / 3.367 GB, free: 29.76 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001639/11.16, allocations: 364.7 kB / 3.368 GB, free: 29.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.387e-06/11.16, allocations: 1.969 kB / 3.368 GB, free: 29.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.004771/11.17, allocations: 0.9641 MB / 3.369 GB, free: 29.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/11.17, allocations: 77.45 kB / 3.369 GB, free: 29.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.012e-05/11.17, allocations: 4.844 kB / 3.369 GB, free: 29.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009548/11.18, allocations: 359.7 kB / 3.369 GB, free: 29.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/11.18, allocations: 136.8 kB / 3.369 GB, free: 29.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002456/11.18, allocations: 0.7962 MB / 3.37 GB, free: 28.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/11.18, allocations: 64.52 kB / 3.37 GB, free: 28.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002901/11.18, allocations: 46.28 kB / 3.37 GB, free: 28.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 17 ($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,SteamValve.state_b.phase,SteamValve.state_a.phase,sink.state.phase,sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 67 * 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.0009427/11.18, allocations: 286.1 kB / 3.37 GB, free: 28.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003429/11.18, allocations: 68.31 kB / 3.37 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01249/11.2, allocations: 4.686 MB / 3.375 GB, free: 28.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-05/11.2, allocations: 29.7 kB / 3.375 GB, free: 28.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/11.2, allocations: 4.875 kB / 3.375 GB, free: 28.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.149e-05/11.2, allocations: 3.656 kB / 3.375 GB, free: 28.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01607/11.21, allocations: 6.443 MB / 3.381 GB, free: 27.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-05/11.21, allocations: 3.719 kB / 3.381 GB, free: 27.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/11.21, allocations: 91.3 kB / 3.381 GB, free: 27.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00518/11.22, allocations: 1.081 MB / 3.382 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002499/11.22, allocations: 25.55 kB / 3.382 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004386/11.22, allocations: 2.346 MB / 3.385 GB, free: 27.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/11.22, allocations: 0 / 3.385 GB, free: 27.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01462/11.24, allocations: 5.421 MB / 3.39 GB, free: 26.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006584/11.24, allocations: 241.2 kB / 3.39 GB, free: 26.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004855/11.24, allocations: 21.62 kB / 3.39 GB, free: 26.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001853/11.24, allocations: 63.89 kB / 3.39 GB, free: 26.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002484/11.24, allocations: 52.55 kB / 3.39 GB, free: 26.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001443/11.24, allocations: 36.41 kB / 3.39 GB, free: 26.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001196/11.24, allocations: 457.2 kB / 3.391 GB, free: 26.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.773e-06/11.24, allocations: 0 / 3.391 GB, free: 26.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008191/11.25, allocations: 1.212 MB / 3.392 GB, free: 26.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (evaporator.p,evaporator.V_l,controller.x) * Number of discrete variables: 25 ($cse1.region3boundary,$cse2.region3boundary,$cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.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 (57): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 8 * 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.02395/11.27, allocations: 4.723 MB / 3.397 GB, free: 25.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004774/11.28, allocations: 1.112 MB / 3.398 GB, free: 25.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/11.28, allocations: 2.156 kB / 3.398 GB, free: 25.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00299/11.28, allocations: 0.8358 MB / 3.399 GB, free: 25.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003987/11.29, allocations: 278 kB / 3.399 GB, free: 25.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02289/11.31, allocations: 8.862 MB / 3.407 GB, free: 20.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008825/11.31, allocations: 1.091 MB / 3.409 GB, free: 19.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009865/11.31, allocations: 384.8 kB / 3.409 GB, free: 19.42 MB / 378.7 MB Notification: Performance of SimCode: time 1.532e-06/11.31, allocations: 0 / 3.409 GB, free: 19.42 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.018/15.33, allocations: 40.58 MB / 3.449 GB, free: 15.77 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler_res.mat does not exist to compare? outputFormat=mat