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.984/1.984, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.415e-05/3.425e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1055, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.04/8.146, allocations: 2.567 GB / 2.881 GB, free: 6.027 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/8.146, allocations: 73.16 kB / 2.881 GB, free: 5.992 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.587/13.73, allocations: 0.9821 GB / 3.863 GB, free: 26.17 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.925e-06/13.73, allocations: 1 kB / 3.863 GB, free: 26.17 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003505/13.73, allocations: 72.22 kB / 3.863 GB, free: 26.16 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.01936/13.75, allocations: 4.107 MB / 3.867 GB, free: 24.28 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/13.75, allocations: 8.625 kB / 3.867 GB, free: 24.28 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001338/13.75, allocations: 320.7 kB / 3.868 GB, free: 24.23 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009643/13.76, allocations: 0.9131 MB / 3.869 GB, free: 24.07 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008886/13.77, allocations: 2.187 MB / 3.871 GB, free: 23.6 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003078/13.77, allocations: 198.3 kB / 3.871 GB, free: 23.59 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009218/13.77, allocations: 218.7 kB / 3.871 GB, free: 23.59 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01274/13.79, allocations: 3.859 MB / 3.875 GB, free: 22.95 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-05/13.79, allocations: 10.03 kB / 3.875 GB, free: 22.95 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004754/13.79, allocations: 93.72 kB / 3.875 GB, free: 22.95 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003282/13.79, allocations: 179.2 kB / 3.875 GB, free: 22.94 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01218/13.8, allocations: 3.426 MB / 3.879 GB, free: 22.87 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.03401/13.83, allocations: 16.7 MB / 3.895 GB, free: 12.65 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009693/13.84, allocations: 3.026 MB / 3.898 GB, free: 12.04 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003198/13.85, allocations: 1.221 MB / 3.899 GB, free: 12.02 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06023/13.91, allocations: 18.59 MB / 3.917 GB, free: 15.78 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007213/13.91, allocations: 1.84 MB / 3.919 GB, free: 15.16 MB / 490.7 MB Notification: Performance of pre-optimization done (n=188): time 7.324e-06/13.91, allocations: 0 / 3.919 GB, free: 15.16 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.05165/13.97, allocations: 10.9 MB / 3.93 GB, free: 10.12 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000202/13.97, allocations: 257.3 kB / 3.93 GB, free: 9.812 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003344/13.97, allocations: 1.422 MB / 3.931 GB, free: 8.488 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008086/13.97, allocations: 69.7 kB / 3.931 GB, free: 8.414 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001258/13.97, allocations: 0.9772 MB / 3.932 GB, free: 7.496 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001674/13.97, allocations: 0.7037 MB / 3.933 GB, free: 6.859 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003471/13.97, allocations: 48 kB / 3.933 GB, free: 6.812 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003216/13.97, allocations: 406 kB / 3.933 GB, free: 6.438 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003646/13.98, allocations: 1.111 MB / 3.935 GB, free: 5.43 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004609/13.98, allocations: 1.666 MB / 3.936 GB, free: 3.691 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004514/13.99, allocations: 1.389 MB / 3.938 GB, free: 2.496 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.477e-05/13.99, allocations: 4 kB / 3.938 GB, free: 2.492 MB / 490.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.01389/14, allocations: 3.403 MB / 3.941 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.003114/14, allocations: 5.465 MB / 3.946 GB, free: 9.766 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.283e-05/14, allocations: 12 kB / 3.946 GB, free: 9.754 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001972/14.01, allocations: 339.2 kB / 3.947 GB, free: 9.469 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00554/14.01, allocations: 0.6003 MB / 3.947 GB, free: 8.961 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003332/14.02, allocations: 3.091 MB / 3.95 GB, free: 5.852 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005693/14.02, allocations: 330.7 kB / 3.95 GB, free: 5.598 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000982/14.02, allocations: 132.3 kB / 3.951 GB, free: 5.48 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/14.02, allocations: 10.5 kB / 3.951 GB, free: 5.477 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01181/14.03, allocations: 3.172 MB / 3.954 GB, free: 2.656 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.125e-05/14.03, allocations: 16 kB / 3.954 GB, free: 2.641 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001774/14.04, allocations: 331.9 kB / 3.954 GB, free: 2.363 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005405/14.04, allocations: 0.5904 MB / 3.955 GB, free: 1.863 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4387/14.48, allocations: 3.085 MB / 3.958 GB, free: 54.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004879/14.49, allocations: 338.5 kB / 3.958 GB, free: 54.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001083/14.49, allocations: 122.5 kB / 3.958 GB, free: 54.66 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.001582/14.49, allocations: 322.6 kB / 3.958 GB, free: 54.49 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009595/14.49, allocations: 221 kB / 3.959 GB, free: 54.49 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02297/14.51, allocations: 8.118 MB / 3.966 GB, free: 53.91 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001961/14.51, allocations: 89.8 kB / 3.967 GB, free: 53.91 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.984e-05/14.51, allocations: 1.203 kB / 3.967 GB, free: 53.91 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01817/14.53, allocations: 7.034 MB / 3.973 GB, free: 52.97 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03364/14.56, allocations: 13.01 MB / 3.986 GB, free: 51.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.499e-05/14.56, allocations: 6.188 kB / 3.986 GB, free: 51.52 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003973/14.57, allocations: 493.1 kB / 3.987 GB, free: 51.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00247/14.57, allocations: 449.9 kB / 3.987 GB, free: 51.48 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007134/14.57, allocations: 73.12 kB / 3.987 GB, free: 51.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00246/14.57, allocations: 3.223 MB / 3.99 GB, free: 48.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.039e-05/14.57, allocations: 7.656 kB / 3.99 GB, free: 48.89 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0179/14.59, allocations: 8.091 MB / 3.998 GB, free: 47.47 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003158/14.6, allocations: 0.7885 MB / 3.999 GB, free: 47.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001157/14.6, allocations: 70.03 kB / 3.999 GB, free: 47.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004065/14.6, allocations: 232.1 kB / 3.999 GB, free: 47.18 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008408/14.6, allocations: 198 kB / 3.999 GB, free: 47.17 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003289/14.6, allocations: 91.47 kB / 3.999 GB, free: 47.17 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002869/14.6, allocations: 1.176 MB / 4.001 GB, free: 47.01 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.41e-07/14.6, allocations: 1.75 kB / 4.001 GB, free: 47.01 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01587/14.62, allocations: 2.884 MB / 4.003 GB, free: 47.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.03393/14.65, allocations: 12.88 MB / 4.016 GB, free: 43.58 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01547/14.67, allocations: 5.469 MB / 4.021 GB, free: 43.24 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.962e-05/14.67, allocations: 3.25 kB / 4.021 GB, free: 43.24 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007405/14.68, allocations: 2.884 MB / 4.024 GB, free: 43.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01032/14.69, allocations: 1.128 MB / 4.025 GB, free: 43.07 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.855/15.54, allocations: 127.6 MB / 4.15 GB, free: 53.62 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003713/15.55, allocations: 2.331 MB / 4.152 GB, free: 52.88 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004084/15.55, allocations: 1.443 MB / 4.154 GB, free: 52.88 MB / 0.4948 GB Notification: Performance of SimCode: time 1.884e-06/15.55, allocations: 2.859 kB / 4.154 GB, free: 52.88 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.478/21.03, allocations: 151.9 MB / 4.302 GB, free: 14.82 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