Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.356/2.356, allocations: 270 MB / 283.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.564e-05/5.584e-05, allocations: 4 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1534, allocations: 61.88 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.51/9.663, allocations: 2.852 GB / 3.253 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/9.663, allocations: 75.98 kB / 3.253 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.714/15.38, allocations: 1.025 GB / 4.278 GB, free: 5.387 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.235e-06/15.38, allocations: 0 / 4.278 GB, free: 5.387 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0003488/15.38, allocations: 75.86 kB / 4.278 GB, free: 5.312 MB / 0.573 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.02142/15.4, allocations: 4.251 MB / 4.282 GB, free: 0.9805 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/15.4, allocations: 12.03 kB / 4.282 GB, free: 0.9688 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001325/15.4, allocations: 316.6 kB / 4.282 GB, free: 0.6484 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4915/15.89, allocations: 0.935 MB / 4.283 GB, free: 38.53 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01042/15.9, allocations: 2.198 MB / 4.285 GB, free: 38.18 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00043/15.9, allocations: 197.5 kB / 4.285 GB, free: 38.17 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001225/15.9, allocations: 225.7 kB / 4.286 GB, free: 38.17 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01452/15.92, allocations: 3.863 MB / 4.289 GB, free: 37.57 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-05/15.92, allocations: 9.812 kB / 4.289 GB, free: 37.57 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004738/15.92, allocations: 98.97 kB / 4.289 GB, free: 37.57 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004077/15.92, allocations: 171.7 kB / 4.29 GB, free: 37.57 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01314/15.93, allocations: 3.412 MB / 4.293 GB, free: 37.55 MB / 0.573 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.03581/15.97, allocations: 16.94 MB / 4.309 GB, free: 27.55 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009987/15.98, allocations: 3.065 MB / 4.312 GB, free: 26.95 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003265/15.98, allocations: 1.262 MB / 4.314 GB, free: 26.94 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07699/16.06, allocations: 24.44 MB / 4.338 GB, free: 28.12 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006771/16.07, allocations: 1.874 MB / 4.339 GB, free: 27.99 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 7.063e-06/16.07, allocations: 2.906 kB / 4.339 GB, free: 27.99 MB / 0.5886 GB Notification: Performance of matching and sorting (n=212): time 0.04022/16.11, allocations: 8.929 MB / 4.348 GB, free: 26.96 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001747/16.11, allocations: 258 kB / 4.348 GB, free: 26.68 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003188/16.11, allocations: 1.506 MB / 4.35 GB, free: 26.45 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0006536/16.11, allocations: 65.36 kB / 4.35 GB, free: 26.42 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001046/16.11, allocations: 1.042 MB / 4.351 GB, free: 26.04 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001009/16.11, allocations: 0.7015 MB / 4.352 GB, free: 25.59 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002677/16.11, allocations: 50.47 kB / 4.352 GB, free: 25.59 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002433/16.11, allocations: 401.8 kB / 4.352 GB, free: 25.29 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002883/16.12, allocations: 1.137 MB / 4.353 GB, free: 25.28 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003283/16.12, allocations: 1.645 MB / 4.355 GB, free: 24.77 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003314/16.12, allocations: 1.397 MB / 4.356 GB, free: 24.69 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-05/16.12, allocations: 6 kB / 4.356 GB, free: 24.69 MB / 0.5886 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.009412/16.13, allocations: 3.494 MB / 4.36 GB, free: 24.39 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.00225/16.13, allocations: 5.139 MB / 4.365 GB, free: 19.03 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.446e-05/16.13, allocations: 15.28 kB / 4.365 GB, free: 19.03 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001832/16.14, allocations: 336.3 kB / 4.365 GB, free: 18.99 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005176/16.14, allocations: 0.5932 MB / 4.365 GB, free: 18.99 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00291/16.14, allocations: 3.093 MB / 4.368 GB, free: 16.39 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005803/16.15, allocations: 343.9 kB / 4.369 GB, free: 16.38 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008176/16.15, allocations: 120.2 kB / 4.369 GB, free: 16.38 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/16.15, allocations: 4.969 kB / 4.369 GB, free: 16.38 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009037/16.16, allocations: 3.204 MB / 4.372 GB, free: 16.22 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-05/16.16, allocations: 14.03 kB / 4.372 GB, free: 16.22 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001632/16.16, allocations: 336.9 kB / 4.372 GB, free: 16.18 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005013/16.17, allocations: 0.5831 MB / 4.373 GB, free: 16.18 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002875/16.17, allocations: 3.097 MB / 4.376 GB, free: 13.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005325/16.18, allocations: 330.7 kB / 4.376 GB, free: 13.57 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005286/16.18, allocations: 119.3 kB / 4.376 GB, free: 13.57 MB / 0.5886 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.001058/16.18, allocations: 327.5 kB / 4.377 GB, free: 13.39 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007503/16.18, allocations: 238.2 kB / 4.377 GB, free: 13.27 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01614/16.19, allocations: 8.205 MB / 4.385 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001012/16.19, allocations: 89.23 kB / 4.385 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/16.19, allocations: 0 / 4.385 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01352/16.21, allocations: 7.118 MB / 4.392 GB, free: 27.49 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02827/16.24, allocations: 13.2 MB / 4.405 GB, free: 25.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.112e-05/16.24, allocations: 7.719 kB / 4.405 GB, free: 25.85 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003807/16.24, allocations: 496.7 kB / 4.405 GB, free: 25.85 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002369/16.24, allocations: 457.9 kB / 4.406 GB, free: 25.8 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003789/16.24, allocations: 84.23 kB / 4.406 GB, free: 25.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002917/16.25, allocations: 3.224 MB / 4.409 GB, free: 23.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.355e-06/16.25, allocations: 13.53 kB / 4.409 GB, free: 23.2 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01529/16.26, allocations: 8.239 MB / 4.417 GB, free: 21.77 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002725/16.26, allocations: 0.829 MB / 4.418 GB, free: 21.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007379/16.26, allocations: 66.59 kB / 4.418 GB, free: 21.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003479/16.27, allocations: 235.1 kB / 4.418 GB, free: 21.41 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005042/16.27, allocations: 201.7 kB / 4.418 GB, free: 21.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002872/16.27, allocations: 95.33 kB / 4.418 GB, free: 21.4 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.002705/16.27, allocations: 1.325 MB / 4.42 GB, free: 21.24 MB / 0.6042 GB Notification: Performance of sort global known variables: time 8.02e-07/16.27, allocations: 0 / 4.42 GB, free: 21.24 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01321/16.28, allocations: 2.955 MB / 4.423 GB, free: 21.13 MB / 0.6042 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.0312/16.32, allocations: 13.08 MB / 4.435 GB, free: 17.63 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01503/16.33, allocations: 5.562 MB / 4.441 GB, free: 17.29 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.531e-05/16.33, allocations: 0 / 4.441 GB, free: 17.29 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.00719/16.34, allocations: 2.943 MB / 4.444 GB, free: 17.16 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0112/16.35, allocations: 1.216 MB / 4.445 GB, free: 17.12 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02432/16.37, allocations: 8.08 MB / 4.453 GB, free: 14.65 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002529/16.38, allocations: 2.385 MB / 4.455 GB, free: 13.74 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01015/16.39, allocations: 2.78 MB / 4.458 GB, free: 13.61 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003187/16.39, allocations: 1.42 MB / 4.459 GB, free: 12.46 MB / 0.6042 GB Notification: Performance of SimCode: time 1.242e-06/16.39, allocations: 4 kB / 4.459 GB, free: 12.46 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8277/17.22, allocations: 136.5 MB / 4.593 GB, free: 80.66 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002277/17.22, allocations: 237.6 kB / 4.593 GB, free: 80.35 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/27.42, allocations: 0 / 4.593 GB, free: 80.35 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat