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.981/1.981, allocations: 209.3 MB / 221.5 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.893e-05/3.897e-05, allocations: 4 kB / 273.2 MB, free: 156 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1087, allocations: 48.7 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.92/8.029, allocations: 2.567 GB / 2.881 GB, free: 3.215 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/8.029, allocations: 74.66 kB / 2.881 GB, free: 3.18 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721/13.75, allocations: 0.9821 GB / 3.863 GB, free: 26.4 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.385e-06/13.75, allocations: 0 / 3.863 GB, free: 26.4 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003985/13.75, allocations: 68.44 kB / 3.864 GB, free: 26.39 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.02018/13.77, allocations: 4.106 MB / 3.868 GB, free: 24.5 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/13.77, allocations: 8.5 kB / 3.868 GB, free: 24.5 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001468/13.77, allocations: 315.9 kB / 3.868 GB, free: 24.45 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01024/13.78, allocations: 0.9148 MB / 3.869 GB, free: 24.29 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009398/13.79, allocations: 2.186 MB / 3.871 GB, free: 23.77 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003959/13.79, allocations: 199.6 kB / 3.871 GB, free: 23.76 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001243/13.79, allocations: 224.2 kB / 3.871 GB, free: 23.76 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01352/13.81, allocations: 3.833 MB / 3.875 GB, free: 23.14 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/13.81, allocations: 10.53 kB / 3.875 GB, free: 23.13 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005609/13.81, allocations: 100.8 kB / 3.875 GB, free: 23.13 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003385/13.81, allocations: 165.4 kB / 3.875 GB, free: 23.12 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01237/13.82, allocations: 3.393 MB / 3.879 GB, free: 23.08 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.03435/13.86, allocations: 16.7 MB / 3.895 GB, free: 12.87 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009681/13.87, allocations: 3.012 MB / 3.898 GB, free: 12.27 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003387/13.87, allocations: 1.23 MB / 3.899 GB, free: 11.85 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06235/13.93, allocations: 18.59 MB / 3.917 GB, free: 15.34 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006588/13.94, allocations: 1.829 MB / 3.919 GB, free: 14.73 MB / 490.7 MB Notification: Performance of pre-optimization done (n=188): time 6.222e-06/13.94, allocations: 0 / 3.919 GB, free: 14.73 MB / 490.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: junctionVolume.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=208): time 0.04713/13.98, allocations: 10.89 MB / 3.93 GB, free: 8.457 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001632/13.98, allocations: 265.3 kB / 3.93 GB, free: 8.145 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003288/13.99, allocations: 1.422 MB / 3.931 GB, free: 6.82 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000628/13.99, allocations: 61.7 kB / 3.931 GB, free: 6.754 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001311/13.99, allocations: 1.059 MB / 3.932 GB, free: 5.793 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001139/13.99, allocations: 0.694 MB / 3.933 GB, free: 5.164 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002597/13.99, allocations: 48 kB / 3.933 GB, free: 5.117 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000234/13.99, allocations: 401.5 kB / 3.933 GB, free: 4.75 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003169/14, allocations: 1.114 MB / 3.935 GB, free: 3.742 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003658/14, allocations: 1.645 MB / 3.936 GB, free: 2.027 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003587/14, allocations: 1.392 MB / 3.938 GB, free: 0.8242 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.451e-05/14, allocations: 4 kB / 3.938 GB, free: 0.8203 MB / 490.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.01164/14.01, allocations: 3.52 MB / 3.941 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002492/14.02, allocations: 5.655 MB / 3.946 GB, free: 7.832 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.832e-05/14.02, allocations: 12 kB / 3.946 GB, free: 7.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001884/14.02, allocations: 332.3 kB / 3.947 GB, free: 7.539 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005316/14.02, allocations: 0.5992 MB / 3.947 GB, free: 7.035 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003001/14.03, allocations: 3.083 MB / 3.95 GB, free: 3.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005478/14.03, allocations: 338 kB / 3.951 GB, free: 3.668 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005295/14.03, allocations: 130.5 kB / 3.951 GB, free: 3.555 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/14.03, allocations: 7.125 kB / 3.951 GB, free: 3.551 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009503/14.04, allocations: 3.139 MB / 3.954 GB, free: 0.7656 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.241e-05/14.04, allocations: 12 kB / 3.954 GB, free: 0.7539 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00167/14.04, allocations: 329.8 kB / 3.954 GB, free: 488 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.4239/14.47, allocations: 0.5942 MB / 3.955 GB, free: 56.39 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003626/14.47, allocations: 3.085 MB / 3.958 GB, free: 53.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006906/14.48, allocations: 332.3 kB / 3.958 GB, free: 53.81 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000632/14.48, allocations: 118.9 kB / 3.958 GB, free: 53.81 MB / 0.4948 GB 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,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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,junctionVolume.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,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001174/14.48, allocations: 327.9 kB / 3.959 GB, free: 53.64 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001004/14.48, allocations: 225.7 kB / 3.959 GB, free: 53.64 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02832/14.51, allocations: 8.116 MB / 3.967 GB, free: 53.07 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002567/14.51, allocations: 92.91 kB / 3.967 GB, free: 53.07 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-05/14.51, allocations: 2.312 kB / 3.967 GB, free: 53.07 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02037/14.53, allocations: 7.029 MB / 3.974 GB, free: 52.12 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02834/14.56, allocations: 13 MB / 3.986 GB, free: 50.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.03e-05/14.56, allocations: 2.625 kB / 3.986 GB, free: 50.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003717/14.56, allocations: 484.4 kB / 3.987 GB, free: 50.66 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002326/14.57, allocations: 449.6 kB / 3.987 GB, free: 50.62 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004493/14.57, allocations: 79.3 kB / 3.987 GB, free: 50.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002268/14.57, allocations: 3.215 MB / 3.99 GB, free: 48.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.685e-06/14.57, allocations: 10.38 kB / 3.99 GB, free: 48.04 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02232/14.59, allocations: 8.092 MB / 3.998 GB, free: 46.61 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003298/14.59, allocations: 0.7888 MB / 3.999 GB, free: 46.33 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001032/14.6, allocations: 65.58 kB / 3.999 GB, free: 46.33 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004625/14.6, allocations: 233.2 kB / 3.999 GB, free: 46.32 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006911/14.6, allocations: 191.8 kB / 4 GB, free: 46.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003826/14.6, allocations: 100.6 kB / 4 GB, free: 46.31 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003414/14.6, allocations: 1.173 MB / 4.001 GB, free: 46.15 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.81e-07/14.6, allocations: 0 / 4.001 GB, free: 46.15 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01759/14.62, allocations: 2.888 MB / 4.004 GB, free: 46.15 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 57 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,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 (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * 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.04125/14.66, allocations: 12.92 MB / 4.016 GB, free: 42.71 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02023/14.68, allocations: 5.462 MB / 4.022 GB, free: 42.38 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.112e-05/14.68, allocations: 0 / 4.022 GB, free: 42.38 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009377/14.69, allocations: 2.871 MB / 4.024 GB, free: 42.24 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01275/14.71, allocations: 1.129 MB / 4.026 GB, free: 42.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8918/15.6, allocations: 127.5 MB / 4.15 GB, free: 53.79 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00433/15.6, allocations: 2.385 MB / 4.152 GB, free: 53.02 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01099/15.61, allocations: 2.699 MB / 4.155 GB, free: 52.98 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003669/15.62, allocations: 1.412 MB / 4.156 GB, free: 52.98 MB / 0.4948 GB Notification: Performance of SimCode: time 1.723e-06/15.62, allocations: 3.938 kB / 4.156 GB, free: 52.98 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2878/15.9, allocations: 132.4 MB / 4.286 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002523/15.91, allocations: 222.5 kB / 4.286 GB, free: 13 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.726/25.63, allocations: 4 kB / 4.286 GB, free: 13 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