Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.435/2.435, allocations: 235 MB / 247.2 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.603e-05/3.606e-05, allocations: 0 / 305 MB, free: 5.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.413/0.4131, allocations: 54.85 MB / 359.9 MB, free: 2.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.074/8.487, allocations: 2.656 GB / 3.007 GB, free: 102.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/8.488, allocations: 73.66 kB / 3.007 GB, free: 102.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.349/12.84, allocations: 0.8016 GB / 3.809 GB, free: 24.49 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.465e-06/12.84, allocations: 0 / 3.809 GB, free: 24.49 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003526/12.84, allocations: 74.23 kB / 3.809 GB, free: 24.47 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.02012/12.86, allocations: 3.944 MB / 3.813 GB, free: 22.49 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/12.86, allocations: 7.25 kB / 3.813 GB, free: 22.49 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001137/12.86, allocations: 294.4 kB / 3.813 GB, free: 22.44 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0087/12.87, allocations: 0.838 MB / 3.814 GB, free: 22.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008822/12.88, allocations: 2.161 MB / 3.816 GB, free: 21.79 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003256/12.88, allocations: 178.4 kB / 3.816 GB, free: 21.78 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001084/12.88, allocations: 197.8 kB / 3.816 GB, free: 21.78 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01239/12.89, allocations: 3.679 MB / 3.82 GB, free: 21.21 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.404e-05/12.89, allocations: 10.66 kB / 3.82 GB, free: 21.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004595/12.89, allocations: 88.77 kB / 3.82 GB, free: 21.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003168/12.89, allocations: 164 kB / 3.82 GB, free: 21.2 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/12.9, allocations: 3.389 MB / 3.824 GB, free: 20.73 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.032/12.94, allocations: 14.76 MB / 3.838 GB, free: 9.844 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007035/12.94, allocations: 2.115 MB / 3.84 GB, free: 9.117 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002646/12.94, allocations: 1.063 MB / 3.841 GB, free: 8.703 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05923/13, allocations: 18.96 MB / 3.86 GB, free: 10.57 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005854/13.01, allocations: 1.669 MB / 3.861 GB, free: 9.262 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001803/13.01, allocations: 192.5 kB / 3.861 GB, free: 9.086 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 6.642e-06/13.01, allocations: 0 / 3.861 GB, free: 9.086 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.03177/13.04, allocations: 7.338 MB / 3.869 GB, free: 2.836 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002506/13.04, allocations: 410.9 kB / 3.869 GB, free: 2.344 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00402/13.05, allocations: 1.482 MB / 3.87 GB, free: 1.02 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006748/13.05, allocations: 61.7 kB / 3.871 GB, free: 0.9531 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001497/13.05, allocations: 0.9873 MB / 3.871 GB, free: 56 kB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001392/13.05, allocations: 0.5863 MB / 3.872 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003241/13.05, allocations: 40 kB / 3.872 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002941/13.05, allocations: 387 kB / 3.872 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003557/13.06, allocations: 1.064 MB / 3.874 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004103/13.06, allocations: 1.521 MB / 3.875 GB, free: 12.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003958/13.06, allocations: 1.328 MB / 3.876 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.632e-05/13.06, allocations: 3.781 kB / 3.876 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01086/13.08, allocations: 3.269 MB / 3.879 GB, free: 8.562 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001925/13.08, allocations: 4.579 MB / 3.884 GB, free: 3.598 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.052e-05/13.08, allocations: 19.89 kB / 3.884 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008991/13.09, allocations: 0.9564 MB / 3.885 GB, free: 2.879 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004149/13.09, allocations: 469.9 kB / 3.885 GB, free: 2.488 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4292/13.52, allocations: 3.156 MB / 3.888 GB, free: 54.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004216/13.52, allocations: 239.1 kB / 3.889 GB, free: 54.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005653/13.52, allocations: 107.7 kB / 3.889 GB, free: 54.93 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/13.52, allocations: 3.438 kB / 3.889 GB, free: 54.93 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009975/13.53, allocations: 2.941 MB / 3.892 GB, free: 54.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.964e-05/13.53, allocations: 14.94 kB / 3.892 GB, free: 54.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002228/13.54, allocations: 357 kB / 3.892 GB, free: 54.78 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004322/13.54, allocations: 0.4888 MB / 3.892 GB, free: 54.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005778/13.55, allocations: 4.041 MB / 3.896 GB, free: 51.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004001/13.55, allocations: 236.8 kB / 3.897 GB, free: 51.99 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004676/13.55, allocations: 102.8 kB / 3.897 GB, free: 51.99 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,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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_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.0008629/13.55, allocations: 301.7 kB / 3.897 GB, free: 51.82 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006633/13.55, allocations: 212 kB / 3.897 GB, free: 51.82 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01791/13.57, allocations: 7.736 MB / 3.905 GB, free: 51.25 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001403/13.57, allocations: 81.73 kB / 3.905 GB, free: 51.25 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/13.57, allocations: 1.938 kB / 3.905 GB, free: 51.25 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01397/13.59, allocations: 6.782 MB / 3.911 GB, free: 50.31 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02264/13.61, allocations: 10.78 MB / 3.922 GB, free: 49.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-05/13.61, allocations: 10.75 kB / 3.922 GB, free: 49.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002934/13.61, allocations: 336 kB / 3.922 GB, free: 49.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008194/13.62, allocations: 2.502 MB / 3.925 GB, free: 49.57 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006093/13.62, allocations: 63.95 kB / 3.925 GB, free: 49.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004519/13.62, allocations: 4.094 MB / 3.929 GB, free: 47.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/13.62, allocations: 0 / 3.929 GB, free: 47.48 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01525/13.64, allocations: 7.682 MB / 3.936 GB, free: 46.79 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002609/13.64, allocations: 0.7439 MB / 3.937 GB, free: 46.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008872/13.64, allocations: 59.61 kB / 3.937 GB, free: 46.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003583/13.65, allocations: 197.3 kB / 3.937 GB, free: 46.52 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006483/13.65, allocations: 143.2 kB / 3.937 GB, free: 46.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002626/13.65, allocations: 73.19 kB / 3.938 GB, free: 46.52 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00273/13.65, allocations: 1.235 MB / 3.939 GB, free: 46.36 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.012e-06/13.65, allocations: 0 / 3.939 GB, free: 46.36 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01407/13.66, allocations: 2.831 MB / 3.941 GB, free: 46.34 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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.02912/13.69, allocations: 10.25 MB / 3.952 GB, free: 44.96 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01302/13.71, allocations: 5.293 MB / 3.957 GB, free: 44.39 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.904e-06/13.71, allocations: 0 / 3.957 GB, free: 44.39 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005575/13.71, allocations: 2.354 MB / 3.959 GB, free: 44.25 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008281/13.72, allocations: 0.8992 MB / 3.96 GB, free: 44.22 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8032/14.52, allocations: 129.1 MB / 4.086 GB, free: 69.04 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004038/14.53, allocations: 2.298 MB / 4.088 GB, free: 68.27 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01003/14.54, allocations: 2.38 MB / 4.09 GB, free: 68.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002875/14.54, allocations: 1.28 MB / 4.092 GB, free: 68.25 MB / 0.5417 GB Notification: Performance of SimCode: time 2.505e-06/14.54, allocations: 0 / 4.092 GB, free: 68.25 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2795/14.82, allocations: 123.5 MB / 4.212 GB, free: 53.06 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002896/14.82, allocations: 232.9 kB / 4.213 GB, free: 52.75 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.639/23.46, allocations: 0 / 4.213 GB, free: 52.75 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat