Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) [: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(ModelicaTest): time 1.834/1.834, allocations: 209.3 MB / 216.3 MB, free: 5.441 MB / 178.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1731/2.007, allocations: 51.02 MB / 267.3 MB, free: 2.316 MB / 226.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/2.3, allocations: 48.69 MB / 316 MB, free: 4.973 MB / 258.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.248/8.548, allocations: 2.544 GB / 2.853 GB, free: 109.7 MB / 434.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/8.548, allocations: 78.27 kB / 2.853 GB, free: 109.7 MB / 434.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 3.995/12.54, allocations: 0.7823 GB / 3.635 GB, free: 3.082 MB / 466.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.468e-05/12.54, allocations: 8 kB / 3.635 GB, free: 3.074 MB / 466.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01096/12.55, allocations: 0.8436 MB / 3.636 GB, free: 2.227 MB / 466.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01025/12.56, allocations: 2.16 MB / 3.638 GB, free: 48 kB / 466.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.24/12.8, allocations: 94.17 kB / 3.638 GB, free: 50.95 MB / 466.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001155/12.81, allocations: 120.2 kB / 3.639 GB, free: 50.95 MB / 466.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009495/12.82, allocations: 2.915 MB / 3.641 GB, free: 50.94 MB / 466.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009376/12.82, allocations: 2.932 MB / 3.644 GB, free: 50.4 MB / 466.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-05/12.82, allocations: 9.75 kB / 3.644 GB, free: 50.4 MB / 466.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004188/12.83, allocations: 7.125 kB / 3.644 GB, free: 50.4 MB / 466.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002268/12.83, allocations: 173.8 kB / 3.645 GB, free: 50.39 MB / 466.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5168/13.34, allocations: 109.9 MB / 3.752 GB, free: 25.75 MB / 498.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00459/13.35, allocations: 1.157 MB / 3.753 GB, free: 25.73 MB / 498.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003739/13.35, allocations: 0.9936 MB / 3.754 GB, free: 25.72 MB / 498.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09464/13.45, allocations: 17.54 MB / 3.771 GB, free: 30.05 MB / 0.5027 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004859/13.45, allocations: 1.235 MB / 3.772 GB, free: 29.88 MB / 0.5027 GB Notification: Performance of pre-optimization done (n=148): time 8.586e-06/13.45, allocations: 3.938 kB / 3.772 GB, free: 29.88 MB / 0.5027 GB Notification: Performance of matching and sorting (n=160): time 0.06632/13.52, allocations: 8.195 MB / 3.78 GB, free: 28.23 MB / 0.5027 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003907/13.52, allocations: 0.5114 MB / 3.781 GB, free: 27.63 MB / 0.5027 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004224/13.52, allocations: 1.21 MB / 3.782 GB, free: 27.46 MB / 0.5027 GB Notification: Performance of collectPreVariables (initialization): time 0.0006947/13.52, allocations: 27.86 kB / 3.782 GB, free: 27.43 MB / 0.5027 GB Notification: Performance of collectInitialEqns (initialization): time 0.001302/13.52, allocations: 0.7783 MB / 3.783 GB, free: 27.08 MB / 0.5027 GB Notification: Performance of collectInitialBindings (initialization): time 0.001384/13.52, allocations: 0.5254 MB / 3.783 GB, free: 26.81 MB / 0.5027 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003982/13.53, allocations: 3.688 kB / 3.783 GB, free: 26.81 MB / 0.5027 GB Notification: Performance of setup shared object (initialization): time 0.0003223/13.53, allocations: 384.5 kB / 3.784 GB, free: 26.51 MB / 0.5027 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004269/13.53, allocations: 1.144 MB / 3.785 GB, free: 26.5 MB / 0.5027 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005721/13.54, allocations: 1.605 MB / 3.786 GB, free: 25.99 MB / 0.5027 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.036/13.57, allocations: 3.109 MB / 3.789 GB, free: 25.91 MB / 0.5027 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.094e-05/13.57, allocations: 7.031 kB / 3.789 GB, free: 25.91 MB / 0.5027 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.04681/13.62, allocations: 5.657 MB / 3.795 GB, free: 25.67 MB / 0.5027 GB Notification: Performance of prepare postOptimizeDAE: time 0.002057/13.62, allocations: 4.447 MB / 3.799 GB, free: 21.1 MB / 0.5027 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001174/13.62, allocations: 17.41 kB / 3.799 GB, free: 21.1 MB / 0.5027 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01125/13.63, allocations: 0.8635 MB / 3.8 GB, free: 21.04 MB / 0.5027 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004903/13.64, allocations: 487.6 kB / 3.801 GB, free: 21.04 MB / 0.5027 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006444/13.64, allocations: 3.527 MB / 3.804 GB, free: 18.93 MB / 0.5027 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004439/13.65, allocations: 225.4 kB / 3.804 GB, free: 18.9 MB / 0.5027 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007187/13.65, allocations: 107.5 kB / 3.804 GB, free: 18.9 MB / 0.5027 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/13.65, allocations: 3.375 kB / 3.804 GB, free: 18.9 MB / 0.5027 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.029/13.68, allocations: 4.537 MB / 3.809 GB, free: 18.78 MB / 0.5027 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.647e-05/13.68, allocations: 13.69 kB / 3.809 GB, free: 18.78 MB / 0.5027 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002029/13.68, allocations: 360.9 kB / 3.809 GB, free: 18.74 MB / 0.5027 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004341/13.68, allocations: 0.4994 MB / 3.81 GB, free: 18.73 MB / 0.5027 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00654/13.69, allocations: 3.965 MB / 3.813 GB, free: 15.96 MB / 0.5027 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004057/13.7, allocations: 208.4 kB / 3.814 GB, free: 15.93 MB / 0.5027 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006317/13.7, allocations: 101.9 kB / 3.814 GB, free: 15.93 MB / 0.5027 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,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.0009994/13.7, allocations: 242.4 kB / 3.814 GB, free: 15.76 MB / 0.5027 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002807/13.7, allocations: 0.6208 MB / 3.815 GB, free: 15.66 MB / 0.5027 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02012/13.72, allocations: 6.742 MB / 3.821 GB, free: 15.16 MB / 0.5027 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.846e-05/13.72, allocations: 60.38 kB / 3.821 GB, free: 15.15 MB / 0.5027 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/13.72, allocations: 6.656 kB / 3.821 GB, free: 15.15 MB / 0.5027 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.278/14, allocations: 5.674 MB / 3.827 GB, free: 96.26 MB / 0.5027 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02294/14.02, allocations: 9.229 MB / 3.836 GB, free: 95.47 MB / 0.5027 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.925e-05/14.02, allocations: 3.656 kB / 3.836 GB, free: 95.47 MB / 0.5027 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003917/14.03, allocations: 273.8 kB / 3.836 GB, free: 95.47 MB / 0.5027 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01067/14.04, allocations: 2.042 MB / 3.838 GB, free: 95.39 MB / 0.5027 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007296/14.04, allocations: 53.05 kB / 3.838 GB, free: 95.39 MB / 0.5027 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009079/14.05, allocations: 4.288 MB / 3.842 GB, free: 93.3 MB / 0.5027 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.106e-05/14.05, allocations: 0 / 3.842 GB, free: 93.3 MB / 0.5027 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0291/14.08, allocations: 7.157 MB / 3.849 GB, free: 92.85 MB / 0.5027 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02419/14.1, allocations: 9.627 MB / 3.859 GB, free: 92 MB / 0.5027 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002545/14.1, allocations: 0.6791 MB / 3.859 GB, free: 91.82 MB / 0.5027 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009876/14.1, allocations: 21.75 kB / 3.859 GB, free: 91.82 MB / 0.5027 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00341/14.11, allocations: 154 kB / 3.859 GB, free: 91.81 MB / 0.5027 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006752/14.11, allocations: 122 kB / 3.86 GB, free: 91.81 MB / 0.5027 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002826/14.11, allocations: 69.42 kB / 3.86 GB, free: 91.81 MB / 0.5027 GB Notification: Performance of sort global known variables: time 0.003012/14.11, allocations: 1.096 MB / 3.861 GB, free: 91.67 MB / 0.5027 GB Notification: Performance of remove unused functions: time 0.02099/14.13, allocations: 3.203 MB / 3.864 GB, free: 91.67 MB / 0.5027 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 37 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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) * 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 (143): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 9 * 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.01978/14.15, allocations: 3.07 MB / 3.867 GB, free: 91.53 MB / 0.5027 GB Notification: Performance of simCode: created initialization part: time 0.01569/14.17, allocations: 5.568 MB / 3.872 GB, free: 91.12 MB / 0.5027 GB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/14.17, allocations: 3.406 kB / 3.872 GB, free: 91.12 MB / 0.5027 GB Notification: Performance of simCode: created simulation system equations: time 0.005618/14.17, allocations: 2.667 MB / 3.875 GB, free: 91.04 MB / 0.5027 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008275/14.18, allocations: 0.7324 MB / 3.876 GB, free: 91.02 MB / 0.5027 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0892/14.27, allocations: 19.61 MB / 3.895 GB, free: 90.01 MB / 0.5027 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005771/14.28, allocations: 2.352 MB / 3.897 GB, free: 89.24 MB / 0.5027 GB Notification: Performance of SimCode: time 1.844e-06/14.28, allocations: 0 / 3.897 GB, free: 89.24 MB / 0.5027 GB