Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.573/2.573, allocations: 235.1 MB / 242.3 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.457e-05/2.466e-05, allocations: 0 / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3778/0.3779, allocations: 54.86 MB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.283/8.661, allocations: 2.654 GB / 3.001 GB, free: 93.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/8.661, allocations: 77.33 kB / 3.001 GB, free: 93.66 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.441/11.1, allocations: 459.2 MB / 3.449 GB, free: 23.2 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.023e-06/11.1, allocations: 0 / 3.449 GB, free: 23.2 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.988e-05/11.1, allocations: 26.5 kB / 3.449 GB, free: 23.18 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.009988/11.11, allocations: 2.15 MB / 3.451 GB, free: 20.98 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/11.11, allocations: 16.02 kB / 3.451 GB, free: 20.96 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004344/11.12, allocations: 370.4 kB / 3.452 GB, free: 20.6 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003345/11.12, allocations: 0.8742 MB / 3.452 GB, free: 19.7 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.089e-05/11.12, allocations: 43.98 kB / 3.452 GB, free: 19.66 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001927/11.12, allocations: 40 kB / 3.453 GB, free: 19.62 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002581/11.12, allocations: 0.9253 MB / 3.453 GB, free: 18.69 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00253/11.13, allocations: 1.077 MB / 3.454 GB, free: 17.52 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.364e-05/11.13, allocations: 11.94 kB / 3.455 GB, free: 17.51 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001533/11.13, allocations: 0 / 3.455 GB, free: 17.51 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001286/11.13, allocations: 61.97 kB / 3.455 GB, free: 17.45 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.7456/11.87, allocations: 101.2 MB / 3.553 GB, free: 27.88 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/11.87, allocations: 475.7 kB / 3.554 GB, free: 27.85 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005986/11.87, allocations: 279.5 kB / 3.554 GB, free: 27.84 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05732/11.93, allocations: 16.77 MB / 3.571 GB, free: 32.96 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.912e-05/11.93, allocations: 37.09 kB / 3.571 GB, free: 32.92 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 3.216e-06/11.93, allocations: 4 kB / 3.571 GB, free: 32.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.0111/11.94, allocations: 2.268 MB / 3.573 GB, free: 32.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.952e-05/11.94, allocations: 135.3 kB / 3.573 GB, free: 32.34 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/11.94, allocations: 0.5552 MB / 3.573 GB, free: 32.21 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.563e-05/11.94, allocations: 29.7 kB / 3.573 GB, free: 32.18 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003618/11.94, allocations: 474.5 kB / 3.574 GB, free: 31.98 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/11.94, allocations: 159.6 kB / 3.574 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.515e-05/11.94, allocations: 0 / 3.574 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001993/11.94, allocations: 380.1 kB / 3.574 GB, free: 31.58 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008081/11.95, allocations: 327.5 kB / 3.575 GB, free: 31.58 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008954/11.95, allocations: 0.5175 MB / 3.575 GB, free: 31.34 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007517/11.95, allocations: 0.9463 MB / 3.576 GB, free: 31.32 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/11.95, allocations: 0 / 3.576 GB, free: 31.32 MB / 0.5261 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.009815/11.96, allocations: 1.671 MB / 3.578 GB, free: 31.23 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008788/11.96, allocations: 2.276 MB / 3.58 GB, free: 28.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/11.96, allocations: 7.812 kB / 3.58 GB, free: 28.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003143/11.97, allocations: 477.5 kB / 3.581 GB, free: 28.83 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/11.97, allocations: 157.9 kB / 3.581 GB, free: 28.83 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002986/11.97, allocations: 1.348 MB / 3.582 GB, free: 28.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00205/11.97, allocations: 117.9 kB / 3.582 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/11.97, allocations: 39.61 kB / 3.582 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/11.97, allocations: 3.906 kB / 3.582 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009482/11.98, allocations: 1.485 MB / 3.584 GB, free: 28.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/11.98, allocations: 9.641 kB / 3.584 GB, free: 28.25 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002781/11.99, allocations: 389.7 kB / 3.584 GB, free: 28.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/11.99, allocations: 175.1 kB / 3.584 GB, free: 28.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/11.99, allocations: 1.068 MB / 3.585 GB, free: 27.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/11.99, allocations: 98.81 kB / 3.585 GB, free: 27.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/11.99, allocations: 41.8 kB / 3.585 GB, free: 27.68 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,sink.medium.phase,source.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * 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 23} Notification: Performance of prepare postOptimizeDAE: time 0.0003496/11.99, allocations: 132.9 kB / 3.585 GB, free: 27.57 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00315/12, allocations: 0.7312 MB / 3.586 GB, free: 27.48 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002043/12, allocations: 75.59 kB / 3.586 GB, free: 27.44 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004457/12, allocations: 1.854 MB / 3.588 GB, free: 27.28 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.731e-05/12, allocations: 21.77 kB / 3.588 GB, free: 27.28 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/12, allocations: 0 / 3.588 GB, free: 27.28 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003618/12, allocations: 1.777 MB / 3.59 GB, free: 26.84 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006681/12.01, allocations: 2.842 MB / 3.593 GB, free: 26.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/12.01, allocations: 3.516 kB / 3.593 GB, free: 26.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/12.01, allocations: 125.5 kB / 3.593 GB, free: 26.48 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004423/12.01, allocations: 82.02 kB / 3.593 GB, free: 26.47 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.677e-05/12.01, allocations: 11.62 kB / 3.593 GB, free: 26.47 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006586/12.01, allocations: 0.6773 MB / 3.593 GB, free: 25.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/12.01, allocations: 1.594 kB / 3.593 GB, free: 25.94 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004407/12.02, allocations: 1.969 MB / 3.595 GB, free: 25.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006522/12.02, allocations: 255.7 kB / 3.596 GB, free: 25.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002596/12.02, allocations: 14.3 kB / 3.596 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/12.02, allocations: 65.09 kB / 3.596 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/12.02, allocations: 45.42 kB / 3.596 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-05/12.02, allocations: 20.84 kB / 3.596 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0007971/12.02, allocations: 426.7 kB / 3.596 GB, free: 25.35 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.01e-07/12.02, allocations: 1.5 kB / 3.596 GB, free: 25.35 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007956/12.03, allocations: 1.637 MB / 3.598 GB, free: 25.35 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 11 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01784/12.05, allocations: 4.746 MB / 3.602 GB, free: 24.06 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003728/12.05, allocations: 1.407 MB / 3.604 GB, free: 24.04 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.916e-06/12.05, allocations: 2.281 kB / 3.604 GB, free: 24.04 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00148/12.05, allocations: 0.5852 MB / 3.604 GB, free: 24.04 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003282/12.05, allocations: 325.8 kB / 3.605 GB, free: 24.02 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009252/12.06, allocations: 2.467 MB / 3.607 GB, free: 23.38 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/12.07, allocations: 1.17 MB / 3.608 GB, free: 22.65 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003252/12.07, allocations: 1.078 MB / 3.609 GB, free: 22.61 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008979/12.07, allocations: 387.6 kB / 3.61 GB, free: 22.61 MB / 0.5261 GB Notification: Performance of SimCode: time 1.202e-06/12.07, allocations: 0 / 3.61 GB, free: 22.61 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1635/12.23, allocations: 53.75 MB / 3.662 GB, free: 1.539 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003639/12.23, allocations: 194.1 kB / 3.662 GB, free: 1.32 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.13/17.36, allocations: 3.688 kB / 3.662 GB, free: 1.32 MB / 0.5261 GB