Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.458/2.458, allocations: 235 MB / 247.2 MB, free: 14.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.016e-05/4.028e-05, allocations: 4 kB / 305 MB, free: 5.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4014/0.4015, allocations: 54.85 MB / 359.9 MB, free: 3.086 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.954/8.355, allocations: 2.673 GB / 3.024 GB, free: 86.34 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/8.355, allocations: 72.41 kB / 3.024 GB, free: 86.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.23/12.59, allocations: 0.7985 GB / 3.823 GB, free: 26.75 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.144e-06/12.59, allocations: 0 / 3.823 GB, free: 26.75 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000351/12.59, allocations: 60.98 kB / 3.823 GB, free: 26.73 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.02/12.61, allocations: 3.651 MB / 3.826 GB, free: 24.71 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/12.61, allocations: 10.03 kB / 3.826 GB, free: 24.71 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001277/12.61, allocations: 265.5 kB / 3.826 GB, free: 24.57 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008558/12.62, allocations: 0.7885 MB / 3.827 GB, free: 24.36 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008518/12.62, allocations: 1.987 MB / 3.829 GB, free: 23.45 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003142/12.62, allocations: 164.7 kB / 3.829 GB, free: 23.39 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009892/12.63, allocations: 180.2 kB / 3.829 GB, free: 23.34 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01124/12.64, allocations: 3.318 MB / 3.833 GB, free: 21.95 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.294e-05/12.64, allocations: 9.594 kB / 3.833 GB, free: 21.94 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004229/12.64, allocations: 77.19 kB / 3.833 GB, free: 21.89 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002928/12.64, allocations: 148.3 kB / 3.833 GB, free: 21.87 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01134/12.65, allocations: 3.051 MB / 3.836 GB, free: 20.89 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.02791/12.68, allocations: 13.67 MB / 3.849 GB, free: 7.879 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006602/12.68, allocations: 1.96 MB / 3.851 GB, free: 6.219 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002614/12.69, allocations: 1.028 MB / 3.852 GB, free: 5.297 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06235/12.75, allocations: 18.9 MB / 3.871 GB, free: 1.996 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006658/12.76, allocations: 1.604 MB / 3.872 GB, free: 376 kB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001844/12.76, allocations: 177.2 kB / 3.872 GB, free: 200 kB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.612e-06/12.76, allocations: 0 / 3.872 GB, free: 200 kB / 0.5105 GB Notification: Performance of matching and sorting (n=167): time 0.4527/13.21, allocations: 6.847 MB / 3.879 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/13.21, allocations: 259.6 kB / 3.879 GB, free: 44.83 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003394/13.21, allocations: 1.262 MB / 3.881 GB, free: 44.66 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006487/13.21, allocations: 54.8 kB / 3.881 GB, free: 44.62 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001131/13.22, allocations: 0.8897 MB / 3.881 GB, free: 44.35 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001089/13.22, allocations: 0.5464 MB / 3.882 GB, free: 44.07 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002317/13.22, allocations: 38.62 kB / 3.882 GB, free: 44.07 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001992/13.22, allocations: 377.7 kB / 3.882 GB, free: 43.77 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002912/13.22, allocations: 0.9169 MB / 3.883 GB, free: 43.76 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0038/13.22, allocations: 1.361 MB / 3.885 GB, free: 43.33 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003703/13.23, allocations: 1.164 MB / 3.886 GB, free: 43.24 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.478e-05/13.23, allocations: 5.141 kB / 3.886 GB, free: 43.24 MB / 0.5105 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01073/13.24, allocations: 2.909 MB / 3.889 GB, free: 42.97 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001034/13.24, allocations: 4.361 MB / 3.893 GB, free: 38.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.978e-05/13.24, allocations: 11.19 kB / 3.893 GB, free: 38.37 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004691/13.24, allocations: 0.5157 MB / 3.893 GB, free: 38.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003991/13.25, allocations: 455.9 kB / 3.894 GB, free: 38.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002791/13.25, allocations: 2.71 MB / 3.896 GB, free: 36.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004546/13.26, allocations: 259.8 kB / 3.897 GB, free: 36.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006357/13.26, allocations: 102.5 kB / 3.897 GB, free: 36.25 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/13.26, allocations: 3.688 kB / 3.897 GB, free: 36.25 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007272/13.26, allocations: 2.541 MB / 3.899 GB, free: 36.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.621e-05/13.26, allocations: 11.47 kB / 3.899 GB, free: 36.11 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009081/13.27, allocations: 195.7 kB / 3.9 GB, free: 36.09 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003808/13.27, allocations: 468.4 kB / 3.9 GB, free: 36.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001378/13.27, allocations: 1.875 MB / 3.902 GB, free: 34.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004155/13.27, allocations: 255.9 kB / 3.902 GB, free: 34.53 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004993/13.28, allocations: 96.16 kB / 3.902 GB, free: 34.53 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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: 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008444/13.28, allocations: 299.1 kB / 3.902 GB, free: 34.36 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006269/13.28, allocations: 193.6 kB / 3.903 GB, free: 34.26 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01381/13.29, allocations: 7.343 MB / 3.91 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.185e-05/13.29, allocations: 79.88 kB / 3.91 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/13.29, allocations: 2.844 kB / 3.91 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01085/13.3, allocations: 6.417 MB / 3.916 GB, free: 32.64 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02344/13.33, allocations: 11.07 MB / 3.927 GB, free: 31.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.159e-05/13.33, allocations: 3.281 kB / 3.927 GB, free: 31.55 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002935/13.33, allocations: 353.1 kB / 3.927 GB, free: 31.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004221/13.33, allocations: 1.311 MB / 3.929 GB, free: 31.48 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005372/13.33, allocations: 67.81 kB / 3.929 GB, free: 31.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002989/13.34, allocations: 3.198 MB / 3.932 GB, free: 29.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/13.34, allocations: 10.84 kB / 3.932 GB, free: 29.39 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01349/13.35, allocations: 7.146 MB / 3.939 GB, free: 28.13 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002349/13.35, allocations: 0.703 MB / 3.939 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006881/13.35, allocations: 57.67 kB / 3.939 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002886/13.36, allocations: 194.3 kB / 3.94 GB, free: 27.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004828/13.36, allocations: 147.6 kB / 3.94 GB, free: 27.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002394/13.36, allocations: 73.06 kB / 3.94 GB, free: 27.79 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002259/13.36, allocations: 1.068 MB / 3.941 GB, free: 27.63 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.31e-07/13.36, allocations: 3.938 kB / 3.941 GB, free: 27.63 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01261/13.37, allocations: 2.551 MB / 3.943 GB, free: 27.53 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02954/13.4, allocations: 11.17 MB / 3.954 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01246/13.41, allocations: 4.665 MB / 3.959 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.491e-05/13.41, allocations: 2.031 kB / 3.959 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005889/13.42, allocations: 2.442 MB / 3.961 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007909/13.43, allocations: 0.8542 MB / 3.962 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.825/14.25, allocations: 128.7 MB / 4.088 GB, free: 72.41 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00362/14.26, allocations: 2.182 MB / 4.09 GB, free: 71.65 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.009163/14.27, allocations: 2.414 MB / 4.092 GB, free: 71.62 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002784/14.27, allocations: 1.201 MB / 4.093 GB, free: 71.62 MB / 0.5417 GB Notification: Performance of SimCode: time 1.463e-06/14.27, allocations: 0 / 4.093 GB, free: 71.62 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3288/14.6, allocations: 113.8 MB / 4.205 GB, free: 59.06 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002579/14.6, allocations: 225.9 kB / 4.205 GB, free: 58.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.903/22.5, allocations: 7.094 kB / 4.205 GB, free: 58.8 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat