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.439/2.439, allocations: 235 MB / 247.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.869e-05/3.889e-05, allocations: 7.984 kB / 305 MB, free: 5.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4025/0.4026, allocations: 54.84 MB / 359.9 MB, free: 3.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.1/8.503, allocations: 2.656 GB / 3.007 GB, free: 104.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/8.503, allocations: 81.69 kB / 3.007 GB, free: 104 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.343/12.85, allocations: 0.7947 GB / 3.802 GB, free: 25.89 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.354e-06/12.85, allocations: 0 / 3.802 GB, free: 25.89 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003713/12.85, allocations: 72.81 kB / 3.802 GB, free: 25.87 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.02095/12.87, allocations: 3.946 MB / 3.806 GB, free: 23.89 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/12.87, allocations: 8.438 kB / 3.806 GB, free: 23.89 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001222/12.87, allocations: 293.7 kB / 3.806 GB, free: 23.84 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008828/12.88, allocations: 0.8389 MB / 3.807 GB, free: 23.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008553/12.89, allocations: 2.089 MB / 3.809 GB, free: 23.18 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003019/12.89, allocations: 175.3 kB / 3.809 GB, free: 23.18 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001249/12.89, allocations: 199 kB / 3.809 GB, free: 23.17 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/12.9, allocations: 3.705 MB / 3.813 GB, free: 22.59 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.852e-05/12.9, allocations: 7.281 kB / 3.813 GB, free: 22.59 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000435/12.9, allocations: 87.61 kB / 3.813 GB, free: 22.59 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000311/12.9, allocations: 167.1 kB / 3.813 GB, free: 22.58 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01185/12.91, allocations: 3.424 MB / 3.817 GB, free: 22.54 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.0295/12.94, allocations: 14.76 MB / 3.831 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006623/12.95, allocations: 2.124 MB / 3.833 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002442/12.95, allocations: 1.065 MB / 3.834 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05892/13.01, allocations: 18.95 MB / 3.853 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005897/13.02, allocations: 1.685 MB / 3.854 GB, free: 14.15 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001718/13.02, allocations: 191.9 kB / 3.855 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 6.162e-06/13.02, allocations: 0 / 3.855 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.0288/13.05, allocations: 7.319 MB / 3.862 GB, free: 9.676 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002531/13.05, allocations: 422.5 kB / 3.862 GB, free: 9.172 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003132/13.05, allocations: 1.483 MB / 3.864 GB, free: 7.844 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006161/13.05, allocations: 57.7 kB / 3.864 GB, free: 7.781 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001083/13.05, allocations: 0.9937 MB / 3.865 GB, free: 6.879 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001115/13.05, allocations: 0.5887 MB / 3.865 GB, free: 6.344 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000248/13.05, allocations: 36 kB / 3.865 GB, free: 6.309 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002464/13.06, allocations: 397.4 kB / 3.866 GB, free: 5.941 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003021/13.06, allocations: 1.054 MB / 3.867 GB, free: 5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00367/13.06, allocations: 1.533 MB / 3.868 GB, free: 3.422 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003752/13.07, allocations: 1.328 MB / 3.869 GB, free: 2.277 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.972e-05/13.07, allocations: 7.953 kB / 3.869 GB, free: 2.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01212/13.08, allocations: 3.4 MB / 3.873 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002101/13.08, allocations: 4.581 MB / 3.877 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.091e-05/13.08, allocations: 12 kB / 3.877 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008769/13.09, allocations: 0.9644 MB / 3.878 GB, free: 9.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004113/13.09, allocations: 475 kB / 3.879 GB, free: 9.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00458/13.1, allocations: 3.162 MB / 3.882 GB, free: 6.473 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00432/13.1, allocations: 233.1 kB / 3.882 GB, free: 6.289 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008096/13.1, allocations: 110.8 kB / 3.882 GB, free: 6.195 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/13.1, allocations: 4 kB / 3.882 GB, free: 6.191 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01048/13.11, allocations: 2.971 MB / 3.885 GB, free: 3.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.297e-05/13.11, allocations: 16 kB / 3.885 GB, free: 3.574 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002134/13.12, allocations: 353.5 kB / 3.885 GB, free: 3.293 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004329/13.12, allocations: 498.4 kB / 3.886 GB, free: 2.883 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4426/13.56, allocations: 4.041 MB / 3.89 GB, free: 55.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004154/13.57, allocations: 234.5 kB / 3.89 GB, free: 55.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007195/13.57, allocations: 99.89 kB / 3.89 GB, free: 55.04 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.0009057/13.57, allocations: 304.9 kB / 3.89 GB, free: 54.86 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007931/13.57, allocations: 211.2 kB / 3.89 GB, free: 54.86 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01865/13.59, allocations: 7.734 MB / 3.898 GB, free: 54.31 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001708/13.59, allocations: 82.72 kB / 3.898 GB, free: 54.31 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/13.59, allocations: 4.625 kB / 3.898 GB, free: 54.31 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01483/13.6, allocations: 6.779 MB / 3.905 GB, free: 53.38 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02469/13.63, allocations: 10.79 MB / 3.915 GB, free: 52.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.387e-05/13.63, allocations: 0 / 3.915 GB, free: 52.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002999/13.63, allocations: 340 kB / 3.916 GB, free: 52.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008144/13.64, allocations: 2.504 MB / 3.918 GB, free: 52.64 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006138/13.64, allocations: 67.81 kB / 3.918 GB, free: 52.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004575/13.64, allocations: 4.101 MB / 3.922 GB, free: 50.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/13.64, allocations: 5.266 kB / 3.922 GB, free: 50.56 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01561/13.66, allocations: 7.672 MB / 3.93 GB, free: 49.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002718/13.66, allocations: 0.7585 MB / 3.93 GB, free: 49.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008218/13.66, allocations: 53.02 kB / 3.93 GB, free: 49.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003299/13.67, allocations: 194.1 kB / 3.931 GB, free: 49.62 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000459/13.67, allocations: 139.4 kB / 3.931 GB, free: 49.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002463/13.67, allocations: 74.16 kB / 3.931 GB, free: 49.62 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002715/13.67, allocations: 1.24 MB / 3.932 GB, free: 49.46 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.91e-07/13.67, allocations: 0 / 3.932 GB, free: 49.46 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01349/13.68, allocations: 2.833 MB / 3.935 GB, free: 49.45 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.02968/13.71, allocations: 10.22 MB / 3.945 GB, free: 48.07 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01282/13.73, allocations: 5.36 MB / 3.95 GB, free: 47.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/13.73, allocations: 7.547 kB / 3.95 GB, free: 47.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005383/13.73, allocations: 2.361 MB / 3.952 GB, free: 47.35 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00811/13.74, allocations: 0.8864 MB / 3.953 GB, free: 47.33 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3576/14.1, allocations: 129.1 MB / 4.079 GB, free: 1.613 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002459/14.1, allocations: 2.314 MB / 4.081 GB, free: 15.86 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008515/14.11, allocations: 2.388 MB / 4.084 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003004/14.11, allocations: 1.285 MB / 4.085 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of SimCode: time 2.004e-06/14.11, allocations: 0 / 4.085 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7307/14.84, allocations: 123.4 MB / 4.206 GB, free: 54.98 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002618/14.84, allocations: 232.7 kB / 4.206 GB, free: 54.67 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.249/24.09, allocations: 0 / 4.206 GB, free: 54.67 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