Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.987/1.987, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.505e-05/3.541e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 48.7 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.87/7.975, allocations: 2.567 GB / 2.881 GB, free: 4.301 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/7.975, allocations: 79.95 kB / 2.881 GB, free: 4.262 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.753/13.73, allocations: 0.9821 GB / 3.863 GB, free: 26.1 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.933e-06/13.73, allocations: 0 / 3.863 GB, free: 26.1 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000342/13.73, allocations: 75.03 kB / 3.863 GB, free: 26.09 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.02076/13.75, allocations: 4.104 MB / 3.868 GB, free: 24.22 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/13.75, allocations: 8.906 kB / 3.868 GB, free: 24.22 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001636/13.75, allocations: 316.4 kB / 3.868 GB, free: 24.17 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01028/13.76, allocations: 0.9093 MB / 3.869 GB, free: 24.02 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009449/13.77, allocations: 2.185 MB / 3.871 GB, free: 23.53 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000398/13.77, allocations: 201.2 kB / 3.871 GB, free: 23.52 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001229/13.77, allocations: 220.3 kB / 3.871 GB, free: 23.52 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01438/13.79, allocations: 3.839 MB / 3.875 GB, free: 22.89 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001225/13.79, allocations: 10.25 kB / 3.875 GB, free: 22.89 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008415/13.79, allocations: 94.98 kB / 3.875 GB, free: 22.89 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003399/13.79, allocations: 170.2 kB / 3.875 GB, free: 22.88 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0126/13.8, allocations: 3.39 MB / 3.879 GB, free: 22.84 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.03534/13.84, allocations: 16.7 MB / 3.895 GB, free: 12.62 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009675/13.85, allocations: 3.017 MB / 3.898 GB, free: 12.01 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003419/13.85, allocations: 1.225 MB / 3.899 GB, free: 11.91 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05942/13.91, allocations: 18.59 MB / 3.917 GB, free: 15.42 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006916/13.92, allocations: 1.829 MB / 3.919 GB, free: 14.81 MB / 490.7 MB Notification: Performance of pre-optimization done (n=188): time 7.044e-06/13.92, allocations: 96 / 3.919 GB, free: 14.81 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.05035/13.97, allocations: 10.91 MB / 3.93 GB, free: 9.199 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000181/13.97, allocations: 257.3 kB / 3.93 GB, free: 8.895 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003632/13.97, allocations: 1.423 MB / 3.931 GB, free: 7.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007738/13.97, allocations: 69.7 kB / 3.931 GB, free: 7.496 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001428/13.97, allocations: 0.9781 MB / 3.932 GB, free: 6.578 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001483/13.97, allocations: 0.6958 MB / 3.933 GB, free: 5.949 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003249/13.98, allocations: 48 kB / 3.933 GB, free: 5.902 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002836/13.98, allocations: 400.4 kB / 3.933 GB, free: 5.531 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003548/13.98, allocations: 1.121 MB / 3.934 GB, free: 4.516 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004706/13.98, allocations: 1.649 MB / 3.936 GB, free: 2.797 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004526/13.99, allocations: 1.39 MB / 3.937 GB, free: 1.598 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-05/13.99, allocations: 4 kB / 3.937 GB, free: 1.594 MB / 490.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.01219/14, allocations: 3.313 MB / 3.941 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002991/14, allocations: 5.47 MB / 3.946 GB, free: 8.773 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.93e-05/14, allocations: 16 kB / 3.946 GB, free: 8.758 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002554/14.01, allocations: 337.9 kB / 3.946 GB, free: 8.477 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007168/14.01, allocations: 0.5992 MB / 3.947 GB, free: 7.969 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004339/14.02, allocations: 3.084 MB / 3.95 GB, free: 4.863 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007395/14.03, allocations: 334.7 kB / 3.95 GB, free: 4.605 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001151/14.03, allocations: 126.6 kB / 3.95 GB, free: 4.492 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/14.03, allocations: 4 kB / 3.95 GB, free: 4.488 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01455/14.04, allocations: 3.136 MB / 3.953 GB, free: 1.707 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.836e-05/14.04, allocations: 12 kB / 3.953 GB, free: 1.695 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002366/14.04, allocations: 333.8 kB / 3.954 GB, free: 1.418 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006959/14.05, allocations: 0.5889 MB / 3.954 GB, free: 0.918 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4243/14.48, allocations: 3.085 MB / 3.957 GB, free: 54.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004588/14.48, allocations: 331.5 kB / 3.958 GB, free: 54.04 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005423/14.48, allocations: 125.7 kB / 3.958 GB, free: 54.04 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.0009747/14.48, allocations: 324.5 kB / 3.958 GB, free: 53.87 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008227/14.48, allocations: 223.7 kB / 3.958 GB, free: 53.87 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01968/14.5, allocations: 8.123 MB / 3.966 GB, free: 53.29 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001615/14.5, allocations: 92.25 kB / 3.966 GB, free: 53.29 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.77e-05/14.5, allocations: 0 / 3.966 GB, free: 53.29 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01543/14.52, allocations: 7.034 MB / 3.973 GB, free: 52.35 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03957/14.56, allocations: 13.01 MB / 3.986 GB, free: 50.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.863e-05/14.56, allocations: 2.281 kB / 3.986 GB, free: 50.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00503/14.56, allocations: 489.4 kB / 3.986 GB, free: 50.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003386/14.57, allocations: 447.8 kB / 3.987 GB, free: 50.85 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006455/14.57, allocations: 79.64 kB / 3.987 GB, free: 50.85 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003236/14.57, allocations: 3.214 MB / 3.99 GB, free: 48.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.246e-05/14.57, allocations: 10 kB / 3.99 GB, free: 48.27 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02167/14.59, allocations: 8.09 MB / 3.998 GB, free: 46.84 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003323/14.59, allocations: 0.7913 MB / 3.999 GB, free: 46.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00102/14.6, allocations: 62.84 kB / 3.999 GB, free: 46.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004372/14.6, allocations: 232.9 kB / 3.999 GB, free: 46.55 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005556/14.6, allocations: 189.6 kB / 3.999 GB, free: 46.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000293/14.6, allocations: 96.02 kB / 3.999 GB, free: 46.55 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002527/14.6, allocations: 1.178 MB / 4 GB, free: 46.39 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.02e-07/14.6, allocations: 0 / 4 GB, free: 46.39 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01416/14.62, allocations: 2.886 MB / 4.003 GB, free: 46.39 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.03119/14.65, allocations: 12.91 MB / 4.016 GB, free: 42.96 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01429/14.66, allocations: 5.395 MB / 4.021 GB, free: 42.63 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.401e-05/14.66, allocations: 3.625 kB / 4.021 GB, free: 42.63 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008519/14.67, allocations: 2.866 MB / 4.024 GB, free: 42.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0129/14.69, allocations: 1.128 MB / 4.025 GB, free: 42.47 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8291/15.51, allocations: 127.5 MB / 4.15 GB, free: 53.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003336/15.52, allocations: 2.335 MB / 4.152 GB, free: 52.75 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003685/15.52, allocations: 1.444 MB / 4.153 GB, free: 52.75 MB / 0.4948 GB Notification: Performance of SimCode: time 1.954e-06/15.52, allocations: 0 / 4.153 GB, free: 52.75 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.454/20.98, allocations: 151.9 MB / 4.302 GB, free: 14.03 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat