Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.548/2.548, allocations: 235 MB / 247.2 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.021e-05/4.066e-05, allocations: 4 kB / 305 MB, free: 5.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4156/0.4157, allocations: 54.85 MB / 359.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.899/8.315, allocations: 2.656 GB / 3.007 GB, free: 101.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/8.315, allocations: 78.52 kB / 3.007 GB, free: 101.8 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.272/12.59, allocations: 0.7947 GB / 3.802 GB, free: 25.04 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.025e-06/12.59, allocations: 0 / 3.802 GB, free: 25.04 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004628/12.59, allocations: 69.38 kB / 3.802 GB, free: 25.02 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02574/12.61, allocations: 3.949 MB / 3.806 GB, free: 23.03 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/12.61, allocations: 14.62 kB / 3.806 GB, free: 23.03 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001369/12.62, allocations: 290.3 kB / 3.806 GB, free: 22.98 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008998/12.62, allocations: 0.8416 MB / 3.807 GB, free: 22.84 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009326/12.63, allocations: 2.087 MB / 3.809 GB, free: 22.32 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003732/12.63, allocations: 169.5 kB / 3.809 GB, free: 22.32 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001187/12.64, allocations: 204.4 kB / 3.809 GB, free: 22.32 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01444/12.65, allocations: 3.685 MB / 3.813 GB, free: 21.74 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.921e-05/12.65, allocations: 3.938 kB / 3.813 GB, free: 21.74 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006099/12.65, allocations: 85.19 kB / 3.813 GB, free: 21.74 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003122/12.65, allocations: 167.8 kB / 3.813 GB, free: 21.73 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01214/12.66, allocations: 3.387 MB / 3.817 GB, free: 21.7 MB / 0.4948 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.03196/12.7, allocations: 14.76 MB / 3.831 GB, free: 11.37 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007019/12.7, allocations: 2.126 MB / 3.833 GB, free: 10.63 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002754/12.7, allocations: 1.058 MB / 3.834 GB, free: 10.23 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06004/12.77, allocations: 18.94 MB / 3.853 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006071/12.77, allocations: 1.67 MB / 3.854 GB, free: 12.94 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00238/12.77, allocations: 194.8 kB / 3.854 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 1.019e-05/12.77, allocations: 3.938 kB / 3.854 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.03011/12.8, allocations: 7.319 MB / 3.862 GB, free: 7.035 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002527/12.8, allocations: 418.4 kB / 3.862 GB, free: 6.535 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003987/12.81, allocations: 1.482 MB / 3.863 GB, free: 5.211 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007014/12.81, allocations: 61.7 kB / 3.864 GB, free: 5.145 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001518/12.81, allocations: 0.9903 MB / 3.865 GB, free: 4.242 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001264/12.81, allocations: 0.5986 MB / 3.865 GB, free: 3.703 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00033/12.81, allocations: 36 kB / 3.865 GB, free: 3.668 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003213/12.81, allocations: 388.5 kB / 3.865 GB, free: 3.305 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003524/12.82, allocations: 1.056 MB / 3.867 GB, free: 2.367 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004174/12.82, allocations: 1.513 MB / 3.868 GB, free: 0.8047 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005208/12.83, allocations: 1.395 MB / 3.869 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.876e-05/12.83, allocations: 7.953 kB / 3.869 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01074/12.84, allocations: 3.269 MB / 3.873 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001975/12.84, allocations: 4.579 MB / 3.877 GB, free: 7.965 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.17e-05/12.84, allocations: 16 kB / 3.877 GB, free: 7.949 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008798/12.85, allocations: 0.961 MB / 3.878 GB, free: 7.242 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004128/12.85, allocations: 473 kB / 3.878 GB, free: 6.852 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004431/12.86, allocations: 3.166 MB / 3.882 GB, free: 3.801 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004217/12.86, allocations: 234.9 kB / 3.882 GB, free: 3.617 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000805/12.86, allocations: 106.7 kB / 3.882 GB, free: 3.523 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/12.86, allocations: 8 kB / 3.882 GB, free: 3.516 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01007/12.87, allocations: 2.933 MB / 3.885 GB, free: 0.9531 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.032e-05/12.87, allocations: 23.97 kB / 3.885 GB, free: 0.9336 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002214/12.87, allocations: 352 kB / 3.885 GB, free: 0.6523 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004254/12.88, allocations: 0.4917 MB / 3.886 GB, free: 240 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4367/13.31, allocations: 4.036 MB / 3.89 GB, free: 52.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004057/13.32, allocations: 234.8 kB / 3.89 GB, free: 52.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005408/13.32, allocations: 104.4 kB / 3.89 GB, free: 52.98 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.phase,pipe1.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_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0008544/13.32, allocations: 302.8 kB / 3.89 GB, free: 52.81 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000735/13.32, allocations: 210.6 kB / 3.89 GB, free: 52.81 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01838/13.34, allocations: 7.74 MB / 3.898 GB, free: 52.25 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001677/13.34, allocations: 83.02 kB / 3.898 GB, free: 52.25 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.595e-05/13.34, allocations: 1.062 kB / 3.898 GB, free: 52.25 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01564/13.36, allocations: 6.779 MB / 3.905 GB, free: 51.32 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02367/13.38, allocations: 10.78 MB / 3.915 GB, free: 50.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-05/13.38, allocations: 0 / 3.915 GB, free: 50.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002996/13.38, allocations: 354.4 kB / 3.915 GB, free: 50.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008326/13.39, allocations: 2.493 MB / 3.918 GB, free: 50.57 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005969/13.39, allocations: 76.12 kB / 3.918 GB, free: 50.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004594/13.4, allocations: 4.089 MB / 3.922 GB, free: 48.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/13.4, allocations: 3.875 kB / 3.922 GB, free: 48.49 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0152/13.41, allocations: 7.678 MB / 3.929 GB, free: 47.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002611/13.41, allocations: 0.7524 MB / 3.93 GB, free: 47.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008129/13.41, allocations: 54.52 kB / 3.93 GB, free: 47.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003162/13.42, allocations: 195.7 kB / 3.93 GB, free: 47.52 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004547/13.42, allocations: 139.4 kB / 3.931 GB, free: 47.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002415/13.42, allocations: 74.55 kB / 3.931 GB, free: 47.52 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002722/13.42, allocations: 1.238 MB / 3.932 GB, free: 47.36 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.81e-07/13.42, allocations: 3.281 kB / 3.932 GB, free: 47.36 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01321/13.43, allocations: 2.823 MB / 3.935 GB, free: 47.35 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03073/13.47, allocations: 10.25 MB / 3.945 GB, free: 45.95 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01413/13.48, allocations: 5.296 MB / 3.95 GB, free: 45.39 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.348e-06/13.48, allocations: 0 / 3.95 GB, free: 45.39 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006139/13.49, allocations: 2.354 MB / 3.952 GB, free: 45.25 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008532/13.49, allocations: 0.8939 MB / 3.953 GB, free: 45.22 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3954/13.89, allocations: 129.1 MB / 4.079 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003761/13.89, allocations: 2.303 MB / 4.081 GB, free: 12.87 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.4613/14.35, allocations: 2.404 MB / 4.084 GB, free: 67.61 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003078/14.36, allocations: 1.28 MB / 4.085 GB, free: 67.61 MB / 0.5417 GB Notification: Performance of SimCode: time 2.064e-06/14.36, allocations: 1.406 kB / 4.085 GB, free: 67.61 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3067/14.66, allocations: 123.3 MB / 4.205 GB, free: 54.37 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002341/14.66, allocations: 234.7 kB / 4.206 GB, free: 54.06 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.612/23.28, allocations: 0 / 4.206 GB, free: 54.06 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat