Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.DrumBoiler.DrumBoiler,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_DrumBoiler_DrumBoiler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.234/2.234, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004804/0.0004804, allocations: 11.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1005, allocations: 44.5 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.899/8, allocations: 2.67 GB / 2.971 GB, free: 62.03 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002954/8, allocations: 88.45 kB / 2.972 GB, free: 61.98 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.722/10.72, allocations: 495.7 MB / 3.456 GB, free: 27.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.495e-06/10.72, allocations: 7.844 kB / 3.456 GB, free: 27.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.622e-05/10.72, allocations: 13.91 kB / 3.456 GB, free: 27.79 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.008212/10.73, allocations: 1.921 MB / 3.457 GB, free: 26.56 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/10.73, allocations: 11.06 kB / 3.457 GB, free: 26.56 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004009/10.73, allocations: 115.6 kB / 3.458 GB, free: 26.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003217/10.73, allocations: 248.2 kB / 3.458 GB, free: 26.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001561/10.74, allocations: 0.5112 MB / 3.458 GB, free: 26.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.865e-05/10.74, allocations: 44.31 kB / 3.458 GB, free: 26.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001411/10.74, allocations: 63.72 kB / 3.458 GB, free: 26.03 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003085/10.74, allocations: 0.9127 MB / 3.459 GB, free: 25.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.076e-05/10.74, allocations: 3.938 kB / 3.459 GB, free: 25.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/10.74, allocations: 28.64 kB / 3.459 GB, free: 25.58 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/10.74, allocations: 17.84 kB / 3.459 GB, free: 25.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00295/10.74, allocations: 0.7342 MB / 3.46 GB, free: 25.38 MB / 410.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.007695/10.75, allocations: 4.152 MB / 3.464 GB, free: 22.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002682/10.75, allocations: 0.6139 MB / 3.465 GB, free: 21.79 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5291/11.28, allocations: 55.11 MB / 3.519 GB, free: 41.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002298/11.28, allocations: 0.5497 MB / 3.519 GB, free: 40.92 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006663/11.29, allocations: 84.81 kB / 3.519 GB, free: 40.92 MB / 426.7 MB Notification: Performance of pre-optimization done (n=57): time 3.376e-06/11.29, allocations: 0.6562 kB / 3.519 GB, free: 40.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=65): time 0.0165/11.3, allocations: 3.266 MB / 3.522 GB, free: 40.07 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/11.3, allocations: 273.9 kB / 3.523 GB, free: 39.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007733/11.3, allocations: 402.3 kB / 3.523 GB, free: 39.65 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001277/11.3, allocations: 37.27 kB / 3.523 GB, free: 39.62 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003563/11.3, allocations: 368 kB / 3.523 GB, free: 39.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002594/11.3, allocations: 210 kB / 3.524 GB, free: 39.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-05/11.3, allocations: 13.19 kB / 3.524 GB, free: 39.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.2e-05/11.3, allocations: 343.1 kB / 3.524 GB, free: 38.99 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009485/11.31, allocations: 271.1 kB / 3.524 GB, free: 38.98 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/11.31, allocations: 461.7 kB / 3.525 GB, free: 38.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/11.31, allocations: 382.2 kB / 3.525 GB, free: 38.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/11.31, allocations: 1.125 kB / 3.525 GB, free: 38.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002868/11.31, allocations: 0.9423 MB / 3.526 GB, free: 38.58 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004952/11.31, allocations: 1.985 MB / 3.528 GB, free: 36.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/11.31, allocations: 12.28 kB / 3.528 GB, free: 36.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006769/11.32, allocations: 351.9 kB / 3.528 GB, free: 36.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/11.32, allocations: 134.6 kB / 3.528 GB, free: 36.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001763/11.32, allocations: 0.8031 MB / 3.529 GB, free: 35.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/11.32, allocations: 61.08 kB / 3.529 GB, free: 35.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001548/11.32, allocations: 49.31 kB / 3.529 GB, free: 35.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/11.32, allocations: 6.969 kB / 3.529 GB, free: 35.98 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00292/11.32, allocations: 0.9076 MB / 3.53 GB, free: 35.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/11.32, allocations: 5.062 kB / 3.53 GB, free: 35.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006667/11.33, allocations: 355.1 kB / 3.53 GB, free: 35.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009747/11.33, allocations: 129 kB / 3.531 GB, free: 35.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001645/11.33, allocations: 0.8016 MB / 3.531 GB, free: 35.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/11.34, allocations: 61.89 kB / 3.531 GB, free: 35.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001667/11.34, allocations: 45.16 kB / 3.531 GB, free: 35.38 MB / 426.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: 19 ($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,q_F_Tab.nextEventScaled,Y_Valve_Tab.a,Y_Valve_Tab.b,Y_Valve_Tab.last,$PRE.Y_Valve_Tab.nextEvent,Y_Valve_Tab.nextEvent,Y_Valve_Tab.nextEventScaled,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.000756/11.34, allocations: 362.9 kB / 3.532 GB, free: 35.12 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002462/11.34, allocations: 69.09 kB / 3.532 GB, free: 35.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008433/11.34, allocations: 4.696 MB / 3.536 GB, free: 34.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.201e-05/11.35, allocations: 34.02 kB / 3.536 GB, free: 34.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/11.35, allocations: 0 / 3.536 GB, free: 34.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.665e-05/11.35, allocations: 3.469 kB / 3.537 GB, free: 34.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/11.36, allocations: 6.463 MB / 3.543 GB, free: 34.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.46e-05/11.36, allocations: 0 / 3.543 GB, free: 34.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00076/11.36, allocations: 92.28 kB / 3.543 GB, free: 34.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003455/11.36, allocations: 1.076 MB / 3.544 GB, free: 34.08 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001879/11.36, allocations: 27.31 kB / 3.544 GB, free: 34.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002863/11.36, allocations: 2.348 MB / 3.546 GB, free: 33.56 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/11.36, allocations: 8.609 kB / 3.546 GB, free: 33.56 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00961/11.37, allocations: 5.423 MB / 3.552 GB, free: 33.18 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005089/11.37, allocations: 241.9 kB / 3.552 GB, free: 33.03 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003327/11.37, allocations: 22.84 kB / 3.552 GB, free: 33.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/11.37, allocations: 76.2 kB / 3.552 GB, free: 33.02 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/11.38, allocations: 47.61 kB / 3.552 GB, free: 33.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.943e-05/11.38, allocations: 35.5 kB / 3.552 GB, free: 33.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008171/11.38, allocations: 462.8 kB / 3.552 GB, free: 32.92 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/11.38, allocations: 2.062 kB / 3.552 GB, free: 32.92 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007146/11.38, allocations: 1.364 MB / 3.554 GB, free: 32.91 MB / 426.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: 27 ($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,q_F_Tab.nextEventScaled,Y_Valve_Tab.a,Y_Valve_Tab.b,Y_Valve_Tab.last,Y_Valve_Tab.nextEvent,Y_Valve_Tab.nextEventScaled) * Number of discrete states: 12 (Y_Valve_Tab.nextEvent,Y_Valve_Tab.last,Y_Valve_Tab.nextEventScaled,Y_Valve_Tab.b,Y_Valve_Tab.a,$whenCondition2,q_F_Tab.nextEvent,q_F_Tab.last,q_F_Tab.nextEventScaled,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.01744/11.4, allocations: 4.738 MB / 3.558 GB, free: 31.78 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005313/11.41, allocations: 1.815 MB / 3.56 GB, free: 31.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/11.41, allocations: 0 / 3.56 GB, free: 31.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002012/11.41, allocations: 0.8972 MB / 3.561 GB, free: 31.37 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002746/11.41, allocations: 294.4 kB / 3.561 GB, free: 31.36 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01631/11.43, allocations: 8.964 MB / 3.57 GB, free: 26.31 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006605/11.43, allocations: 1.095 MB / 3.571 GB, free: 25.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006942/11.43, allocations: 391.8 kB / 3.572 GB, free: 25.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.142e-06/11.43, allocations: 0 / 3.572 GB, free: 25.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.93/15.36, allocations: 41.04 MB / 3.612 GB, free: 22.21 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.DrumBoiler.DrumBoiler_res.mat does not exist to compare? outputFormat=mat