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.906/1.906, allocations: 209.3 MB / 221.5 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.635e-05/3.647e-05, allocations: 4 kB / 273.2 MB, free: 168 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1063, allocations: 48.71 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.81/7.916, allocations: 2.567 GB / 2.881 GB, free: 3.105 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/7.917, allocations: 77.64 kB / 2.881 GB, free: 3.066 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.541/13.46, allocations: 0.9821 GB / 3.863 GB, free: 26.26 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.073e-06/13.46, allocations: 0 / 3.863 GB, free: 26.26 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003467/13.46, allocations: 75.14 kB / 3.863 GB, free: 26.25 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.01983/13.48, allocations: 4.101 MB / 3.867 GB, free: 24.37 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/13.48, allocations: 11 kB / 3.868 GB, free: 24.37 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001084/13.48, allocations: 318.3 kB / 3.868 GB, free: 24.32 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009365/13.49, allocations: 0.9159 MB / 3.869 GB, free: 24.17 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009343/13.5, allocations: 2.183 MB / 3.871 GB, free: 23.65 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003492/13.5, allocations: 196.9 kB / 3.871 GB, free: 23.64 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001192/13.5, allocations: 225.7 kB / 3.871 GB, free: 23.64 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01239/13.51, allocations: 3.855 MB / 3.875 GB, free: 23 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.599e-05/13.51, allocations: 13.75 kB / 3.875 GB, free: 22.99 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004576/13.51, allocations: 96.08 kB / 3.875 GB, free: 22.99 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003111/13.51, allocations: 172.6 kB / 3.875 GB, free: 22.98 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01179/13.53, allocations: 3.432 MB / 3.879 GB, free: 22.91 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.03319/13.56, allocations: 16.7 MB / 3.895 GB, free: 12.7 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009689/13.57, allocations: 3.027 MB / 3.898 GB, free: 12.09 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003346/13.57, allocations: 1.223 MB / 3.899 GB, free: 11.68 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05812/13.63, allocations: 18.59 MB / 3.917 GB, free: 15.17 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006593/13.64, allocations: 1.84 MB / 3.919 GB, free: 14.55 MB / 490.7 MB Notification: Performance of pre-optimization done (n=188): time 6.852e-06/13.64, allocations: 0 / 3.919 GB, free: 14.55 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.06037/13.7, allocations: 10.9 MB / 3.93 GB, free: 8.406 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002628/13.7, allocations: 261.3 kB / 3.93 GB, free: 8.098 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005475/13.7, allocations: 1.424 MB / 3.931 GB, free: 6.77 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009323/13.7, allocations: 61.7 kB / 3.931 GB, free: 6.703 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00213/13.71, allocations: 1.051 MB / 3.932 GB, free: 5.746 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001879/13.71, allocations: 0.6945 MB / 3.933 GB, free: 5.121 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000472/13.71, allocations: 52 kB / 3.933 GB, free: 5.07 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003776/13.71, allocations: 401.1 kB / 3.934 GB, free: 4.703 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005711/13.71, allocations: 1.115 MB / 3.935 GB, free: 3.695 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006936/13.72, allocations: 1.661 MB / 3.936 GB, free: 1.961 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006636/13.73, allocations: 1.387 MB / 3.938 GB, free: 0.7617 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-05/13.73, allocations: 4 kB / 3.938 GB, free: 0.7578 MB / 490.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.02151/13.75, allocations: 3.59 MB / 3.941 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.004315/13.75, allocations: 5.646 MB / 3.947 GB, free: 7.816 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.329e-05/13.75, allocations: 15.2 kB / 3.947 GB, free: 7.805 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002081/13.76, allocations: 339.4 kB / 3.947 GB, free: 7.52 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005516/13.76, allocations: 0.6013 MB / 3.948 GB, free: 7.012 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003064/13.76, allocations: 3.082 MB / 3.951 GB, free: 3.906 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005327/13.77, allocations: 336.3 kB / 3.951 GB, free: 3.648 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004644/13.77, allocations: 122.8 kB / 3.951 GB, free: 3.539 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/13.77, allocations: 8 kB / 3.951 GB, free: 3.531 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01062/13.78, allocations: 3.182 MB / 3.954 GB, free: 0.7031 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.883e-05/13.78, allocations: 12 kB / 3.954 GB, free: 0.6914 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001678/13.78, allocations: 327.6 kB / 3.954 GB, free: 428 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.4204/14.2, allocations: 0.59 MB / 3.955 GB, free: 56.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002681/14.21, allocations: 3.092 MB / 3.958 GB, free: 53.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005082/14.21, allocations: 333.3 kB / 3.958 GB, free: 53.67 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004055/14.21, allocations: 118.5 kB / 3.958 GB, free: 53.67 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.0009022/14.21, allocations: 325.9 kB / 3.959 GB, free: 53.5 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006396/14.21, allocations: 222.8 kB / 3.959 GB, free: 53.5 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01858/14.23, allocations: 8.116 MB / 3.967 GB, free: 52.93 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001499/14.23, allocations: 92.94 kB / 3.967 GB, free: 52.93 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-05/14.23, allocations: 3.656 kB / 3.967 GB, free: 52.93 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01537/14.25, allocations: 7.039 MB / 3.974 GB, free: 51.98 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02757/14.28, allocations: 13.01 MB / 3.987 GB, free: 50.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.098e-05/14.28, allocations: 6.844 kB / 3.987 GB, free: 50.52 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003568/14.28, allocations: 483.7 kB / 3.987 GB, free: 50.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002317/14.28, allocations: 450.8 kB / 3.987 GB, free: 50.48 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003307/14.28, allocations: 81.84 kB / 3.988 GB, free: 50.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002335/14.28, allocations: 3.22 MB / 3.991 GB, free: 47.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.927e-06/14.28, allocations: 10.19 kB / 3.991 GB, free: 47.89 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01532/14.3, allocations: 8.091 MB / 3.999 GB, free: 46.46 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002675/14.3, allocations: 0.7949 MB / 3.999 GB, free: 46.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007533/14.3, allocations: 63.67 kB / 3.999 GB, free: 46.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003322/14.31, allocations: 235 kB / 4 GB, free: 46.18 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000523/14.31, allocations: 192.2 kB / 4 GB, free: 46.17 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002733/14.31, allocations: 94.41 kB / 4 GB, free: 46.17 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002541/14.31, allocations: 1.178 MB / 4.001 GB, free: 46.01 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.51e-07/14.31, allocations: 0 / 4.001 GB, free: 46.01 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0143/14.32, allocations: 2.884 MB / 4.004 GB, free: 46.01 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.03305/14.36, allocations: 12.89 MB / 4.016 GB, free: 42.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01601/14.37, allocations: 5.536 MB / 4.022 GB, free: 42.25 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.564e-05/14.37, allocations: 1.5 kB / 4.022 GB, free: 42.25 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00697/14.38, allocations: 2.89 MB / 4.025 GB, free: 42.11 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01369/14.39, allocations: 1.126 MB / 4.026 GB, free: 42.09 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8258/15.22, allocations: 127.6 MB / 4.15 GB, free: 53.66 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003229/15.22, allocations: 2.384 MB / 4.153 GB, free: 52.89 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01123/15.23, allocations: 2.704 MB / 4.155 GB, free: 52.85 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003632/15.24, allocations: 1.406 MB / 4.157 GB, free: 52.85 MB / 0.4948 GB Notification: Performance of SimCode: time 1.824e-06/15.24, allocations: 0 / 4.157 GB, free: 52.85 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3782/15.62, allocations: 132.3 MB / 4.286 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000288/15.62, allocations: 227.1 kB / 4.286 GB, free: 13.03 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.336/24.95, allocations: 4 kB / 4.286 GB, free: 13.03 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