Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.945/1.945, allocations: 209.4 MB / 216.5 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.262e-05/2.271e-05, allocations: 0 / 267.6 MB, free: 4.945 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1037, allocations: 48.7 MB / 316.3 MB, free: 4.148 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.619/7.723, allocations: 2.566 GB / 2.875 GB, free: 21.28 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/7.723, allocations: 87.92 kB / 2.875 GB, free: 21.23 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.602/13.32, allocations: 0.9738 GB / 3.849 GB, free: 29.76 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.306e-06/13.32, allocations: 0 / 3.849 GB, free: 29.76 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004836/13.33, allocations: 72.16 kB / 3.849 GB, free: 29.75 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.02701/13.35, allocations: 4.103 MB / 3.853 GB, free: 27.86 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/13.35, allocations: 10.41 kB / 3.853 GB, free: 27.86 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01016/13.36, allocations: 0.9122 MB / 3.854 GB, free: 27.71 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01002/13.37, allocations: 2.184 MB / 3.856 GB, free: 27.19 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003017/13.37, allocations: 97.38 kB / 3.856 GB, free: 27.19 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001203/13.37, allocations: 133.3 kB / 3.857 GB, free: 27.19 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008587/13.38, allocations: 2.787 MB / 3.859 GB, free: 27.17 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/13.39, allocations: 2.997 MB / 3.862 GB, free: 26.55 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001023/13.39, allocations: 9.781 kB / 3.862 GB, free: 26.54 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004332/13.39, allocations: 4.875 kB / 3.862 GB, free: 26.54 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003433/13.39, allocations: 180.4 kB / 3.862 GB, free: 26.53 MB / 474.7 MB 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.1597/13.55, allocations: 49.62 MB / 3.911 GB, free: 14.38 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005804/13.56, allocations: 2.331 MB / 3.913 GB, free: 12.81 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002844/13.56, allocations: 1.161 MB / 3.914 GB, free: 11.83 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4523/14.01, allocations: 17.18 MB / 3.931 GB, free: 42.19 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004177/14.02, allocations: 1.342 MB / 3.932 GB, free: 42.03 MB / 490.7 MB Notification: Performance of pre-optimization done (n=182): time 7.694e-06/14.02, allocations: 0 / 3.932 GB, free: 42.03 MB / 490.7 MB Notification: Performance of matching and sorting (n=202): time 0.06569/14.08, allocations: 10.31 MB / 3.942 GB, free: 40.45 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/14.08, allocations: 366.4 kB / 3.943 GB, free: 40.04 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002948/14.09, allocations: 1.153 MB / 3.944 GB, free: 39.86 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007479/14.09, allocations: 28.17 kB / 3.944 GB, free: 39.83 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001425/14.09, allocations: 1.071 MB / 3.945 GB, free: 39.47 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001264/14.09, allocations: 0.6579 MB / 3.946 GB, free: 39.13 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002768/14.09, allocations: 1.344 kB / 3.946 GB, free: 39.13 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001906/14.09, allocations: 398.1 kB / 3.946 GB, free: 38.82 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003032/14.09, allocations: 1.093 MB / 3.947 GB, free: 38.82 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003671/14.1, allocations: 1.618 MB / 3.949 GB, free: 38.27 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0196/14.12, allocations: 2.074 MB / 3.951 GB, free: 38.25 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-05/14.12, allocations: 9.328 kB / 3.951 GB, free: 38.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.0208/14.14, allocations: 3.984 MB / 3.955 GB, free: 38.02 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001305/14.14, allocations: 5.58 MB / 3.96 GB, free: 32.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-05/14.14, allocations: 19.73 kB / 3.96 GB, free: 32.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001379/14.14, allocations: 310.7 kB / 3.96 GB, free: 32.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004988/14.15, allocations: 0.6029 MB / 3.961 GB, free: 32.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002551/14.15, allocations: 3.136 MB / 3.964 GB, free: 29.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005597/14.16, allocations: 321.5 kB / 3.964 GB, free: 29.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000973/14.16, allocations: 126.4 kB / 3.964 GB, free: 29.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/14.16, allocations: 3.156 kB / 3.964 GB, free: 29.7 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01952/14.18, allocations: 3.516 MB / 3.968 GB, free: 29.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.985e-05/14.18, allocations: 19.09 kB / 3.968 GB, free: 29.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/14.18, allocations: 318.1 kB / 3.968 GB, free: 29.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004889/14.18, allocations: 0.5877 MB / 3.969 GB, free: 29.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002657/14.18, allocations: 3.132 MB / 3.972 GB, free: 26.97 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00502/14.19, allocations: 306.6 kB / 3.972 GB, free: 26.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000608/14.19, allocations: 129.9 kB / 3.972 GB, free: 26.96 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 29 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,junctionVolume.medium.phase,source.medium.phase,sink.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 (287): * Single equations (assignments): 280 * 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,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009857/14.19, allocations: 244.8 kB / 3.972 GB, free: 26.79 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01978/14.21, allocations: 3.396 MB / 3.976 GB, free: 26.56 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001246/14.21, allocations: 204.6 kB / 3.976 GB, free: 26.46 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03538/14.25, allocations: 8.031 MB / 3.984 GB, free: 25.84 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001345/14.25, allocations: 86.02 kB / 3.984 GB, free: 25.84 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.795e-05/14.25, allocations: 0 / 3.984 GB, free: 25.84 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03302/14.28, allocations: 6.933 MB / 3.991 GB, free: 24.99 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04998/14.33, allocations: 12.47 MB / 4.003 GB, free: 23.55 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.099e-05/14.33, allocations: 6.812 kB / 4.003 GB, free: 23.55 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004838/14.34, allocations: 455.4 kB / 4.003 GB, free: 23.55 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002361/14.34, allocations: 429.8 kB / 4.004 GB, free: 23.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005149/14.34, allocations: 47.47 kB / 4.004 GB, free: 23.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004451/14.34, allocations: 3.37 MB / 4.007 GB, free: 20.89 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-05/14.34, allocations: 8.562 kB / 4.007 GB, free: 20.89 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03785/14.38, allocations: 8.372 MB / 4.015 GB, free: 19.41 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003413/14.39, allocations: 0.7791 MB / 4.016 GB, free: 19.09 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001198/14.39, allocations: 29.38 kB / 4.016 GB, free: 19.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004881/14.39, allocations: 187.7 kB / 4.016 GB, free: 19.08 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009479/14.39, allocations: 181.3 kB / 4.016 GB, free: 19.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004955/14.39, allocations: 96.33 kB / 4.016 GB, free: 19.07 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003319/14.4, allocations: 1.076 MB / 4.018 GB, free: 18.93 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.81e-07/14.4, allocations: 2.844 kB / 4.018 GB, free: 18.93 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01849/14.41, allocations: 2.728 MB / 4.02 GB, free: 18.81 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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: 49 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse49.phase,$cse49.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase,junctionVolume.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (228): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 21 * 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.06017/14.47, allocations: 13.65 MB / 4.034 GB, free: 15.06 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01338/14.49, allocations: 5.251 MB / 4.039 GB, free: 14.74 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.562e-05/14.49, allocations: 3.281 kB / 4.039 GB, free: 14.74 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005998/14.49, allocations: 2.634 MB / 4.041 GB, free: 14.61 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008983/14.5, allocations: 0.9939 MB / 4.042 GB, free: 14.57 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2479/14.75, allocations: 62.78 MB / 4.103 GB, free: 7.988 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002992/14.75, allocations: 2.33 MB / 4.106 GB, free: 6.172 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.4708/15.23, allocations: 2.717 MB / 4.108 GB, free: 55.54 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003621/15.23, allocations: 1.357 MB / 4.11 GB, free: 55.54 MB / 0.4948 GB Notification: Performance of SimCode: time 1.713e-06/15.23, allocations: 0 / 4.11 GB, free: 55.54 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3022/15.53, allocations: 110.1 MB / 4.217 GB, free: 45.15 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002525/15.53, allocations: 185.2 kB / 4.217 GB, free: 44.95 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.364/23.9, allocations: 3.938 kB / 4.217 GB, free: 44.95 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat