Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.715/2.715, allocations: 235 MB / 247.2 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.781e-05/3.784e-05, allocations: 4 kB / 305 MB, free: 5.086 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4014/0.4015, allocations: 54.86 MB / 359.9 MB, free: 3.176 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.178/8.58, allocations: 2.673 GB / 3.025 GB, free: 85.64 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/8.58, allocations: 78.77 kB / 3.025 GB, free: 85.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.036/13.62, allocations: 0.8678 GB / 3.892 GB, free: 33.78 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.274e-06/13.62, allocations: 1 kB / 3.892 GB, free: 33.78 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004199/13.62, allocations: 60.94 kB / 3.893 GB, free: 33.78 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01942/13.64, allocations: 3.747 MB / 3.896 GB, free: 32.17 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.949e-05/13.64, allocations: 9.75 kB / 3.896 GB, free: 32.17 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00142/13.64, allocations: 272.3 kB / 3.896 GB, free: 32.12 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00885/13.65, allocations: 0.7879 MB / 3.897 GB, free: 32 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008128/13.65, allocations: 1.971 MB / 3.899 GB, free: 31.56 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002763/13.66, allocations: 162.8 kB / 3.899 GB, free: 31.56 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009035/13.66, allocations: 188.7 kB / 3.9 GB, free: 31.55 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01075/13.67, allocations: 3.242 MB / 3.903 GB, free: 31.07 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.897e-05/13.67, allocations: 6.781 kB / 3.903 GB, free: 31.07 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004015/13.67, allocations: 81.52 kB / 3.903 GB, free: 31.07 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002967/13.67, allocations: 148.3 kB / 3.903 GB, free: 31.07 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009655/13.68, allocations: 2.832 MB / 3.906 GB, free: 31.05 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.0263/13.7, allocations: 13.91 MB / 3.919 GB, free: 22.58 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00649/13.71, allocations: 1.956 MB / 3.921 GB, free: 22.54 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002602/13.71, allocations: 1.027 MB / 3.922 GB, free: 22.53 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05699/13.77, allocations: 18.89 MB / 3.941 GB, free: 26.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005801/13.78, allocations: 1.597 MB / 3.942 GB, free: 26.57 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001806/13.78, allocations: 171.2 kB / 3.942 GB, free: 26.49 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 7.624e-06/13.78, allocations: 0 / 3.942 GB, free: 26.49 MB / 0.5261 GB Notification: Performance of matching and sorting (n=167): time 0.02864/13.81, allocations: 6.871 MB / 3.949 GB, free: 25.55 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001889/13.81, allocations: 253 kB / 3.949 GB, free: 25.27 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002747/13.81, allocations: 1.259 MB / 3.951 GB, free: 25.09 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006241/13.81, allocations: 61.45 kB / 3.951 GB, free: 25.06 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009671/13.81, allocations: 0.9008 MB / 3.951 GB, free: 24.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009111/13.81, allocations: 0.5557 MB / 3.952 GB, free: 24.34 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/13.81, allocations: 37.72 kB / 3.952 GB, free: 24.34 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002426/13.81, allocations: 379.9 kB / 3.952 GB, free: 24.04 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002272/13.81, allocations: 0.9207 MB / 3.953 GB, free: 24.04 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002675/13.82, allocations: 1.354 MB / 3.955 GB, free: 23.59 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002852/13.82, allocations: 1.162 MB / 3.956 GB, free: 23.51 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.377e-05/13.82, allocations: 6.922 kB / 3.956 GB, free: 23.51 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.008904/13.83, allocations: 2.912 MB / 3.959 GB, free: 23.23 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001737/13.83, allocations: 4.357 MB / 3.963 GB, free: 18.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.71e-05/13.83, allocations: 13.41 kB / 3.963 GB, free: 18.63 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004419/13.84, allocations: 0.5194 MB / 3.963 GB, free: 18.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003818/13.84, allocations: 455.5 kB / 3.964 GB, free: 18.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003037/13.84, allocations: 2.711 MB / 3.966 GB, free: 16.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004472/13.85, allocations: 266.8 kB / 3.967 GB, free: 16.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006679/13.85, allocations: 99.52 kB / 3.967 GB, free: 16.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/13.85, allocations: 3.656 kB / 3.967 GB, free: 16.5 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006917/13.85, allocations: 2.541 MB / 3.969 GB, free: 16.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.932e-05/13.85, allocations: 11.38 kB / 3.969 GB, free: 16.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009586/13.86, allocations: 199.3 kB / 3.969 GB, free: 16.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003887/13.86, allocations: 464.2 kB / 3.97 GB, free: 16.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001752/13.86, allocations: 1.874 MB / 3.972 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004219/13.87, allocations: 268.4 kB / 3.972 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006248/13.87, allocations: 89.47 kB / 3.972 GB, free: 14.78 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0009042/13.87, allocations: 298.3 kB / 3.972 GB, free: 14.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006503/13.87, allocations: 198.9 kB / 3.973 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01494/13.88, allocations: 7.341 MB / 3.98 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001026/13.88, allocations: 80.61 kB / 3.98 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/13.88, allocations: 6.469 kB / 3.98 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01162/13.89, allocations: 6.42 MB / 3.986 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02476/13.92, allocations: 11.09 MB / 3.997 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.651e-05/13.92, allocations: 7.844 kB / 3.997 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002913/13.92, allocations: 359 kB / 3.997 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00416/13.93, allocations: 1.289 MB / 3.999 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005545/13.93, allocations: 75.06 kB / 3.999 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003493/13.93, allocations: 3.197 MB / 4.002 GB, free: 9.473 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.638e-06/13.93, allocations: 8.594 kB / 4.002 GB, free: 9.473 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01461/13.95, allocations: 7.148 MB / 4.009 GB, free: 8.223 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002795/13.95, allocations: 0.7012 MB / 4.009 GB, free: 7.906 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001026/13.95, allocations: 57.36 kB / 4.009 GB, free: 7.906 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003791/13.95, allocations: 187.7 kB / 4.01 GB, free: 7.895 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007605/13.95, allocations: 154 kB / 4.01 GB, free: 7.891 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002805/13.95, allocations: 75.2 kB / 4.01 GB, free: 7.891 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002739/13.96, allocations: 1.072 MB / 4.011 GB, free: 7.73 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.372e-06/13.96, allocations: 1.781 kB / 4.011 GB, free: 7.73 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01469/13.97, allocations: 2.598 MB / 4.013 GB, free: 7.395 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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) * 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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03082/14, allocations: 11.25 MB / 4.024 GB, free: 20.12 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01203/14.02, allocations: 4.631 MB / 4.029 GB, free: 18.74 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.25e-05/14.02, allocations: 3.25 kB / 4.029 GB, free: 18.74 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005857/14.02, allocations: 2.434 MB / 4.031 GB, free: 17.67 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008262/14.03, allocations: 0.9243 MB / 4.032 GB, free: 17.48 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8342/14.86, allocations: 129.2 MB / 4.158 GB, free: 53.75 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002138/14.87, allocations: 2.193 MB / 4.161 GB, free: 52.95 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.007856/14.87, allocations: 2.432 MB / 4.163 GB, free: 52.84 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002533/14.88, allocations: 1.219 MB / 4.164 GB, free: 52.84 MB / 0.5417 GB Notification: Performance of SimCode: time 1.573e-06/14.88, allocations: 0 / 4.164 GB, free: 52.84 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6947/15.57, allocations: 116.5 MB / 4.278 GB, free: 65.12 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000318/15.57, allocations: 227.2 kB / 4.278 GB, free: 64.86 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.405/23.98, allocations: 0 / 4.278 GB, free: 64.86 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat