Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.362/2.362, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.66e-05/5.675e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4331/0.4332, allocations: 54.85 MB / 359.9 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.691/8.124, allocations: 2.656 GB / 3.007 GB, free: 103.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003441/8.124, allocations: 79.08 kB / 3.007 GB, free: 103.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.266/12.39, allocations: 0.8016 GB / 3.809 GB, free: 25 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.094e-06/12.39, allocations: 3.938 kB / 3.809 GB, free: 25 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003573/12.39, allocations: 69.34 kB / 3.809 GB, free: 24.98 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02064/12.41, allocations: 3.957 MB / 3.813 GB, free: 22.99 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/12.41, allocations: 10.31 kB / 3.813 GB, free: 22.99 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001193/12.41, allocations: 286 kB / 3.813 GB, free: 22.94 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008695/12.42, allocations: 0.8486 MB / 3.814 GB, free: 22.79 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008548/12.43, allocations: 2.162 MB / 3.816 GB, free: 22.27 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002871/12.43, allocations: 173.8 kB / 3.816 GB, free: 22.27 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009606/12.43, allocations: 198.9 kB / 3.816 GB, free: 22.27 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/12.44, allocations: 3.675 MB / 3.82 GB, free: 21.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-05/12.44, allocations: 11.22 kB / 3.82 GB, free: 21.7 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004559/12.44, allocations: 90.11 kB / 3.82 GB, free: 21.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003083/12.44, allocations: 164.9 kB / 3.82 GB, free: 21.69 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01194/12.46, allocations: 3.387 MB / 3.824 GB, free: 21.43 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.03086/12.49, allocations: 14.76 MB / 3.838 GB, free: 10.53 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007279/12.49, allocations: 2.107 MB / 3.84 GB, free: 9.812 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002893/12.5, allocations: 1.068 MB / 3.841 GB, free: 9.398 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06084/12.56, allocations: 18.96 MB / 3.86 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006074/12.56, allocations: 1.678 MB / 3.861 GB, free: 10.48 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001974/12.57, allocations: 192.8 kB / 3.861 GB, free: 10.31 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 6.772e-06/12.57, allocations: 0 / 3.861 GB, free: 10.31 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.03136/12.6, allocations: 7.329 MB / 3.869 GB, free: 4.066 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002575/12.6, allocations: 414.3 kB / 3.869 GB, free: 3.574 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003629/12.6, allocations: 1.482 MB / 3.87 GB, free: 2.25 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006154/12.6, allocations: 57.7 kB / 3.87 GB, free: 2.188 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001168/12.6, allocations: 0.9286 MB / 3.871 GB, free: 1.312 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001212/12.6, allocations: 0.5867 MB / 3.872 GB, free: 0.7812 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002775/12.6, allocations: 44 kB / 3.872 GB, free: 0.7383 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002809/12.61, allocations: 391 kB / 3.872 GB, free: 380 kB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006927/12.61, allocations: 1.282 MB / 3.874 GB, free: 0 / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004273/12.62, allocations: 1.524 MB / 3.875 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003908/12.62, allocations: 1.316 MB / 3.876 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.087e-05/12.62, allocations: 7.953 kB / 3.876 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.009877/12.63, allocations: 3.154 MB / 3.879 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002144/12.63, allocations: 4.43 MB / 3.884 GB, free: 5.738 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.159e-05/12.63, allocations: 18.19 kB / 3.884 GB, free: 5.723 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008839/12.64, allocations: 0.9574 MB / 3.885 GB, free: 5.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004165/12.65, allocations: 473.5 kB / 3.885 GB, free: 4.625 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00467/12.65, allocations: 3.16 MB / 3.888 GB, free: 1.578 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004207/12.65, allocations: 246.1 kB / 3.889 GB, free: 1.387 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005535/12.66, allocations: 105.6 kB / 3.889 GB, free: 1.293 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/12.66, allocations: 4 kB / 3.889 GB, free: 1.289 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4337/13.09, allocations: 2.94 MB / 3.892 GB, free: 55.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001037/13.09, allocations: 15.06 kB / 3.892 GB, free: 55.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002889/13.09, allocations: 346.3 kB / 3.892 GB, free: 55.24 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006181/13.1, allocations: 495.4 kB / 3.892 GB, free: 55.24 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009171/13.11, allocations: 4.034 MB / 3.896 GB, free: 52.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003368/13.11, allocations: 234.1 kB / 3.896 GB, free: 52.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007337/13.11, allocations: 102.5 kB / 3.897 GB, free: 52.45 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0008687/13.11, allocations: 302.4 kB / 3.897 GB, free: 52.28 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007319/13.11, allocations: 215.2 kB / 3.897 GB, free: 52.27 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01778/13.13, allocations: 7.734 MB / 3.905 GB, free: 51.71 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001526/13.13, allocations: 81.34 kB / 3.905 GB, free: 51.71 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.232e-05/13.13, allocations: 4.438 kB / 3.905 GB, free: 51.71 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01418/13.15, allocations: 6.777 MB / 3.911 GB, free: 50.77 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02125/13.17, allocations: 10.78 MB / 3.922 GB, free: 50.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.88e-05/13.17, allocations: 0 / 3.922 GB, free: 50.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00295/13.17, allocations: 348.1 kB / 3.922 GB, free: 50.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008195/13.18, allocations: 2.49 MB / 3.925 GB, free: 50.03 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006017/13.18, allocations: 67.94 kB / 3.925 GB, free: 50.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00443/13.18, allocations: 4.096 MB / 3.929 GB, free: 47.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/13.18, allocations: 3.953 kB / 3.929 GB, free: 47.94 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01467/13.2, allocations: 7.679 MB / 3.936 GB, free: 47.27 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002427/13.2, allocations: 0.7567 MB / 3.937 GB, free: 47 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008191/13.2, allocations: 53.53 kB / 3.937 GB, free: 47 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003216/13.2, allocations: 199.6 kB / 3.937 GB, free: 47 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005011/13.21, allocations: 141.6 kB / 3.937 GB, free: 46.99 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002439/13.21, allocations: 70.33 kB / 3.937 GB, free: 46.99 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002702/13.21, allocations: 1.237 MB / 3.939 GB, free: 46.83 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.21e-07/13.21, allocations: 0 / 3.939 GB, free: 46.83 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01295/13.22, allocations: 2.821 MB / 3.941 GB, free: 46.83 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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,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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.02832/13.25, allocations: 10.26 MB / 3.951 GB, free: 45.44 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01298/13.26, allocations: 5.229 MB / 3.956 GB, free: 44.88 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/13.26, allocations: 3.406 kB / 3.956 GB, free: 44.88 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005412/13.27, allocations: 2.348 MB / 3.959 GB, free: 44.74 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008019/13.28, allocations: 0.8845 MB / 3.96 GB, free: 44.71 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3723/13.65, allocations: 129.4 MB / 4.086 GB, free: 13.46 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4415/14.09, allocations: 2.251 MB / 4.088 GB, free: 68.75 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003228/14.09, allocations: 1.316 MB / 4.089 GB, free: 68.74 MB / 0.5417 GB Notification: Performance of SimCode: time 1.623e-06/14.09, allocations: 0 / 4.089 GB, free: 68.74 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.282/19.38, allocations: 130.9 MB / 4.217 GB, free: 48.83 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat