Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 3.209/3.209, allocations: 235.2 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.265e-05/3.275e-05, allocations: 4 kB / 299.5 MB, free: 216 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4393/0.4394, allocations: 54.86 MB / 354.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.05/10.49, allocations: 2.677 GB / 3.023 GB, free: 69.95 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/10.49, allocations: 76.95 kB / 3.023 GB, free: 69.91 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.383/17.88, allocations: 1 GB / 4.023 GB, free: 22.86 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.777e-06/17.88, allocations: 0 / 4.023 GB, free: 22.86 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0006651/17.88, allocations: 71.91 kB / 4.023 GB, free: 22.79 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.03552/17.91, allocations: 4.242 MB / 4.028 GB, free: 19.01 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.742e-05/17.91, allocations: 12.03 kB / 4.028 GB, free: 19 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002305/17.92, allocations: 236.3 kB / 4.028 GB, free: 18.81 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02587/17.94, allocations: 0.9411 MB / 4.029 GB, free: 18.05 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01458/17.96, allocations: 2.191 MB / 4.031 GB, free: 16.29 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000377/17.96, allocations: 124.1 kB / 4.031 GB, free: 16.17 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001176/17.96, allocations: 135.8 kB / 4.031 GB, free: 16.04 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01194/17.97, allocations: 2.796 MB / 4.034 GB, free: 13.54 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01334/17.98, allocations: 3.007 MB / 4.037 GB, free: 10.48 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001514/17.98, allocations: 11.92 kB / 4.037 GB, free: 10.47 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008111/17.98, allocations: 15.94 kB / 4.037 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005102/17.98, allocations: 168 kB / 4.037 GB, free: 10.29 MB / 0.5105 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.9295/18.91, allocations: 49.68 MB / 4.086 GB, free: 29.11 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007158/18.92, allocations: 2.333 MB / 4.088 GB, free: 28.52 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003525/18.93, allocations: 1.175 MB / 4.089 GB, free: 28.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06688/18.99, allocations: 17.21 MB / 4.106 GB, free: 17.81 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004308/19, allocations: 1.351 MB / 4.107 GB, free: 17.64 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=186): time 7.975e-06/19, allocations: 1.094 kB / 4.107 GB, free: 17.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=206): time 0.08572/19.08, allocations: 10.29 MB / 4.117 GB, free: 15.99 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001623/19.08, allocations: 369.5 kB / 4.117 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003053/19.09, allocations: 1.148 MB / 4.119 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007622/19.09, allocations: 29.67 kB / 4.119 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001593/19.09, allocations: 1.073 MB / 4.12 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001457/19.09, allocations: 0.659 MB / 4.12 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004219/19.09, allocations: 2.156 kB / 4.12 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002551/19.09, allocations: 407.4 kB / 4.121 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00394/19.09, allocations: 1.095 MB / 4.122 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004793/19.1, allocations: 1.628 MB / 4.123 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02888/19.13, allocations: 2.092 MB / 4.125 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.847e-05/19.13, allocations: 8 kB / 4.125 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.04258/19.17, allocations: 3.972 MB / 4.129 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.003379/19.17, allocations: 5.592 MB / 4.135 GB, free: 23.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001072/19.17, allocations: 15.5 kB / 4.135 GB, free: 23.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002754/19.18, allocations: 309.5 kB / 4.135 GB, free: 23.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008043/19.19, allocations: 0.6037 MB / 4.136 GB, free: 23.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0049/19.19, allocations: 3.134 MB / 4.139 GB, free: 21.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008098/19.2, allocations: 325.6 kB / 4.139 GB, free: 21.23 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0014/19.2, allocations: 127.4 kB / 4.139 GB, free: 21.23 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/19.2, allocations: 3.969 kB / 4.139 GB, free: 21.23 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03179/19.23, allocations: 3.495 MB / 4.143 GB, free: 21.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.264e-05/19.23, allocations: 16.41 kB / 4.143 GB, free: 21.14 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001992/19.23, allocations: 312.8 kB / 4.143 GB, free: 21.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007745/19.24, allocations: 0.5961 MB / 4.143 GB, free: 21.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004836/19.25, allocations: 3.14 MB / 4.147 GB, free: 18.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007819/19.25, allocations: 305.9 kB / 4.147 GB, free: 18.47 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001203/19.26, allocations: 119.9 kB / 4.147 GB, free: 18.47 MB / 0.5417 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001619/19.26, allocations: 249.8 kB / 4.147 GB, free: 18.29 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001049/19.26, allocations: 216.5 kB / 4.147 GB, free: 18.18 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04431/19.3, allocations: 7.996 MB / 4.155 GB, free: 17.43 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001508/19.3, allocations: 78.92 kB / 4.155 GB, free: 17.43 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.916e-05/19.3, allocations: 1.875 kB / 4.155 GB, free: 17.43 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03882/19.34, allocations: 6.909 MB / 4.162 GB, free: 16.55 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05804/19.4, allocations: 12.47 MB / 4.174 GB, free: 15.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.603e-05/19.4, allocations: 6.594 kB / 4.174 GB, free: 15.06 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005382/19.41, allocations: 450.3 kB / 4.175 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002782/19.41, allocations: 433.5 kB / 4.175 GB, free: 15 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007122/19.41, allocations: 48.09 kB / 4.175 GB, free: 15 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004556/19.41, allocations: 3.376 MB / 4.178 GB, free: 12.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.856e-05/19.41, allocations: 11.22 kB / 4.178 GB, free: 12.38 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03991/19.45, allocations: 8.36 MB / 4.187 GB, free: 10.86 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003326/19.46, allocations: 0.7906 MB / 4.187 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001067/19.46, allocations: 26.02 kB / 4.187 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005112/19.46, allocations: 184.4 kB / 4.188 GB, free: 10.51 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001005/19.46, allocations: 193.7 kB / 4.188 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005232/19.46, allocations: 92.98 kB / 4.188 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003129/19.47, allocations: 1.082 MB / 4.189 GB, free: 10.35 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.32e-07/19.47, allocations: 0 / 4.189 GB, free: 10.35 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01876/19.49, allocations: 2.759 MB / 4.192 GB, free: 10.24 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 51 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse49.phase,$cse49.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.medium.phase) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (228): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 21 * 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: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.05927/19.55, allocations: 13.68 MB / 4.205 GB, free: 6.293 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01812/19.56, allocations: 5.345 MB / 4.21 GB, free: 5.965 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-05/19.56, allocations: 5.625 kB / 4.21 GB, free: 5.965 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008432/19.57, allocations: 2.691 MB / 4.213 GB, free: 5.824 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01228/19.59, allocations: 0.999 MB / 4.214 GB, free: 5.762 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9422/20.53, allocations: 62.44 MB / 4.275 GB, free: 71.84 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004363/20.53, allocations: 2.34 MB / 4.277 GB, free: 71.07 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01306/20.54, allocations: 2.696 MB / 4.28 GB, free: 71.03 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004412/20.55, allocations: 1.363 MB / 4.281 GB, free: 71.03 MB / 0.5573 GB Notification: Performance of SimCode: time 1.864e-06/20.55, allocations: 2.281 kB / 4.281 GB, free: 71.03 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4603/21.01, allocations: 113.1 MB / 4.391 GB, free: 61.49 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003324/21.01, allocations: 185.8 kB / 4.392 GB, free: 61.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.65/31.66, allocations: 0.875 kB / 4.392 GB, free: 61.3 MB / 0.5573 GB