Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.NonCircularPipes,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_NonCircularPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.707/1.707, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.615e-05/2.627e-05, allocations: 4 kB / 219.5 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2852, allocations: 38.77 MB / 258.3 MB, free: 12.14 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.174/7.459, allocations: 2.517 GB / 2.77 GB, free: 67.45 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/7.459, allocations: 71.75 kB / 2.77 GB, free: 67.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.549/10.01, allocations: 0.5289 GB / 3.299 GB, free: 13.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.235e-06/10.01, allocations: 4 kB / 3.299 GB, free: 13.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002052/10.01, allocations: 47.83 kB / 3.299 GB, free: 13.54 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.01418/10.02, allocations: 2.741 MB / 3.301 GB, free: 10.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.632e-05/10.02, allocations: 12.03 kB / 3.301 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006865/10.03, allocations: 0.5833 MB / 3.302 GB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006032/10.04, allocations: 1.451 MB / 3.303 GB, free: 8.684 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/10.04, allocations: 79.98 kB / 3.304 GB, free: 8.605 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004203/10.04, allocations: 84 kB / 3.304 GB, free: 8.523 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005587/10.04, allocations: 1.966 MB / 3.306 GB, free: 6.555 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005685/10.05, allocations: 2.152 MB / 3.308 GB, free: 4.242 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.283e-05/10.05, allocations: 11.88 kB / 3.308 GB, free: 4.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002577/10.05, allocations: 15.95 kB / 3.308 GB, free: 4.215 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002858/10.05, allocations: 126.7 kB / 3.308 GB, free: 4.09 MB / 378.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.5749/10.62, allocations: 75.59 MB / 3.382 GB, free: 20.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002395/10.63, allocations: 1.106 MB / 3.383 GB, free: 20.89 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001238/10.63, allocations: 0.6611 MB / 3.383 GB, free: 20.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/10.64, allocations: 4.301 MB / 3.388 GB, free: 17.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.918e-05/10.64, allocations: 47.19 kB / 3.388 GB, free: 17.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=102): time 3.427e-06/10.64, allocations: 1.594 kB / 3.388 GB, free: 17.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.01881/10.66, allocations: 4.914 MB / 3.392 GB, free: 16.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/10.66, allocations: 141.7 kB / 3.392 GB, free: 16.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001649/10.66, allocations: 0.8453 MB / 3.393 GB, free: 16.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002724/10.66, allocations: 25.7 kB / 3.393 GB, free: 16.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005598/10.66, allocations: 0.7822 MB / 3.394 GB, free: 16.22 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000475/10.66, allocations: 397.9 kB / 3.394 GB, free: 16.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/10.66, allocations: 0 / 3.394 GB, free: 16.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001969/10.66, allocations: 379.2 kB / 3.395 GB, free: 15.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00153/10.66, allocations: 0.7424 MB / 3.396 GB, free: 15.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001739/10.66, allocations: 1.169 MB / 3.397 GB, free: 15.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02742/10.69, allocations: 4.159 MB / 3.401 GB, free: 14.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.355e-05/10.69, allocations: 3.219 kB / 3.401 GB, free: 14.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.02224/10.71, allocations: 4.162 MB / 3.405 GB, free: 14.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002132/10.72, allocations: 5.143 MB / 3.41 GB, free: 9.301 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.72e-05/10.72, allocations: 15.81 kB / 3.41 GB, free: 9.301 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002344/10.72, allocations: 480.1 kB / 3.41 GB, free: 9.266 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003045/10.72, allocations: 405.2 kB / 3.411 GB, free: 9.262 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003623/10.72, allocations: 2.91 MB / 3.414 GB, free: 23.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003008/10.73, allocations: 191.4 kB / 3.414 GB, free: 23.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002197/10.73, allocations: 83.62 kB / 3.414 GB, free: 23.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/10.73, allocations: 6.656 kB / 3.414 GB, free: 23.15 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02143/10.75, allocations: 3.958 MB / 3.418 GB, free: 23.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.575e-05/10.75, allocations: 18.3 kB / 3.418 GB, free: 23.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001847/10.75, allocations: 455.7 kB / 3.418 GB, free: 22.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002719/10.75, allocations: 392 kB / 3.419 GB, free: 22.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003279/10.76, allocations: 2.915 MB / 3.421 GB, free: 20.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002509/10.76, allocations: 178.8 kB / 3.422 GB, free: 20.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002644/10.76, allocations: 79.08 kB / 3.422 GB, free: 20.88 MB / 426.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: circular_pipe.mediums[1].p = 1000000.0 annulus_pipe.mediums[1].p = 1000000.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 11 (massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase,boundary.medium.phase,annulus_pipe.state_b.phase,annulus_pipe.state_a.phase,circular_pipe.state_b.phase,circular_pipe.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {2 8,1 1,2 8,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006574/10.76, allocations: 160.1 kB / 3.422 GB, free: 20.77 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005546/10.77, allocations: 1.769 MB / 3.423 GB, free: 20.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000505/10.77, allocations: 130.8 kB / 3.424 GB, free: 20.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008626/10.78, allocations: 4.701 MB / 3.428 GB, free: 20.11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.755e-05/10.78, allocations: 53.67 kB / 3.428 GB, free: 20.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/10.78, allocations: 1.438 kB / 3.428 GB, free: 20.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007155/10.78, allocations: 4.32 MB / 3.432 GB, free: 19.38 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01443/10.8, allocations: 6.971 MB / 3.439 GB, free: 18.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/10.8, allocations: 3.75 kB / 3.439 GB, free: 18.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002097/10.8, allocations: 270.4 kB / 3.44 GB, free: 18.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00255/10.8, allocations: 0.5164 MB / 3.44 GB, free: 18.71 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002313/10.8, allocations: 20.14 kB / 3.44 GB, free: 18.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003482/10.81, allocations: 3.07 MB / 3.443 GB, free: 16.61 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/10.81, allocations: 3.953 kB / 3.443 GB, free: 16.61 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009614/10.82, allocations: 4.67 MB / 3.448 GB, free: 16.19 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00147/10.82, allocations: 493.6 kB / 3.448 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003832/10.82, allocations: 12.88 kB / 3.448 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001923/10.82, allocations: 136.6 kB / 3.448 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003607/10.82, allocations: 111.6 kB / 3.448 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001506/10.82, allocations: 44.61 kB / 3.448 GB, free: 15.93 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001314/10.82, allocations: 0.6817 MB / 3.449 GB, free: 15.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.21e-07/10.82, allocations: 0 / 3.449 GB, free: 15.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009652/10.83, allocations: 2.061 MB / 3.451 GB, free: 13.93 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (circular_pipe.mediums[1].h,circular_pipe.mediums[2].p,circular_pipe.mediums[2].h,annulus_pipe.mediums[1].h,annulus_pipe.mediums[2].p,annulus_pipe.mediums[2].h) * Number of discrete variables: 30 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * 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 {2 8,1 1,2 8,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02276/10.85, allocations: 7.452 MB / 3.458 GB, free: 9.281 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008509/10.86, allocations: 3.301 MB / 3.462 GB, free: 7.445 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/10.86, allocations: 0 / 3.462 GB, free: 7.445 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003672/10.87, allocations: 1.492 MB / 3.463 GB, free: 6.711 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005253/10.87, allocations: 0.5574 MB / 3.464 GB, free: 6.406 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4896/11.36, allocations: 58.51 MB / 3.521 GB, free: 67.28 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001478/11.36, allocations: 1.746 MB / 3.522 GB, free: 66.53 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001722/11.36, allocations: 0.8401 MB / 3.523 GB, free: 66.52 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/11.36, allocations: 0 / 3.523 GB, free: 66.52 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.275/15.64, allocations: 94.68 MB / 3.616 GB, free: 25.94 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.NonCircularPipes_res.mat does not exist to compare? outputFormat=mat