Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.605/2.605, allocations: 235.2 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.322e-05/2.315e-05, allocations: 0 / 299.6 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4002/0.4002, allocations: 54.86 MB / 354.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.228/8.629, allocations: 2.655 GB / 3.001 GB, free: 95.89 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002958/8.629, allocations: 83.83 kB / 3.001 GB, free: 95.84 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.433/12.06, allocations: 0.5681 GB / 3.569 GB, free: 37.29 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.735e-06/12.06, allocations: 0 / 3.569 GB, free: 37.29 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002275/12.06, allocations: 43.48 kB / 3.569 GB, free: 37.28 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01356/12.08, allocations: 2.853 MB / 3.572 GB, free: 35.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/12.08, allocations: 7.781 kB / 3.572 GB, free: 35.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006391/12.08, allocations: 0.5389 MB / 3.573 GB, free: 35.71 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006084/12.09, allocations: 1.442 MB / 3.574 GB, free: 35.34 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001659/12.09, allocations: 66.22 kB / 3.574 GB, free: 35.34 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004896/12.09, allocations: 75.14 kB / 3.574 GB, free: 35.34 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004709/12.09, allocations: 1.554 MB / 3.576 GB, free: 35.33 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004923/12.1, allocations: 1.767 MB / 3.577 GB, free: 34.95 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.206e-05/12.1, allocations: 5.781 kB / 3.577 GB, free: 34.95 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002565/12.1, allocations: 3.188 kB / 3.577 GB, free: 34.95 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002346/12.1, allocations: 104.8 kB / 3.577 GB, free: 34.95 MB / 490.7 MB 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.3239/12.42, allocations: 73.36 MB / 3.649 GB, free: 18.03 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002711/12.43, allocations: 0.9169 MB / 3.65 GB, free: 17.21 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001422/12.43, allocations: 0.5532 MB / 3.65 GB, free: 16.72 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4938/12.92, allocations: 17.44 MB / 3.668 GB, free: 70.24 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002386/12.92, allocations: 0.7094 MB / 3.668 GB, free: 70.12 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=88): time 4.879e-06/12.92, allocations: 3.094 kB / 3.668 GB, free: 70.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=96): time 0.02187/12.95, allocations: 4.671 MB / 3.673 GB, free: 69.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/12.95, allocations: 377.5 kB / 3.673 GB, free: 68.66 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001678/12.95, allocations: 0.7962 MB / 3.674 GB, free: 68.51 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002135/12.95, allocations: 25.7 kB / 3.674 GB, free: 68.48 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007238/12.95, allocations: 0.6895 MB / 3.675 GB, free: 68.23 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004231/12.95, allocations: 326.5 kB / 3.675 GB, free: 68.06 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/12.95, allocations: 0 / 3.675 GB, free: 68.06 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001267/12.95, allocations: 357.6 kB / 3.675 GB, free: 67.76 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001531/12.95, allocations: 0.5959 MB / 3.676 GB, free: 67.76 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/12.95, allocations: 0.9113 MB / 3.677 GB, free: 67.41 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01409/12.97, allocations: 1.763 MB / 3.678 GB, free: 67.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.079e-05/12.97, allocations: 2.906 kB / 3.678 GB, free: 67.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.01733/12.98, allocations: 2.771 MB / 3.681 GB, free: 67.25 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007382/12.99, allocations: 3.258 MB / 3.684 GB, free: 63.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.724e-05/12.99, allocations: 11.44 kB / 3.684 GB, free: 63.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005863/12.99, allocations: 127.3 kB / 3.684 GB, free: 63.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002904/12.99, allocations: 320.1 kB / 3.685 GB, free: 63.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001117/12.99, allocations: 1.267 MB / 3.686 GB, free: 62.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002933/12.99, allocations: 165.6 kB / 3.686 GB, free: 62.81 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003501/12.99, allocations: 65.31 kB / 3.686 GB, free: 62.81 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/12.99, allocations: 3.156 kB / 3.686 GB, free: 62.81 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01627/13.01, allocations: 2.511 MB / 3.689 GB, free: 62.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.607e-05/13.01, allocations: 11.77 kB / 3.689 GB, free: 62.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000523/13.01, allocations: 130 kB / 3.689 GB, free: 62.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00281/13.01, allocations: 316.2 kB / 3.689 GB, free: 62.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001099/13.01, allocations: 1.265 MB / 3.69 GB, free: 61.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002635/13.02, allocations: 154.5 kB / 3.691 GB, free: 61.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002781/13.02, allocations: 62.66 kB / 3.691 GB, free: 61.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005593/13.02, allocations: 187.2 kB / 3.691 GB, free: 61.56 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005551/13.02, allocations: 1.426 MB / 3.692 GB, free: 61.43 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005188/13.02, allocations: 126.5 kB / 3.692 GB, free: 61.37 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0085/13.03, allocations: 3.761 MB / 3.696 GB, free: 61.04 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.962e-05/13.03, allocations: 41.22 kB / 3.696 GB, free: 61.04 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/13.03, allocations: 0 / 3.696 GB, free: 61.04 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006408/13.04, allocations: 2.97 MB / 3.699 GB, free: 60.66 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01242/13.05, allocations: 5.239 MB / 3.704 GB, free: 60.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.736e-05/13.05, allocations: 0 / 3.704 GB, free: 60.24 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001907/13.05, allocations: 203.4 kB / 3.704 GB, free: 60.24 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008325/13.05, allocations: 166.5 kB / 3.704 GB, free: 60.22 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000201/13.05, allocations: 25.58 kB / 3.704 GB, free: 60.22 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/13.06, allocations: 1.347 MB / 3.706 GB, free: 59.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.826e-06/13.06, allocations: 6.375 kB / 3.706 GB, free: 59.18 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008463/13.06, allocations: 3.621 MB / 3.709 GB, free: 58.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001576/13.07, allocations: 491.2 kB / 3.71 GB, free: 58.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005244/13.07, allocations: 16.94 kB / 3.71 GB, free: 58.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001908/13.07, allocations: 94.16 kB / 3.71 GB, free: 58.49 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002851/13.07, allocations: 87.08 kB / 3.71 GB, free: 58.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001461/13.07, allocations: 40.22 kB / 3.71 GB, free: 58.48 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001702/13.07, allocations: 0.7923 MB / 3.711 GB, free: 58.38 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.61e-07/13.07, allocations: 2.5 kB / 3.711 GB, free: 58.38 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01032/13.08, allocations: 2.107 MB / 3.713 GB, free: 58.27 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 26 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 11 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02283/13.1, allocations: 6.819 MB / 3.719 GB, free: 56.85 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007692/13.11, allocations: 2.853 MB / 3.722 GB, free: 56.62 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/13.11, allocations: 0 / 3.722 GB, free: 56.62 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002666/13.11, allocations: 1.204 MB / 3.723 GB, free: 56.55 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005263/13.12, allocations: 0.5157 MB / 3.724 GB, free: 56.54 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/13.13, allocations: 4.365 MB / 3.728 GB, free: 55.59 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001478/13.14, allocations: 1.639 MB / 3.73 GB, free: 54.85 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.006048/13.14, allocations: 1.739 MB / 3.731 GB, free: 54.83 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001738/13.14, allocations: 0.7372 MB / 3.732 GB, free: 54.82 MB / 0.5105 GB Notification: Performance of SimCode: time 1.363e-06/13.14, allocations: 0 / 3.732 GB, free: 54.82 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1987/13.34, allocations: 72.66 MB / 3.803 GB, free: 45.93 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002742/13.34, allocations: 181.9 kB / 3.803 GB, free: 45.74 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.492/19.83, allocations: 0 / 3.803 GB, free: 45.74 MB / 0.5105 GB