Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.NonCircularPipes,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Fluid_Examples_NonCircularPipes",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.765/1.765, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2541/2.019, allocations: 46.81 MB / 249.4 MB, free: 5.371 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09295/2.112, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.07/8.182, allocations: 2.627 GB / 2.914 GB, free: 26.27 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/8.183, allocations: 71.78 kB / 2.914 GB, free: 26.24 MB / 394.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 2.912/11.09, allocations: 0.5453 GB / 3.459 GB, free: 33.36 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/11.09, allocations: 10.83 kB / 3.459 GB, free: 33.36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008444/11.1, allocations: 0.6359 MB / 3.46 GB, free: 33.26 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006277/11.11, allocations: 1.464 MB / 3.461 GB, free: 32.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002314/11.11, allocations: 81.83 kB / 3.462 GB, free: 32.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005126/11.11, allocations: 84.16 kB / 3.462 GB, free: 32.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006321/11.12, allocations: 2.032 MB / 3.464 GB, free: 32.89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00638/11.12, allocations: 2.21 MB / 3.466 GB, free: 32.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.162e-05/11.12, allocations: 8.688 kB / 3.466 GB, free: 32.45 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003284/11.12, allocations: 7.625 kB / 3.466 GB, free: 32.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001914/11.12, allocations: 127.8 kB / 3.466 GB, free: 32.44 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3735/11.5, allocations: 76.66 MB / 3.541 GB, free: 24.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002207/11.5, allocations: 0.7819 MB / 3.542 GB, free: 24 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001721/11.5, allocations: 0.6853 MB / 3.542 GB, free: 23.99 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01411/11.52, allocations: 4.362 MB / 3.546 GB, free: 20.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.895e-05/11.52, allocations: 44.75 kB / 3.547 GB, free: 20.66 MB / 458.7 MB Notification: Performance of pre-optimization done (n=102): time 3.867e-06/11.52, allocations: 3.062 kB / 3.547 GB, free: 20.66 MB / 458.7 MB Notification: Performance of matching and sorting (n=118): time 0.02588/11.54, allocations: 5.02 MB / 3.551 GB, free: 19.98 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/11.54, allocations: 141.3 kB / 3.552 GB, free: 19.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002362/11.54, allocations: 0.8556 MB / 3.552 GB, free: 19.66 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003979/11.54, allocations: 26.95 kB / 3.552 GB, free: 19.62 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005343/11.54, allocations: 0.6479 MB / 3.553 GB, free: 19.21 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006046/11.55, allocations: 402.5 kB / 3.553 GB, free: 18.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001822/11.55, allocations: 0 / 3.553 GB, free: 18.95 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002151/11.55, allocations: 367.2 kB / 3.554 GB, free: 18.65 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002577/11.55, allocations: 0.8218 MB / 3.555 GB, free: 18.64 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003273/11.55, allocations: 1.258 MB / 3.556 GB, free: 18.13 MB / 458.7 MB Notification: The following equation is consistent and got removed from the initialization problem: circular_pipe.mediums[1].p = 1000000.0 Notification: The following equation is consistent and got removed from the initialization problem: annulus_pipe.mediums[1].p = 1000000.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.03679/11.59, allocations: 4.255 MB / 3.56 GB, free: 16.52 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.519e-05/11.59, allocations: 4 kB / 3.56 GB, free: 16.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.03172/11.62, allocations: 4.762 MB / 3.565 GB, free: 13.71 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002015/11.62, allocations: 5.132 MB / 3.57 GB, free: 8.289 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.808e-05/11.62, allocations: 14.94 kB / 3.57 GB, free: 8.277 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003072/11.63, allocations: 499.9 kB / 3.57 GB, free: 7.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00374/11.63, allocations: 397.9 kB / 3.571 GB, free: 7.684 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00455/11.63, allocations: 3.001 MB / 3.573 GB, free: 5.066 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003827/11.64, allocations: 191.9 kB / 3.574 GB, free: 4.922 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003742/11.64, allocations: 84.08 kB / 3.574 GB, free: 4.859 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/11.64, allocations: 4 kB / 3.574 GB, free: 4.855 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02888/11.67, allocations: 4.072 MB / 3.578 GB, free: 2.465 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-05/11.67, allocations: 12 kB / 3.578 GB, free: 2.453 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002912/11.67, allocations: 0.4923 MB / 3.578 GB, free: 2.156 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003814/11.67, allocations: 396.4 kB / 3.579 GB, free: 1.859 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1862/11.86, allocations: 3.011 MB / 3.582 GB, free: 94.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003423/11.86, allocations: 181.4 kB / 3.582 GB, free: 94.93 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003493/11.86, allocations: 79.11 kB / 3.582 GB, free: 94.93 MB / 458.7 MB Warning: Assuming redundant initial conditions for the following 2 initial equations: 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.0006272/11.86, allocations: 160.4 kB / 3.582 GB, free: 94.82 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002522/11.87, allocations: 495.5 kB / 3.582 GB, free: 94.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01173/11.88, allocations: 4.735 MB / 3.587 GB, free: 94.54 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.094e-05/11.88, allocations: 44.94 kB / 3.587 GB, free: 94.54 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/11.88, allocations: 0 / 3.587 GB, free: 94.54 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008712/11.89, allocations: 4.22 MB / 3.591 GB, free: 93.86 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01747/11.91, allocations: 6.808 MB / 3.598 GB, free: 93.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.669e-05/11.91, allocations: 3.031 kB / 3.598 GB, free: 93.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002362/11.91, allocations: 226.7 kB / 3.598 GB, free: 93.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003318/11.91, allocations: 0.545 MB / 3.599 GB, free: 93.29 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003298/11.91, allocations: 33.55 kB / 3.599 GB, free: 93.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003868/11.92, allocations: 3.157 MB / 3.602 GB, free: 91.23 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.646e-06/11.92, allocations: 5.766 kB / 3.602 GB, free: 91.23 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01456/11.93, allocations: 5.477 MB / 3.607 GB, free: 90.88 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01822/11.95, allocations: 7.495 MB / 3.614 GB, free: 90.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001698/11.95, allocations: 470.3 kB / 3.615 GB, free: 89.84 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005363/11.95, allocations: 14.22 kB / 3.615 GB, free: 89.83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002661/11.95, allocations: 139.2 kB / 3.615 GB, free: 89.83 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003961/11.95, allocations: 113.6 kB / 3.615 GB, free: 89.83 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001972/11.95, allocations: 53.28 kB / 3.615 GB, free: 89.83 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001557/11.96, allocations: 0.6571 MB / 3.616 GB, free: 89.72 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01437/11.97, allocations: 2.474 MB / 3.618 GB, free: 89.71 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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: 26 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.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 (109): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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,2 8,2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.01509/11.99, allocations: 2.416 MB / 3.621 GB, free: 89.59 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01081/12, allocations: 4.021 MB / 3.624 GB, free: 89.54 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/12, allocations: 4.969 kB / 3.624 GB, free: 89.54 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004771/12, allocations: 2.112 MB / 3.627 GB, free: 89.52 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006286/12.01, allocations: 0.5241 MB / 3.627 GB, free: 89.52 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08163/12.09, allocations: 17.64 MB / 3.644 GB, free: 88.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002828/12.09, allocations: 1.874 MB / 3.646 GB, free: 88.05 MB / 458.7 MB Notification: Performance of SimCode: time 1.743e-06/12.09, allocations: 0 / 3.646 GB, free: 88.05 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Fluid.Examples.NonCircularPipes_res.mat does not exist to compare? outputFormat=mat