Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.466/2.466, allocations: 249.5 MB / 261.6 MB, free: 2.172 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 5.124e-05/5.125e-05, allocations: 4 kB / 323.5 MB, free: 4.223 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3971/0.3972, allocations: 58.83 MB / 382.3 MB, free: 10.23 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.749/9.146, allocations: 2.847 GB / 3.22 GB, free: 75.87 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/9.146, allocations: 74.72 kB / 3.22 GB, free: 75.84 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.975/15.12, allocations: 1.014 GB / 4.234 GB, free: 34.7 MB / 0.5418 GB Notification: Performance of FrontEnd: time 2.866e-06/15.12, allocations: 0 / 4.234 GB, free: 34.7 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 0.0004504/15.12, allocations: 76.14 kB / 4.234 GB, free: 34.69 MB / 0.5418 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.02739/15.15, allocations: 4.249 MB / 4.238 GB, free: 32.68 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 6.102e-05/15.15, allocations: 7.312 kB / 4.238 GB, free: 32.68 MB / 0.5418 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001744/15.15, allocations: 321.1 kB / 4.239 GB, free: 32.63 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01638/15.17, allocations: 0.9327 MB / 4.24 GB, free: 32.48 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009187/15.18, allocations: 2.192 MB / 4.242 GB, free: 31.95 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003392/15.18, allocations: 201.3 kB / 4.242 GB, free: 31.95 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009826/15.18, allocations: 230 kB / 4.242 GB, free: 31.94 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01337/15.19, allocations: 3.866 MB / 4.246 GB, free: 31.32 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.552e-05/15.19, allocations: 7.188 kB / 4.246 GB, free: 31.31 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000493/15.19, allocations: 97.47 kB / 4.246 GB, free: 31.31 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003338/15.19, allocations: 179 kB / 4.246 GB, free: 31.3 MB / 0.5418 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/15.21, allocations: 3.411 MB / 4.25 GB, free: 31.26 MB / 0.5418 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.03421/15.24, allocations: 16.96 MB / 4.266 GB, free: 20.39 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009775/15.25, allocations: 3.053 MB / 4.269 GB, free: 19.02 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003347/15.25, allocations: 1.267 MB / 4.27 GB, free: 18.53 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07901/15.33, allocations: 24.43 MB / 4.294 GB, free: 18.44 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007052/15.34, allocations: 1.876 MB / 4.296 GB, free: 16.97 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=192): time 7.634e-06/15.34, allocations: 0 / 4.296 GB, free: 16.97 MB / 0.5574 GB Notification: Performance of matching and sorting (n=212): time 0.04091/15.38, allocations: 8.921 MB / 4.305 GB, free: 9.43 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001887/15.38, allocations: 263.9 kB / 4.305 GB, free: 9.117 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003324/15.38, allocations: 1.506 MB / 4.306 GB, free: 7.719 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.0008473/15.38, allocations: 61.7 kB / 4.307 GB, free: 7.652 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.001487/15.39, allocations: 1.042 MB / 4.308 GB, free: 6.707 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.00141/15.39, allocations: 0.7011 MB / 4.308 GB, free: 6.07 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002894/15.39, allocations: 48 kB / 4.308 GB, free: 6.023 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0002891/15.39, allocations: 400.8 kB / 4.309 GB, free: 5.656 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003368/15.39, allocations: 1.144 MB / 4.31 GB, free: 4.621 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004093/15.4, allocations: 1.636 MB / 4.311 GB, free: 2.941 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0043/15.4, allocations: 1.401 MB / 4.313 GB, free: 1.727 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.558e-05/15.4, allocations: 4 kB / 4.313 GB, free: 1.723 MB / 0.5574 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01174/15.41, allocations: 3.495 MB / 4.316 GB, free: 14.59 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002571/15.41, allocations: 5.146 MB / 4.321 GB, free: 9.051 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-05/15.41, allocations: 12 kB / 4.321 GB, free: 9.039 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002029/15.42, allocations: 347.7 kB / 4.322 GB, free: 8.75 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005564/15.42, allocations: 0.5926 MB / 4.322 GB, free: 8.25 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003207/15.42, allocations: 3.081 MB / 4.325 GB, free: 5.148 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005736/15.43, allocations: 338.3 kB / 4.325 GB, free: 4.887 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006584/15.43, allocations: 127.1 kB / 4.326 GB, free: 4.773 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/15.43, allocations: 4 kB / 4.326 GB, free: 4.77 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01079/15.44, allocations: 3.204 MB / 4.329 GB, free: 1.926 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.314e-05/15.44, allocations: 15.56 kB / 4.329 GB, free: 1.914 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001842/15.44, allocations: 335.8 kB / 4.329 GB, free: 1.633 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005487/15.45, allocations: 0.5912 MB / 4.33 GB, free: 1.133 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4872/15.94, allocations: 3.08 MB / 4.333 GB, free: 63.21 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005659/15.94, allocations: 340.2 kB / 4.333 GB, free: 63.21 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001086/15.94, allocations: 117.2 kB / 4.333 GB, free: 63.21 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,junctionVolume.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001114/15.94, allocations: 326.5 kB / 4.333 GB, free: 63.04 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009328/15.95, allocations: 236.2 kB / 4.334 GB, free: 63.04 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01973/15.97, allocations: 8.213 MB / 4.342 GB, free: 62.47 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001278/15.97, allocations: 91.92 kB / 4.342 GB, free: 62.47 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/15.97, allocations: 2.312 kB / 4.342 GB, free: 62.47 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01465/15.98, allocations: 7.117 MB / 4.349 GB, free: 61.52 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03203/16.01, allocations: 13.2 MB / 4.362 GB, free: 60.06 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-05/16.01, allocations: 6.844 kB / 4.362 GB, free: 60.06 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004155/16.02, allocations: 492.7 kB / 4.362 GB, free: 60.06 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002483/16.02, allocations: 457.5 kB / 4.362 GB, free: 60.02 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006739/16.02, allocations: 81.2 kB / 4.363 GB, free: 60.02 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002404/16.02, allocations: 3.221 MB / 4.366 GB, free: 57.44 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.055e-05/16.02, allocations: 9.141 kB / 4.366 GB, free: 57.44 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01691/16.04, allocations: 8.244 MB / 4.374 GB, free: 56.02 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003078/16.04, allocations: 0.8313 MB / 4.375 GB, free: 55.73 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001076/16.04, allocations: 68.39 kB / 4.375 GB, free: 55.73 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004245/16.05, allocations: 237.5 kB / 4.375 GB, free: 55.73 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007826/16.05, allocations: 200.8 kB / 4.375 GB, free: 55.72 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00035/16.05, allocations: 99.14 kB / 4.375 GB, free: 55.72 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003079/16.05, allocations: 1.32 MB / 4.376 GB, free: 55.56 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.042e-06/16.05, allocations: 4.594 kB / 4.376 GB, free: 55.56 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01527/16.07, allocations: 2.95 MB / 4.379 GB, free: 55.56 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (239): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03359/16.1, allocations: 13.08 MB / 4.392 GB, free: 52.11 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01483/16.12, allocations: 5.564 MB / 4.398 GB, free: 51.77 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.414e-05/16.12, allocations: 0 / 4.398 GB, free: 51.77 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.007195/16.12, allocations: 2.937 MB / 4.4 GB, free: 51.63 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01117/16.13, allocations: 1.223 MB / 4.402 GB, free: 51.6 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02496/16.16, allocations: 8.067 MB / 4.409 GB, free: 50.04 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002398/16.16, allocations: 2.4 MB / 4.412 GB, free: 49.26 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.009809/16.17, allocations: 2.771 MB / 4.415 GB, free: 49.21 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003241/16.18, allocations: 1.417 MB / 4.416 GB, free: 49.2 MB / 0.573 GB Notification: Performance of SimCode: time 1.482e-06/16.18, allocations: 0 / 4.416 GB, free: 49.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8055/16.98, allocations: 136.4 MB / 4.549 GB, free: 69.91 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002711/16.98, allocations: 233.1 kB / 4.549 GB, free: 69.64 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/27.01, allocations: 0 / 4.549 GB, free: 69.64 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat