Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.IncompressibleFluidNetwork_StandardWaterOnePhase,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestExamplesVariants_IncompressibleFluidNetwork_StandardWaterOnePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.58/2.58, allocations: 270 MB / 283.6 MB, free: 3.113 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.957e-05/3.971e-05, allocations: 9.766 kB / 348.5 MB, free: 10.72 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1452, allocations: 61.88 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.58/9.725, allocations: 2.95 GB / 3.351 GB, free: 89.02 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003475/9.725, allocations: 79.27 kB / 3.351 GB, free: 88.98 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 11.94/21.67, allocations: 2.142 GB / 5.493 GB, free: 9.648 MB / 0.6511 GB Notification: Performance of FrontEnd: time 3.035e-06/21.67, allocations: 0 / 5.493 GB, free: 9.648 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.001583/21.67, allocations: 215.8 kB / 5.493 GB, free: 9.438 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1894 * Number of variables: 1894 Notification: Performance of Generate backend data structure: time 1.383/23.05, allocations: 9.814 MB / 5.503 GB, free: 26.5 MB / 0.6512 GB Notification: Performance of prepare preOptimizeDAE: time 6.485e-05/23.05, allocations: 9.531 kB / 5.503 GB, free: 26.5 MB / 0.6512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007318/23.06, allocations: 0.9724 MB / 5.504 GB, free: 26.42 MB / 0.6512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02282/23.08, allocations: 1.965 MB / 5.506 GB, free: 25.96 MB / 0.6512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03791/23.12, allocations: 7.114 MB / 5.512 GB, free: 25.27 MB / 0.6512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0014/23.12, allocations: 0.5378 MB / 5.513 GB, free: 25.25 MB / 0.6512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00531/23.13, allocations: 0.7064 MB / 5.514 GB, free: 25.25 MB / 0.6512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05398/23.18, allocations: 12.9 MB / 5.526 GB, free: 23.33 MB / 0.6512 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006718/23.18, allocations: 37.94 kB / 5.526 GB, free: 23.33 MB / 0.6512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004914/23.19, allocations: 311.8 kB / 5.527 GB, free: 23.33 MB / 0.6512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001733/23.19, allocations: 0.6459 MB / 5.527 GB, free: 23.31 MB / 0.6512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04418/23.23, allocations: 12.46 MB / 5.539 GB, free: 23.28 MB / 0.6512 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.1159/23.35, allocations: 53.89 MB / 5.592 GB, free: 23.01 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03169/23.38, allocations: 7.497 MB / 5.599 GB, free: 22.92 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01242/23.39, allocations: 4.306 MB / 5.604 GB, free: 22.88 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2244/23.62, allocations: 64.94 MB / 5.667 GB, free: 15.08 MB / 0.7137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001512/23.62, allocations: 96.44 kB / 5.667 GB, free: 15.03 MB / 0.7137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009581/23.63, allocations: 0.8494 MB / 5.668 GB, free: 14.73 MB / 0.7137 GB Notification: Performance of pre-optimization done (n=586): time 3.376e-05/23.63, allocations: 0 / 5.668 GB, free: 14.73 MB / 0.7137 GB Notification: Performance of matching and sorting (n=709): time 0.2641/23.89, allocations: 45.5 MB / 5.712 GB, free: 11.61 MB / 0.7137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/23.89, allocations: 178.2 kB / 5.713 GB, free: 11.47 MB / 0.7137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01263/23.9, allocations: 4.269 MB / 5.717 GB, free: 11.07 MB / 0.7137 GB Notification: Performance of collectPreVariables (initialization): time 0.002556/23.91, allocations: 158 kB / 5.717 GB, free: 11.03 MB / 0.7137 GB Notification: Performance of collectInitialEqns (initialization): time 0.004127/23.91, allocations: 3.294 MB / 5.72 GB, free: 9.766 MB / 0.7137 GB Notification: Performance of collectInitialBindings (initialization): time 0.004521/23.92, allocations: 2.451 MB / 5.722 GB, free: 8.199 MB / 0.7137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002227/23.92, allocations: 163.1 kB / 5.723 GB, free: 8.199 MB / 0.7137 GB Notification: Performance of setup shared object (initialization): time 0.0008808/23.92, allocations: 0.623 MB / 5.723 GB, free: 7.883 MB / 0.7137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01281/23.93, allocations: 4.315 MB / 5.727 GB, free: 7.863 MB / 0.7137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0155/23.95, allocations: 6.139 MB / 5.733 GB, free: 5.953 MB / 0.7137 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.371/25.32, allocations: 48.27 MB / 5.781 GB, free: 86.6 MB / 0.7137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.775e-05/25.32, allocations: 14.59 kB / 5.781 GB, free: 86.6 MB / 0.7137 GB Notification: Performance of matching and sorting (n=1020) (initialization): time 0.05531/25.37, allocations: 14.93 MB / 5.795 GB, free: 86.36 MB / 0.7137 GB Notification: Performance of prepare postOptimizeDAE: time 0.00526/25.38, allocations: 23.73 MB / 5.818 GB, free: 61.44 MB / 0.7137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002208/25.38, allocations: 52.39 kB / 5.818 GB, free: 61.44 MB / 0.7137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2322/25.61, allocations: 18.53 MB / 5.836 GB, free: 61.32 MB / 0.7137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007788/25.62, allocations: 1.052 MB / 5.838 GB, free: 61.32 MB / 0.7137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04343/25.66, allocations: 15 MB / 5.852 GB, free: 60.14 MB / 0.7137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0164/25.68, allocations: 0.8809 MB / 5.853 GB, free: 60.14 MB / 0.7137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003667/25.68, allocations: 385.8 kB / 5.853 GB, free: 60.14 MB / 0.7137 GB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/25.68, allocations: 3.688 kB / 5.853 GB, free: 60.14 MB / 0.7137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04546/25.73, allocations: 13.9 MB / 5.867 GB, free: 59.93 MB / 0.7137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001747/25.73, allocations: 52.05 kB / 5.867 GB, free: 59.93 MB / 0.7137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2339/25.96, allocations: 17.32 MB / 5.884 GB, free: 59.82 MB / 0.7137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008367/25.97, allocations: 1.078 MB / 5.885 GB, free: 59.82 MB / 0.7137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03993/26.01, allocations: 14.08 MB / 5.899 GB, free: 58.64 MB / 0.7137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01537/26.03, allocations: 0.8659 MB / 5.9 GB, free: 58.64 MB / 0.7137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003155/26.03, allocations: 379.6 kB / 5.9 GB, free: 58.64 MB / 0.7137 GB Warning: The initial conditions are over specified. The following 13 initial equations are redundant, so they are removed from the initialization sytem: $DER.pipe1.mediums[1].p = 0.0 $DER.pipe1.mediums[2].p = 0.0 $DER.pipe3.mediums[1].p = 0.0 $DER.pipe7.mediums[2].p = 0.0 $DER.pipe9.mediums[1].p = 0.0 $DER.pipe10.mediums[1].p = 0.0 $DER.pipe4.mediums[2].p = 0.0 $DER.pipe5.mediums[1].p = 0.0 $DER.pipe8.mediums[2].p = 0.0 $DER.pipe10.mediums[2].p = 0.0 $DER.pipe11.mediums[1].p = 0.0 $DER.pipe5.mediums[2].p = 0.0 $DER.pipe9.mediums[2].p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 226 * Number of states: 0 () * Number of discrete variables: 52 (valve3.state_b.phase,valve3.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe11.mediums[2].phase,pipe11.mediums[1].phase,pipe11.state_b.phase,pipe11.state_a.phase,pipe5.mediums[2].phase,pipe5.mediums[1].phase,pipe5.state_b.phase,pipe5.state_a.phase,pipe10.mediums[2].phase,pipe10.mediums[1].phase,pipe10.state_b.phase,pipe10.state_a.phase,pipe9.mediums[2].phase,pipe9.mediums[1].phase,pipe9.state_b.phase,pipe9.state_a.phase,pipe8.mediums[2].phase,pipe8.mediums[1].phase,pipe8.state_b.phase,pipe8.state_a.phase,sink.medium.phase,pipe7.mediums[2].phase,pipe7.mediums[1].phase,pipe7.state_b.phase,pipe7.state_a.phase,pipe6.mediums[2].phase,pipe6.mediums[1].phase,pipe6.state_b.phase,pipe6.state_a.phase,pipe4.mediums[2].phase,pipe4.mediums[1].phase,pipe4.state_b.phase,pipe4.state_a.phase,pipe3.mediums[2].phase,pipe3.mediums[1].phase,pipe3.state_b.phase,pipe3.state_a.phase,pipe2.mediums[2].phase,pipe2.mediums[1].phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.mediums[2].phase,pipe1.mediums[1].phase,pipe1.state_b.phase,pipe1.state_a.phase,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (601): * Single equations (assignments): 599 * 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: 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 10,30 380} Notification: Performance of prepare postOptimizeDAE: time 0.005826/26.04, allocations: 0.5958 MB / 5.901 GB, free: 58.53 MB / 0.7137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003981/26.04, allocations: 0.6803 MB / 5.901 GB, free: 58.52 MB / 0.7137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06788/26.11, allocations: 26.52 MB / 5.927 GB, free: 57.15 MB / 0.7137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003193/26.11, allocations: 232.9 kB / 5.927 GB, free: 57.15 MB / 0.7137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.892e-05/26.11, allocations: 0 / 5.927 GB, free: 57.15 MB / 0.7137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0497/26.16, allocations: 22.97 MB / 5.95 GB, free: 55.69 MB / 0.7137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1164/26.27, allocations: 46.53 MB / 5.995 GB, free: 30.28 MB / 0.7137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001449/26.27, allocations: 21.31 kB / 5.995 GB, free: 30.26 MB / 0.7137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007982/26.28, allocations: 0.9141 MB / 5.996 GB, free: 29.52 MB / 0.7137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1136/26.4, allocations: 10.39 MB / 6.006 GB, free: 22.57 MB / 0.7137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002963/26.4, allocations: 260.5 kB / 6.006 GB, free: 22.35 MB / 0.7137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03642/26.44, allocations: 14.54 MB / 6.021 GB, free: 9.18 MB / 0.7137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.929e-05/26.44, allocations: 29.66 kB / 6.021 GB, free: 9.16 MB / 0.7137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.7583/27.19, allocations: 31.53 MB / 6.051 GB, free: 99.6 MB / 0.7293 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008607/27.2, allocations: 2.037 MB / 6.053 GB, free: 99.51 MB / 0.7293 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004168/27.21, allocations: 227.3 kB / 6.054 GB, free: 99.51 MB / 0.7293 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0125/27.22, allocations: 0.571 MB / 6.054 GB, free: 99.49 MB / 0.7293 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002678/27.22, allocations: 0.4997 MB / 6.055 GB, free: 99.47 MB / 0.7293 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002043/27.22, allocations: 273.7 kB / 6.055 GB, free: 99.47 MB / 0.7293 GB Notification: Performance of sorting global known variables: time 0.009671/27.23, allocations: 3.222 MB / 6.058 GB, free: 99.22 MB / 0.7293 GB Notification: Performance of sort global known variables: time 8.41e-07/27.23, allocations: 0.75 kB / 6.058 GB, free: 99.22 MB / 0.7293 GB Notification: Performance of remove unused functions: time 0.03692/27.27, allocations: 6.533 MB / 6.065 GB, free: 99.15 MB / 0.7293 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 83 * Number of states: 31 (pipe1.mediums[1].T,pipe1.mediums[2].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe2.mediums[2].p,pipe2.mediums[2].T,pipe3.mediums[1].T,pipe3.mediums[2].p,pipe3.mediums[2].T,pipe4.mediums[1].p,pipe4.mediums[1].T,pipe4.mediums[2].T,pipe6.mediums[1].p,pipe6.mediums[1].T,pipe6.mediums[2].p,pipe6.mediums[2].T,pipe7.mediums[1].p,pipe7.mediums[1].T,pipe7.mediums[2].T,pipe8.mediums[1].p,pipe8.mediums[1].T,pipe8.mediums[2].T,pipe9.mediums[1].T,pipe9.mediums[2].T,pipe10.mediums[1].T,pipe10.mediums[2].T,pipe5.mediums[1].T,pipe5.mediums[2].T,pipe11.mediums[1].T,pipe11.mediums[2].p,pipe11.mediums[2].T) * Number of discrete variables: 102 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region,$cse52.phase,$cse52.region,$cse53.phase,$cse53.region,$cse54.phase,$cse54.region,$cse55.phase,$cse55.region,$cse57.phase,$cse57.region,$cse64.phase,$cse64.region,$cse65.phase,$cse65.region,$cse67.phase,$cse67.region,$cse68.phase,$cse68.region,$cse70.phase,$cse70.region,$cse71.phase,$cse71.region,$cse73.phase,$cse73.region,$cse75.phase,$cse75.region,$cse76.phase,$cse76.region,$cse77.phase,$cse77.region,$cse79.phase,$cse79.region,$cse80.phase,$cse80.region,$cse82.phase,$cse82.region,$cse83.phase,$cse83.region,$cse85.phase,$cse85.region,$cse86.phase,$cse86.region,$cse87.phase,$cse87.region,$cse88.phase,$cse88.region,$cse90.phase,$cse90.region,$cse91.phase,$cse91.region,$cse92.phase,$cse92.region,$cse93.phase,$cse93.region,$cse95.phase,$cse95.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (562): * Single equations (assignments): 501 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {4 38,2 1,2 1,2 1,2 1,6 64,6 64,6 36,2 1,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.09818/27.37, allocations: 40.89 MB / 6.104 GB, free: 88.57 MB / 0.7293 GB Notification: Performance of simCode: created initialization part: time 0.05896/27.43, allocations: 19.46 MB / 6.123 GB, free: 88.24 MB / 0.7293 GB Notification: Performance of simCode: created event and clocks part: time 3.461e-05/27.43, allocations: 6.219 kB / 6.123 GB, free: 88.24 MB / 0.7293 GB Notification: Performance of simCode: created simulation system equations: time 0.02286/27.45, allocations: 8.594 MB / 6.132 GB, free: 88.15 MB / 0.7293 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04342/27.49, allocations: 3.096 MB / 6.135 GB, free: 88.06 MB / 0.7293 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1212/27.62, allocations: 25.64 MB / 6.16 GB, free: 83.63 MB / 0.7293 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01899/27.63, allocations: 5.989 MB / 6.166 GB, free: 82.66 MB / 0.7293 GB Notification: Performance of simCode: alias equations: time 0.02612/27.66, allocations: 5.673 MB / 6.171 GB, free: 82.54 MB / 0.7293 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01004/27.67, allocations: 4.175 MB / 6.175 GB, free: 82.53 MB / 0.7293 GB Notification: Performance of SimCode: time 3.206e-06/27.67, allocations: 0 / 6.175 GB, free: 82.53 MB / 0.7293 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.476/29.15, allocations: 376.8 MB / 6.543 GB, free: 15.6 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003233/29.15, allocations: 270 kB / 6.544 GB, free: 15.26 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.43/51.58, allocations: 0 / 6.544 GB, free: 15.26 MB / 0.7605 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.IncompressibleFluidNetwork_StandardWaterOnePhase_res.mat does not exist to compare? outputFormat=mat