Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.364/2.364, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.759e-05/3.791e-05, allocations: 4 kB / 305 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.3934, allocations: 54.85 MB / 359.9 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.875/2.269, allocations: 0.6877 GB / 1.039 GB, free: 40.99 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/2.269, allocations: 81.83 kB / 1.039 GB, free: 40.95 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.673/5.943, allocations: 0.6141 GB / 1.653 GB, free: 36.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.073e-06/5.943, allocations: 0 / 1.653 GB, free: 36.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003247/5.943, allocations: 66.69 kB / 1.653 GB, free: 36.3 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.01487/5.958, allocations: 3.186 MB / 1.657 GB, free: 35.29 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/5.958, allocations: 12.53 kB / 1.657 GB, free: 35.29 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001066/5.959, allocations: 257.5 kB / 1.657 GB, free: 35.24 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004668/5.964, allocations: 452.5 kB / 1.657 GB, free: 35.11 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00922/5.973, allocations: 2.005 MB / 1.659 GB, free: 34.77 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002053/5.973, allocations: 136.2 kB / 1.659 GB, free: 34.76 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007492/5.974, allocations: 173.8 kB / 1.659 GB, free: 34.76 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007038/5.981, allocations: 2.681 MB / 1.662 GB, free: 34.31 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.582e-05/5.981, allocations: 5.781 kB / 1.662 GB, free: 34.31 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004193/5.982, allocations: 80.69 kB / 1.662 GB, free: 34.31 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003495/5.982, allocations: 162.7 kB / 1.662 GB, free: 34.3 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006807/5.989, allocations: 2.237 MB / 1.665 GB, free: 34.3 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.02499/6.014, allocations: 11.53 MB / 1.676 GB, free: 28.16 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004679/6.018, allocations: 1.805 MB / 1.678 GB, free: 27.83 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002397/6.021, allocations: 1.087 MB / 1.679 GB, free: 27.82 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001388/6.022, allocations: 467 kB / 1.679 GB, free: 27.54 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002625/6.025, allocations: 1.192 MB / 1.68 GB, free: 27.41 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=172): time 4.378e-06/6.025, allocations: 0 / 1.68 GB, free: 27.41 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.04276/6.068, allocations: 9.522 MB / 1.689 GB, free: 26.21 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.973e-05/6.068, allocations: 255.5 kB / 1.69 GB, free: 25.93 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002704/6.071, allocations: 1.389 MB / 1.691 GB, free: 25.75 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005318/6.071, allocations: 63.64 kB / 1.691 GB, free: 25.72 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007628/6.072, allocations: 0.8518 MB / 1.692 GB, free: 25.31 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008345/6.073, allocations: 0.6748 MB / 1.693 GB, free: 24.88 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002564/6.073, allocations: 46.47 kB / 1.693 GB, free: 24.88 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001488/6.073, allocations: 403.8 kB / 1.693 GB, free: 24.57 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002574/6.076, allocations: 1.036 MB / 1.694 GB, free: 24.56 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002887/6.079, allocations: 1.515 MB / 1.696 GB, free: 24.08 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002982/6.082, allocations: 1.321 MB / 1.697 GB, free: 24 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/6.082, allocations: 6.906 kB / 1.697 GB, free: 24 MB / 0.4948 GB Notification: Performance of matching and sorting (n=288) (initialization): time 0.007738/6.089, allocations: 3.084 MB / 1.7 GB, free: 23.77 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001005/6.09, allocations: 4.682 MB / 1.704 GB, free: 18.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.037e-05/6.091, allocations: 14.97 kB / 1.704 GB, free: 18.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001227/6.092, allocations: 301.8 kB / 1.705 GB, free: 18.86 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004911/6.097, allocations: 0.5699 MB / 1.705 GB, free: 18.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002143/6.099, allocations: 2.998 MB / 1.708 GB, free: 16.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004484/6.103, allocations: 223.6 kB / 1.708 GB, free: 16.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005298/6.104, allocations: 208.2 kB / 1.709 GB, free: 16.25 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/6.104, allocations: 7.734 kB / 1.709 GB, free: 16.25 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007505/6.111, allocations: 2.923 MB / 1.712 GB, free: 16.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.798e-05/6.112, allocations: 10.75 kB / 1.712 GB, free: 16.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001019/6.113, allocations: 297.5 kB / 1.712 GB, free: 16.06 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004364/6.117, allocations: 0.57 MB / 1.712 GB, free: 16.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002812/6.12, allocations: 2.996 MB / 1.715 GB, free: 29.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003503/6.123, allocations: 214.7 kB / 1.715 GB, free: 29.46 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004564/6.124, allocations: 203.5 kB / 1.716 GB, free: 29.46 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.0009632/6.125, allocations: 314.5 kB / 1.716 GB, free: 29.28 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007102/6.125, allocations: 220 kB / 1.716 GB, free: 29.17 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0116/6.137, allocations: 3.733 MB / 1.72 GB, free: 28.91 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.468e-05/6.137, allocations: 21.69 kB / 1.72 GB, free: 28.91 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/6.137, allocations: 0 / 1.72 GB, free: 28.91 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006584/6.144, allocations: 2.884 MB / 1.723 GB, free: 28.32 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01846/6.162, allocations: 6.984 MB / 1.729 GB, free: 27.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.585e-05/6.162, allocations: 6.594 kB / 1.73 GB, free: 27.01 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003672/6.166, allocations: 457.3 kB / 1.73 GB, free: 27.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001289/6.167, allocations: 323.8 kB / 1.73 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003276/6.168, allocations: 110.8 kB / 1.73 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003457/6.171, allocations: 3.741 MB / 1.734 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/6.171, allocations: 14.92 kB / 1.734 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01061/6.182, allocations: 4.871 MB / 1.739 GB, free: 22.46 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001987/6.184, allocations: 0.5545 MB / 1.739 GB, free: 22.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006099/6.184, allocations: 61.41 kB / 1.739 GB, free: 22.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002613/6.187, allocations: 140.6 kB / 1.74 GB, free: 22.24 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004583/6.188, allocations: 185.8 kB / 1.74 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004125/6.188, allocations: 185.9 kB / 1.74 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002079/6.19, allocations: 1.041 MB / 1.741 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.31e-07/6.19, allocations: 1.062 kB / 1.741 GB, free: 22.11 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008969/6.199, allocations: 2.064 MB / 1.743 GB, free: 21.86 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.01892/6.218, allocations: 9.515 MB / 1.752 GB, free: 18.05 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01107/6.229, allocations: 4.457 MB / 1.757 GB, free: 17.77 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.426e-05/6.229, allocations: 6.312 kB / 1.757 GB, free: 17.77 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003759/6.233, allocations: 1.607 MB / 1.758 GB, free: 17.53 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008202/6.241, allocations: 1.046 MB / 1.759 GB, free: 17.51 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02392/6.265, allocations: 6.75 MB / 1.766 GB, free: 16.16 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001668/6.267, allocations: 1.747 MB / 1.767 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003582/6.27, allocations: 1.094 MB / 1.769 GB, free: 15.42 MB / 0.5105 GB Notification: Performance of SimCode: time 1.643e-06/6.27, allocations: 0 / 1.769 GB, free: 15.42 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.304/11.57, allocations: 106.1 MB / 1.872 GB, free: 63.99 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat does not exist to compare? outputFormat=mat