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.35/2.35, allocations: 235.1 MB / 242.2 MB, free: 15.68 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.666e-05/3.663e-05, allocations: 11.88 kB / 299.5 MB, free: 6.348 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3738/0.3739, allocations: 54.87 MB / 354.4 MB, free: 24 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.801/8.175, allocations: 2.655 GB / 3.001 GB, free: 108.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/8.175, allocations: 74.22 kB / 3.001 GB, free: 108.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.204/12.38, allocations: 0.7879 GB / 3.789 GB, free: 30.08 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.134e-06/12.38, allocations: 0 / 3.789 GB, free: 30.08 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003354/12.38, allocations: 77.83 kB / 3.789 GB, free: 30.06 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.01988/12.4, allocations: 3.949 MB / 3.793 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/12.4, allocations: 11.31 kB / 3.793 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008781/12.41, allocations: 0.8338 MB / 3.794 GB, free: 27.93 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008457/12.42, allocations: 2.097 MB / 3.796 GB, free: 27.41 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002697/12.42, allocations: 88.55 kB / 3.796 GB, free: 27.41 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001065/12.42, allocations: 114.3 kB / 3.796 GB, free: 27.41 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008274/12.43, allocations: 2.885 MB / 3.799 GB, free: 27.39 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009029/12.44, allocations: 2.867 MB / 3.802 GB, free: 26.83 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.873e-05/12.44, allocations: 7.656 kB / 3.802 GB, free: 26.82 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003894/12.44, allocations: 5.75 kB / 3.802 GB, free: 26.82 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003112/12.44, allocations: 162 kB / 3.802 GB, free: 26.82 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.8681/13.3, allocations: 108.9 MB / 3.908 GB, free: 47.26 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003895/13.31, allocations: 1.585 MB / 3.91 GB, free: 47.23 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002423/13.31, allocations: 0.9852 MB / 3.911 GB, free: 47.22 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05246/13.36, allocations: 17.54 MB / 3.928 GB, free: 35.98 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00291/13.37, allocations: 1.227 MB / 3.929 GB, free: 35.82 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001757/13.37, allocations: 163.9 kB / 3.929 GB, free: 35.82 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=152): time 6.442e-06/13.37, allocations: 0 / 3.929 GB, free: 35.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=164): time 0.03424/13.4, allocations: 7.905 MB / 3.937 GB, free: 34.23 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000183/13.4, allocations: 0.5038 MB / 3.938 GB, free: 33.64 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002674/13.41, allocations: 1.197 MB / 3.939 GB, free: 33.47 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006094/13.41, allocations: 30.61 kB / 3.939 GB, free: 33.44 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001194/13.41, allocations: 1.034 MB / 3.94 GB, free: 33.09 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00106/13.41, allocations: 0.5375 MB / 3.94 GB, free: 32.81 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002409/13.41, allocations: 0 / 3.94 GB, free: 32.81 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001672/13.41, allocations: 391.4 kB / 3.941 GB, free: 32.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002453/13.41, allocations: 1.04 MB / 3.942 GB, free: 32.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003002/13.41, allocations: 1.494 MB / 3.943 GB, free: 31.99 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01963/13.43, allocations: 2.854 MB / 3.946 GB, free: 31.92 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-05/13.43, allocations: 3.812 kB / 3.946 GB, free: 31.92 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02502/13.46, allocations: 4.703 MB / 3.95 GB, free: 31.67 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001035/13.46, allocations: 4.522 MB / 3.955 GB, free: 27.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.464e-05/13.46, allocations: 14.47 kB / 3.955 GB, free: 27.03 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006248/13.47, allocations: 0.8061 MB / 3.956 GB, free: 26.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003831/13.47, allocations: 472.9 kB / 3.956 GB, free: 26.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004446/13.47, allocations: 3.328 MB / 3.959 GB, free: 24.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004212/13.48, allocations: 232.1 kB / 3.96 GB, free: 24.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004176/13.48, allocations: 110 kB / 3.96 GB, free: 24.85 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/13.48, allocations: 7.062 kB / 3.96 GB, free: 24.85 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02359/13.5, allocations: 4.2 MB / 3.964 GB, free: 24.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.378e-05/13.5, allocations: 14.92 kB / 3.964 GB, free: 24.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/13.5, allocations: 335.6 kB / 3.964 GB, free: 24.69 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004069/13.51, allocations: 0.4918 MB / 3.965 GB, free: 24.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005327/13.51, allocations: 3.989 MB / 3.969 GB, free: 21.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003776/13.52, allocations: 208.1 kB / 3.969 GB, free: 21.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000324/13.52, allocations: 102.2 kB / 3.969 GB, free: 21.88 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,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.0008135/13.52, allocations: 241.1 kB / 3.969 GB, free: 21.7 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009209/13.53, allocations: 2.626 MB / 3.972 GB, free: 21.51 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000757/13.53, allocations: 201.1 kB / 3.972 GB, free: 21.41 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01431/13.54, allocations: 6.696 MB / 3.978 GB, free: 20.87 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.104e-05/13.54, allocations: 75.45 kB / 3.978 GB, free: 20.86 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/13.54, allocations: 3.375 kB / 3.978 GB, free: 20.86 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01125/13.56, allocations: 5.657 MB / 3.984 GB, free: 20.13 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01994/13.58, allocations: 9.036 MB / 3.993 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.363e-05/13.58, allocations: 0 / 3.993 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002559/13.58, allocations: 298.9 kB / 3.993 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006156/13.58, allocations: 2.346 MB / 3.995 GB, free: 19.41 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005058/13.58, allocations: 45.91 kB / 3.995 GB, free: 19.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00529/13.59, allocations: 4.431 MB / 4 GB, free: 17.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/13.59, allocations: 3.375 kB / 4 GB, free: 17.28 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01522/13.61, allocations: 7.115 MB / 4.007 GB, free: 16.61 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002511/13.61, allocations: 0.6922 MB / 4.007 GB, free: 16.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007393/13.61, allocations: 22.36 kB / 4.007 GB, free: 16.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002572/13.61, allocations: 154.2 kB / 4.008 GB, free: 16.29 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003921/13.61, allocations: 126.8 kB / 4.008 GB, free: 16.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002155/13.61, allocations: 66.67 kB / 4.008 GB, free: 16.29 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002161/13.61, allocations: 1.077 MB / 4.009 GB, free: 16.14 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.824e-06/13.61, allocations: 5.875 kB / 4.009 GB, free: 16.14 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01287/13.63, allocations: 2.709 MB / 4.011 GB, free: 16.02 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (151): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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.02978/13.66, allocations: 10.04 MB / 4.021 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01138/13.67, allocations: 5.01 MB / 4.026 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/13.67, allocations: 1.688 kB / 4.026 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004442/13.67, allocations: 2.11 MB / 4.028 GB, free: 13.63 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007211/13.68, allocations: 0.7751 MB / 4.029 GB, free: 13.58 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02023/13.7, allocations: 6.739 MB / 4.036 GB, free: 9.418 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002538/13.7, allocations: 2.215 MB / 4.038 GB, free: 7.773 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008313/13.71, allocations: 2.418 MB / 4.04 GB, free: 6.359 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002697/13.71, allocations: 1.206 MB / 4.041 GB, free: 5.699 MB / 0.5261 GB Notification: Performance of SimCode: time 2.014e-06/13.71, allocations: 0 / 4.041 GB, free: 5.699 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7193/14.43, allocations: 104.7 MB / 4.143 GB, free: 73.84 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003245/14.43, allocations: 179.4 kB / 4.144 GB, free: 73.64 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.641/22.07, allocations: 4 kB / 4.144 GB, free: 73.64 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