Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.372/2.372, allocations: 235 MB / 247.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.061e-05/4.072e-05, allocations: 4.781 kB / 305 MB, free: 5.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4071/0.4072, allocations: 54.85 MB / 359.9 MB, free: 2.785 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.914/2.321, allocations: 0.6877 GB / 1.039 GB, free: 40.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/2.322, allocations: 80.89 kB / 1.039 GB, free: 40.77 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.868/6.189, allocations: 0.6141 GB / 1.653 GB, free: 36.52 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.973e-06/6.189, allocations: 0 / 1.653 GB, free: 36.52 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000398/6.19, allocations: 67.34 kB / 1.653 GB, free: 36.52 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01565/6.206, allocations: 3.19 MB / 1.657 GB, free: 35.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/6.206, allocations: 10.14 kB / 1.657 GB, free: 35.5 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001322/6.207, allocations: 255.7 kB / 1.657 GB, free: 35.45 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005423/6.212, allocations: 457 kB / 1.657 GB, free: 35.32 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009716/6.222, allocations: 1.999 MB / 1.659 GB, free: 34.97 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002655/6.222, allocations: 137.6 kB / 1.659 GB, free: 34.97 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001064/6.224, allocations: 172.5 kB / 1.659 GB, free: 34.97 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008961/6.233, allocations: 2.702 MB / 1.662 GB, free: 34.51 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.738e-05/6.233, allocations: 7.562 kB / 1.662 GB, free: 34.51 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005103/6.233, allocations: 80.66 kB / 1.662 GB, free: 34.51 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003761/6.234, allocations: 151 kB / 1.662 GB, free: 34.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008499/6.242, allocations: 2.273 MB / 1.665 GB, free: 34.49 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.02797/6.27, allocations: 11.53 MB / 1.676 GB, free: 28.34 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005178/6.275, allocations: 1.826 MB / 1.678 GB, free: 28.01 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003351/6.279, allocations: 1.09 MB / 1.679 GB, free: 28 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00162/6.28, allocations: 466.1 kB / 1.679 GB, free: 27.71 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00336/6.284, allocations: 1.197 MB / 1.68 GB, free: 27.59 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=172): time 6.483e-06/6.284, allocations: 0 / 1.68 GB, free: 27.59 MB / 0.4948 GB 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: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.05809/6.342, allocations: 9.518 MB / 1.69 GB, free: 26.4 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/6.342, allocations: 257.7 kB / 1.69 GB, free: 26.12 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003622/6.346, allocations: 1.382 MB / 1.691 GB, free: 25.95 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007369/6.347, allocations: 65.48 kB / 1.691 GB, free: 25.91 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009497/6.348, allocations: 0.9203 MB / 1.692 GB, free: 25.56 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001085/6.349, allocations: 0.6764 MB / 1.693 GB, free: 25.13 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002654/6.349, allocations: 48.28 kB / 1.693 GB, free: 25.13 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001607/6.349, allocations: 390.6 kB / 1.693 GB, free: 24.83 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002709/6.352, allocations: 1.045 MB / 1.694 GB, free: 24.82 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003013/6.355, allocations: 1.524 MB / 1.696 GB, free: 24.33 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003167/6.358, allocations: 1.327 MB / 1.697 GB, free: 24.25 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.359e-05/6.358, allocations: 3.719 kB / 1.697 GB, free: 24.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=288) (initialization): time 0.008794/6.367, allocations: 3.233 MB / 1.7 GB, free: 23.95 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00111/6.368, allocations: 4.843 MB / 1.705 GB, free: 18.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.312e-05/6.368, allocations: 11.78 kB / 1.705 GB, free: 18.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/6.369, allocations: 302.4 kB / 1.705 GB, free: 18.84 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00483/6.374, allocations: 0.5685 MB / 1.706 GB, free: 18.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002254/6.377, allocations: 3.006 MB / 1.709 GB, free: 16.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004578/6.381, allocations: 217.9 kB / 1.709 GB, free: 16.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009472/6.382, allocations: 210 kB / 1.709 GB, free: 16.23 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/6.382, allocations: 7.234 kB / 1.709 GB, free: 16.23 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008437/6.391, allocations: 2.952 MB / 1.712 GB, free: 16.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-05/6.391, allocations: 13.91 kB / 1.712 GB, free: 16.08 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/6.392, allocations: 305.6 kB / 1.712 GB, free: 16.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004753/6.397, allocations: 0.5614 MB / 1.713 GB, free: 16.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002974/6.4, allocations: 2.998 MB / 1.716 GB, free: 29.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004604/6.404, allocations: 217.8 kB / 1.716 GB, free: 29.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009907/6.405, allocations: 209.7 kB / 1.716 GB, free: 29.44 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 258 * 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 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00115/6.406, allocations: 313.1 kB / 1.716 GB, free: 29.26 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008043/6.407, allocations: 219 kB / 1.717 GB, free: 29.15 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0132/6.42, allocations: 3.743 MB / 1.72 GB, free: 28.89 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/6.421, allocations: 18.59 kB / 1.72 GB, free: 28.89 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/6.421, allocations: 0 / 1.72 GB, free: 28.89 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007922/6.428, allocations: 2.88 MB / 1.723 GB, free: 28.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02172/6.45, allocations: 6.997 MB / 1.73 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.172e-05/6.45, allocations: 8.625 kB / 1.73 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004045/6.454, allocations: 459.2 kB / 1.73 GB, free: 26.99 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001785/6.456, allocations: 317.1 kB / 1.731 GB, free: 26.95 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000834/6.457, allocations: 110.8 kB / 1.731 GB, free: 26.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00387/6.461, allocations: 3.747 MB / 1.735 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/6.461, allocations: 12.34 kB / 1.735 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01193/6.473, allocations: 4.882 MB / 1.739 GB, free: 22.45 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002425/6.475, allocations: 0.5547 MB / 1.74 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009027/6.476, allocations: 64.67 kB / 1.74 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003215/6.48, allocations: 134.1 kB / 1.74 GB, free: 22.22 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000662/6.48, allocations: 184.1 kB / 1.74 GB, free: 22.21 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004814/6.481, allocations: 181.7 kB / 1.74 GB, free: 22.21 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00234/6.483, allocations: 1.05 MB / 1.741 GB, free: 22.09 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.92e-07/6.483, allocations: 0 / 1.741 GB, free: 22.09 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01337/6.497, allocations: 2.057 MB / 1.743 GB, free: 21.84 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T,junctionVolume.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (205): * Single equations (assignments): 198 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03138/6.528, allocations: 9.48 MB / 1.753 GB, free: 18.07 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.018/6.546, allocations: 4.592 MB / 1.757 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.231e-05/6.546, allocations: 3.25 kB / 1.757 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00509/6.551, allocations: 1.625 MB / 1.759 GB, free: 17.51 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009059/6.56, allocations: 1.056 MB / 1.76 GB, free: 17.49 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02566/6.586, allocations: 6.729 MB / 1.766 GB, free: 16.16 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001809/6.588, allocations: 1.761 MB / 1.768 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01172/6.6, allocations: 1.58 MB / 1.77 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003631/6.603, allocations: 1.02 MB / 1.771 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of SimCode: time 1.582e-06/6.604, allocations: 0 / 1.771 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6936/7.297, allocations: 110.1 MB / 1.878 GB, free: 57 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000279/7.297, allocations: 234.2 kB / 1.878 GB, free: 56.68 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.256/15.55, allocations: 0 / 1.878 GB, free: 56.68 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat does not exist to compare? outputFormat=mat