Running command: "" <> buildModelFMU(ThermoPower.Examples.CISE.Simulators.CISESim2States120501,fileNamePrefix="ThermoPower_ThermoPower_Examples_CISE_Simulators_CISESim2States120501",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ThermoPower): time 2.24/2.24, allocations: 254.6 MB / 267.6 MB, free: 12.46 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.279e-05/3.295e-05, allocations: 4 kB / 330.9 MB, free: 13.1 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4048/0.4049, allocations: 60.24 MB / 391.1 MB, free: 4.758 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.296/9.701, allocations: 3.189 GB / 3.571 GB, free: 28.11 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003226/9.701, allocations: 89.88 kB / 3.571 GB, free: 28.06 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.961/12.66, allocations: 0.502 GB / 4.073 GB, free: 53.5 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.695e-06/12.66, allocations: 0 / 4.073 GB, free: 53.5 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002547/12.66, allocations: 64.14 kB / 4.073 GB, free: 53.49 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 565 * Number of variables: 565 Notification: Performance of Generate backend data structure: time 0.0368/12.7, allocations: 5.618 MB / 4.079 GB, free: 52.13 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/12.7, allocations: 11.81 kB / 4.079 GB, free: 52.13 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002675/12.7, allocations: 339.7 kB / 4.079 GB, free: 52.08 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01053/12.71, allocations: 0.9975 MB / 4.08 GB, free: 51.93 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0138/12.73, allocations: 2.707 MB / 4.083 GB, free: 51.51 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00424/12.73, allocations: 0.9444 MB / 4.084 GB, free: 51.28 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002679/12.73, allocations: 240.7 kB / 4.084 GB, free: 51.28 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03282/12.77, allocations: 8.688 MB / 4.092 GB, free: 50.93 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.702e-05/12.77, allocations: 0.75 kB / 4.092 GB, free: 50.93 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001566/12.77, allocations: 94.64 kB / 4.092 GB, free: 50.93 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001468/12.77, allocations: 105.5 kB / 4.093 GB, free: 50.93 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04077/12.81, allocations: 11.84 MB / 4.104 GB, free: 49.77 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.09096/12.9, allocations: 35.51 MB / 4.139 GB, free: 25.82 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02282/12.92, allocations: 6.623 MB / 4.145 GB, free: 23.02 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01064/12.93, allocations: 4.004 MB / 4.149 GB, free: 21.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7968/13.73, allocations: 120.5 MB / 4.267 GB, free: 52.7 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.826e-05/13.73, allocations: 69.86 kB / 4.267 GB, free: 52.66 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=267): time 5.28e-06/13.73, allocations: 0 / 4.267 GB, free: 52.66 MB / 0.5573 GB Notification: Performance of matching and sorting (n=279): time 0.1078/13.84, allocations: 21.19 MB / 4.288 GB, free: 51.76 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.394e-05/13.84, allocations: 157.2 kB / 4.288 GB, free: 51.6 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002112/13.84, allocations: 1.023 MB / 4.289 GB, free: 51.43 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.002338/13.84, allocations: 79.7 kB / 4.289 GB, free: 51.4 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008178/13.84, allocations: 0.8339 MB / 4.29 GB, free: 51.14 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003264/13.85, allocations: 0.9572 MB / 4.291 GB, free: 50.65 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002219/13.85, allocations: 50.28 kB / 4.291 GB, free: 50.65 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003325/13.85, allocations: 409 kB / 4.291 GB, free: 50.34 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01265/13.86, allocations: 4.404 MB / 4.295 GB, free: 50.34 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01304/13.87, allocations: 4.86 MB / 4.3 GB, free: 49.89 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.6988/14.57, allocations: 58.82 MB / 4.357 GB, free: 38.16 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.759e-05/14.57, allocations: 4 kB / 4.357 GB, free: 38.16 MB / 0.5573 GB Notification: Performance of matching and sorting (n=335) (initialization): time 0.08654/14.66, allocations: 11.85 MB / 4.369 GB, free: 32.46 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005578/14.66, allocations: 2.511 MB / 4.371 GB, free: 29.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.781e-05/14.66, allocations: 13.44 kB / 4.372 GB, free: 29.84 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1127/14.77, allocations: 23.42 MB / 4.394 GB, free: 13.29 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.06704/14.84, allocations: 5.756 MB / 4.4 GB, free: 9.137 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03372/14.87, allocations: 12.67 MB / 4.412 GB, free: 14.43 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01911/14.89, allocations: 1.649 MB / 4.414 GB, free: 13.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002893/14.9, allocations: 347.6 kB / 4.414 GB, free: 13.01 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/14.9, allocations: 8.625 kB / 4.414 GB, free: 13 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5984/15.5, allocations: 26.11 MB / 4.44 GB, free: 98.75 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.901e-05/15.5, allocations: 3.812 kB / 4.44 GB, free: 98.75 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06955/15.56, allocations: 17.61 MB / 4.457 GB, free: 98.67 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0692/15.63, allocations: 5.934 MB / 4.463 GB, free: 98.42 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02323/15.66, allocations: 11.92 MB / 4.474 GB, free: 93.99 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01813/15.68, allocations: 1.646 MB / 4.476 GB, free: 93.89 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002964/15.68, allocations: 343.4 kB / 4.476 GB, free: 93.89 MB / 0.573 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.Plant.SH.p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 12 (Plant.Pipe2Valve.fluidState[2].phase,Plant.Pipe2Valve.fluidState[1].phase,Plant.SH.fluidState[5].phase,Plant.SH.fluidState[4].phase,Plant.SH.fluidState[3].phase,Plant.SH.fluidState[2].phase,Plant.SH.fluidState[1].phase,Plant.SH.heatTransfer.dew.phase,Plant.SH.heatTransfer.bubble.phase,Plant.Pipe2SH.fluidState[2].phase,Plant.Pipe2SH.fluidState[1].phase,Plant.Valve.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (233): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 3,1 8,5 70,2 13} Notification: Performance of prepare postOptimizeDAE: time 0.004829/15.68, allocations: 254.1 kB / 4.477 GB, free: 93.79 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002802/15.69, allocations: 215.7 kB / 4.477 GB, free: 93.79 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07562/15.76, allocations: 25.95 MB / 4.502 GB, free: 93.12 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.06341/15.83, allocations: 24.13 MB / 4.526 GB, free: 89.17 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.764e-05/15.83, allocations: 7.641 kB / 4.526 GB, free: 89.17 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001123/15.83, allocations: 13.45 kB / 4.526 GB, free: 89.17 MB / 0.573 GB Warning: The model contains alias variables with conflicting start and/or 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 postOpt removeSimpleEquations (simulation): time 0.1109/15.94, allocations: 43.71 MB / 4.568 GB, free: 61.89 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.201e-05/15.94, allocations: 0 / 4.568 GB, free: 61.89 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01862/15.96, allocations: 2.053 MB / 4.57 GB, free: 60.46 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3921/16.35, allocations: 32.05 MB / 4.602 GB, free: 36.79 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002362/16.35, allocations: 240.7 kB / 4.602 GB, free: 36.67 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4841/16.83, allocations: 26.19 MB / 4.628 GB, free: 95.85 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/16.83, allocations: 1.219 kB / 4.628 GB, free: 95.85 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07342/16.91, allocations: 21.15 MB / 4.648 GB, free: 95.32 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005513/16.91, allocations: 1.401 MB / 4.65 GB, free: 95.19 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002707/16.92, allocations: 70.2 kB / 4.65 GB, free: 95.19 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01725/16.93, allocations: 1.616 MB / 4.651 GB, free: 95.18 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003183/16.94, allocations: 432.7 kB / 4.652 GB, free: 95.18 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00255/16.94, allocations: 247.5 kB / 4.652 GB, free: 95.18 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002424/16.94, allocations: 0.7953 MB / 4.653 GB, free: 95.06 MB / 0.573 GB Notification: Performance of sort global known variables: time 8.42e-07/16.94, allocations: 2.656 kB / 4.653 GB, free: 95.06 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02701/16.97, allocations: 3.061 MB / 4.656 GB, free: 95.06 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (Plant.Pipe2SH.p,Plant.Pipe2SH.htilde[1],Plant.SH.htilde[1],Plant.SH.htilde[2],Plant.SH.htilde[3],Plant.SH.htilde[4],Plant.Pipe2Valve.p,Plant.Pipe2Valve.htilde[1],Plant.Pipe2SHWall.Tvol[1],Plant.SHWall.Tvol[1],Plant.SHWall.Tvol[2],Plant.SHWall.Tvol[3],Plant.SHWall.Tvol[4],Plant.Pipe2ValveWall.Tvol[1],Plant.DrumBoiler.Vld,Plant.DrumBoiler.p) * Number of discrete variables: 28 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse32.region3boundary,$cse33.region3boundary) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (250): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(1,100.0%) 1,(6,72.2%) 13,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 3 {2 7,1 11,1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.091/17.06, allocations: 20.42 MB / 4.676 GB, free: 93.68 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.04857/17.11, allocations: 16.51 MB / 4.692 GB, free: 93.24 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.838e-06/17.11, allocations: 3.938 kB / 4.692 GB, free: 93.24 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.02029/17.13, allocations: 6.683 MB / 4.698 GB, free: 90.22 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01028/17.14, allocations: 0.8991 MB / 4.699 GB, free: 90.04 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04144/17.18, allocations: 11.25 MB / 4.71 GB, free: 86.23 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002358/17.18, allocations: 2.15 MB / 4.712 GB, free: 85.35 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.02625/17.21, allocations: 10.72 MB / 4.723 GB, free: 85.14 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007552/17.22, allocations: 1.477 MB / 4.724 GB, free: 84.18 MB / 0.573 GB Notification: Performance of SimCode: time 1.883e-06/17.22, allocations: 0 / 4.724 GB, free: 84.18 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8968/18.11, allocations: 251.7 MB / 4.97 GB, free: 56.69 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002167/18.11, allocations: 185.6 kB / 4.97 GB, free: 56.46 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/29.89, allocations: 3.938 kB / 4.97 GB, free: 56.46 MB / 0.573 GB