Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",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 2.034/2.034, allocations: 209.3 MB / 216.3 MB, free: 6.793 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2588/2.293, allocations: 51.04 MB / 267.3 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/2.414, allocations: 48.69 MB / 316 MB, free: 4.355 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.116/8.53, allocations: 2.545 GB / 2.853 GB, free: 58.21 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/8.531, allocations: 81.39 kB / 2.853 GB, free: 58.17 MB / 426.7 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 4.446/12.98, allocations: 0.7758 GB / 3.629 GB, free: 32.18 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/12.98, allocations: 12.72 kB / 3.629 GB, free: 32.18 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01161/12.99, allocations: 0.841 MB / 3.63 GB, free: 32.04 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009247/13, allocations: 2.086 MB / 3.632 GB, free: 31.58 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002902/13, allocations: 93.77 kB / 3.632 GB, free: 31.58 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001263/13, allocations: 117.2 kB / 3.632 GB, free: 31.58 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01091/13.01, allocations: 2.921 MB / 3.635 GB, free: 31.57 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009732/13.02, allocations: 2.921 MB / 3.638 GB, free: 31.02 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.148e-05/13.02, allocations: 7.531 kB / 3.638 GB, free: 31.02 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003956/13.02, allocations: 3.938 kB / 3.638 GB, free: 31.02 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000238/13.02, allocations: 176.1 kB / 3.638 GB, free: 31.02 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.551/13.57, allocations: 109.9 MB / 3.745 GB, free: 21.55 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003775/13.58, allocations: 1.149 MB / 3.747 GB, free: 21.53 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003091/13.58, allocations: 1.009 MB / 3.748 GB, free: 21.51 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06738/13.65, allocations: 17.53 MB / 3.765 GB, free: 9.836 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00439/13.65, allocations: 1.234 MB / 3.766 GB, free: 9.621 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=148): time 7.274e-06/13.65, allocations: 1.406 kB / 3.766 GB, free: 9.621 MB / 0.5105 GB Notification: Performance of matching and sorting (n=160): time 0.03774/13.69, allocations: 8.206 MB / 3.774 GB, free: 4.18 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003647/13.69, allocations: 0.5069 MB / 3.774 GB, free: 3.562 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003447/13.69, allocations: 1.206 MB / 3.776 GB, free: 2.797 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007056/13.69, allocations: 25.7 kB / 3.776 GB, free: 2.766 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001226/13.69, allocations: 0.7816 MB / 3.776 GB, free: 2.184 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001325/13.7, allocations: 0.5233 MB / 3.777 GB, free: 1.766 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003111/13.7, allocations: 0 / 3.777 GB, free: 1.766 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003204/13.7, allocations: 389.4 kB / 3.777 GB, free: 1.438 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003491/13.7, allocations: 1.152 MB / 3.778 GB, free: 0.8164 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2532/13.95, allocations: 1.604 MB / 3.78 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03273/13.99, allocations: 3.09 MB / 3.783 GB, free: 110 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-05/13.99, allocations: 3.844 kB / 3.783 GB, free: 110 MB / 0.5105 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.03928/14.03, allocations: 5.661 MB / 3.788 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001289/14.03, allocations: 4.452 MB / 3.793 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001174/14.03, allocations: 17.77 kB / 3.793 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00752/14.03, allocations: 0.8707 MB / 3.794 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004275/14.04, allocations: 478 kB / 3.794 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006262/14.04, allocations: 3.522 MB / 3.798 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004651/14.05, allocations: 234.9 kB / 3.798 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008135/14.05, allocations: 104.3 kB / 3.798 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/14.05, allocations: 6.625 kB / 3.798 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02879/14.08, allocations: 4.538 MB / 3.802 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001027/14.08, allocations: 20.39 kB / 3.802 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002078/14.08, allocations: 352.8 kB / 3.803 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004402/14.09, allocations: 0.4907 MB / 3.803 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005902/14.09, allocations: 3.985 MB / 3.807 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004064/14.1, allocations: 201.6 kB / 3.807 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000462/14.1, allocations: 106.5 kB / 3.807 GB, free: 100.5 MB / 0.5105 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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.0008602/14.1, allocations: 228.9 kB / 3.808 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002773/14.1, allocations: 0.6238 MB / 3.808 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01811/14.12, allocations: 6.746 MB / 3.815 GB, free: 99.97 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.314e-05/14.12, allocations: 56.33 kB / 3.815 GB, free: 99.97 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/14.12, allocations: 6.562 kB / 3.815 GB, free: 99.97 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01243/14.13, allocations: 5.674 MB / 3.82 GB, free: 99.27 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02291/14.15, allocations: 9.235 MB / 3.829 GB, free: 98.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-05/14.15, allocations: 0 / 3.829 GB, free: 98.45 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003587/14.16, allocations: 275.3 kB / 3.83 GB, free: 98.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00886/14.17, allocations: 2.049 MB / 3.832 GB, free: 98.36 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000588/14.17, allocations: 49.36 kB / 3.832 GB, free: 98.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006501/14.17, allocations: 4.277 MB / 3.836 GB, free: 96.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/14.17, allocations: 5.531 kB / 3.836 GB, free: 96.23 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01801/14.19, allocations: 7.151 MB / 3.843 GB, free: 95.63 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02306/14.22, allocations: 9.632 MB / 3.852 GB, free: 94.63 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002507/14.22, allocations: 0.6872 MB / 3.853 GB, free: 94.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009672/14.22, allocations: 16.94 kB / 3.853 GB, free: 94.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003513/14.22, allocations: 152.2 kB / 3.853 GB, free: 94.39 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006768/14.22, allocations: 122.7 kB / 3.853 GB, free: 94.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002788/14.22, allocations: 69.33 kB / 3.853 GB, free: 94.39 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002801/14.23, allocations: 1.097 MB / 3.854 GB, free: 94.25 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01875/14.24, allocations: 3.207 MB / 3.857 GB, free: 94.25 MB / 0.5105 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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.01755/14.26, allocations: 3.051 MB / 3.86 GB, free: 94.06 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0187/14.28, allocations: 5.57 MB / 3.866 GB, free: 93.64 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.51e-05/14.28, allocations: 0 / 3.866 GB, free: 93.64 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007727/14.29, allocations: 2.67 MB / 3.868 GB, free: 93.57 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007984/14.3, allocations: 0.7324 MB / 3.869 GB, free: 93.55 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08548/14.38, allocations: 19.6 MB / 3.888 GB, free: 92.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005541/14.39, allocations: 2.356 MB / 3.891 GB, free: 91.73 MB / 0.5105 GB Notification: Performance of SimCode: time 2.244e-06/14.39, allocations: 3.25 kB / 3.891 GB, free: 91.73 MB / 0.5105 GB