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.355/2.355, allocations: 235.1 MB / 242.2 MB, free: 15.82 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.783e-05/2.798e-05, allocations: 4 kB / 299.5 MB, free: 6.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3772/0.3772, allocations: 54.85 MB / 354.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.639/8.016, allocations: 2.655 GB / 3.001 GB, free: 121.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003214/8.017, allocations: 86.59 kB / 3.001 GB, free: 121.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.263/12.28, allocations: 0.7947 GB / 3.796 GB, free: 32.66 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.467e-06/12.28, allocations: 3.328 kB / 3.796 GB, free: 32.66 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003999/12.28, allocations: 75.38 kB / 3.796 GB, free: 32.64 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.02122/12.3, allocations: 3.946 MB / 3.8 GB, free: 30.68 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/12.3, allocations: 11 kB / 3.8 GB, free: 30.68 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009252/12.31, allocations: 0.8362 MB / 3.801 GB, free: 30.54 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008888/12.32, allocations: 2.171 MB / 3.803 GB, free: 30.02 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000247/12.32, allocations: 90.97 kB / 3.803 GB, free: 30.01 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001094/12.32, allocations: 124.4 kB / 3.803 GB, free: 30.01 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008353/12.33, allocations: 2.874 MB / 3.806 GB, free: 30 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009903/12.34, allocations: 2.867 MB / 3.809 GB, free: 29.43 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.838e-05/12.34, allocations: 7.812 kB / 3.809 GB, free: 29.43 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005029/12.34, allocations: 7.156 kB / 3.809 GB, free: 29.43 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003441/12.34, allocations: 167.5 kB / 3.809 GB, free: 29.42 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.8223/13.16, allocations: 109 MB / 3.915 GB, free: 52.34 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003858/13.17, allocations: 1.583 MB / 3.917 GB, free: 52.31 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002193/13.17, allocations: 0.9852 MB / 3.918 GB, free: 52.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05089/13.22, allocations: 17.53 MB / 3.935 GB, free: 41.33 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00278/13.22, allocations: 1.224 MB / 3.936 GB, free: 41.18 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001636/13.22, allocations: 164.2 kB / 3.936 GB, free: 41.18 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=152): time 5.501e-06/13.22, allocations: 0 / 3.936 GB, free: 41.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=164): time 0.0299/13.25, allocations: 7.91 MB / 3.944 GB, free: 39.61 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001549/13.25, allocations: 0.5075 MB / 3.945 GB, free: 39.02 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002457/13.26, allocations: 1.19 MB / 3.946 GB, free: 38.85 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005659/13.26, allocations: 25.7 kB / 3.946 GB, free: 38.82 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001109/13.26, allocations: 1.034 MB / 3.947 GB, free: 38.48 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009191/13.26, allocations: 0.542 MB / 3.947 GB, free: 38.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002278/13.26, allocations: 0 / 3.947 GB, free: 38.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001488/13.26, allocations: 389.7 kB / 3.948 GB, free: 37.89 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002357/13.26, allocations: 1.038 MB / 3.949 GB, free: 37.89 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002719/13.27, allocations: 1.495 MB / 3.95 GB, free: 37.39 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01924/13.28, allocations: 2.855 MB / 3.953 GB, free: 37.36 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-05/13.28, allocations: 5.438 kB / 3.953 GB, free: 37.36 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02539/13.31, allocations: 4.707 MB / 3.957 GB, free: 37.15 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001014/13.31, allocations: 4.525 MB / 3.962 GB, free: 32.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.578e-05/13.31, allocations: 17.05 kB / 3.962 GB, free: 32.53 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006408/13.32, allocations: 0.805 MB / 3.963 GB, free: 32.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00395/13.32, allocations: 469.3 kB / 3.963 GB, free: 32.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004634/13.33, allocations: 3.322 MB / 3.966 GB, free: 30.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004254/13.33, allocations: 234.7 kB / 3.967 GB, free: 30.35 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005274/13.33, allocations: 106.2 kB / 3.967 GB, free: 30.35 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/13.33, allocations: 4.438 kB / 3.967 GB, free: 30.35 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0241/13.36, allocations: 4.203 MB / 3.971 GB, free: 30.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.733e-05/13.36, allocations: 12.34 kB / 3.971 GB, free: 30.22 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001807/13.36, allocations: 346.3 kB / 3.971 GB, free: 30.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004293/13.36, allocations: 499.4 kB / 3.972 GB, free: 30.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005232/13.37, allocations: 3.985 MB / 3.976 GB, free: 27.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00386/13.37, allocations: 208.4 kB / 3.976 GB, free: 27.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007654/13.37, allocations: 104.1 kB / 3.976 GB, free: 27.38 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,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.0008871/13.37, allocations: 234.1 kB / 3.976 GB, free: 27.21 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009788/13.38, allocations: 2.64 MB / 3.979 GB, free: 27.01 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008808/13.38, allocations: 190.8 kB / 3.979 GB, free: 26.91 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01501/13.4, allocations: 6.702 MB / 3.985 GB, free: 26.36 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001156/13.4, allocations: 67.89 kB / 3.985 GB, free: 26.36 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/13.4, allocations: 7.406 kB / 3.985 GB, free: 26.36 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01216/13.41, allocations: 5.659 MB / 3.991 GB, free: 25.62 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02025/13.43, allocations: 9.029 MB / 4 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-05/13.43, allocations: 3.719 kB / 4 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002649/13.43, allocations: 303.4 kB / 4 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006265/13.44, allocations: 2.334 MB / 4.002 GB, free: 24.91 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005506/13.44, allocations: 41.38 kB / 4.002 GB, free: 24.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005217/13.45, allocations: 4.436 MB / 4.007 GB, free: 22.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/13.45, allocations: 1.125 kB / 4.007 GB, free: 22.78 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01555/13.46, allocations: 7.119 MB / 4.014 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002666/13.46, allocations: 0.6915 MB / 4.014 GB, free: 21.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001119/13.47, allocations: 25.98 kB / 4.014 GB, free: 21.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003393/13.47, allocations: 156.8 kB / 4.015 GB, free: 21.79 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000559/13.47, allocations: 126.2 kB / 4.015 GB, free: 21.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002473/13.47, allocations: 67.39 kB / 4.015 GB, free: 21.79 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002439/13.47, allocations: 1.073 MB / 4.016 GB, free: 21.64 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.263e-06/13.47, allocations: 2.625 kB / 4.016 GB, free: 21.64 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01275/13.48, allocations: 2.701 MB / 4.018 GB, free: 21.52 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,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: 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.0295/13.51, allocations: 10.06 MB / 4.028 GB, free: 19.82 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01139/13.53, allocations: 5.019 MB / 4.033 GB, free: 19.27 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.796e-06/13.53, allocations: 1.875 kB / 4.033 GB, free: 19.27 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004495/13.53, allocations: 2.109 MB / 4.035 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00721/13.54, allocations: 0.7777 MB / 4.036 GB, free: 19.08 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02034/13.56, allocations: 6.73 MB / 4.043 GB, free: 17.41 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002125/13.56, allocations: 2.207 MB / 4.045 GB, free: 16.61 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008098/13.57, allocations: 2.422 MB / 4.047 GB, free: 16.17 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0026/13.57, allocations: 1.215 MB / 4.048 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of SimCode: time 1.873e-06/13.57, allocations: 0 / 4.048 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7246/14.3, allocations: 103.5 MB / 4.149 GB, free: 74.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002505/14.3, allocations: 186.9 kB / 4.149 GB, free: 74.71 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.648/21.94, allocations: 0 / 4.149 GB, free: 74.71 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