Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",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.814/1.814, allocations: 209.3 MB / 216.3 MB, free: 6.816 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2303/2.044, allocations: 51.04 MB / 267.3 MB, free: 5.16 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/2.167, allocations: 48.69 MB / 316 MB, free: 4.375 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.467/8.634, allocations: 2.545 GB / 2.854 GB, free: 57.17 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/8.634, allocations: 72.41 kB / 2.854 GB, free: 57.13 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 4.45/13.08, allocations: 0.841 GB / 3.695 GB, free: 23.21 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.264e-05/13.08, allocations: 7.031 kB / 3.695 GB, free: 23.21 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01627/13.1, allocations: 0.7886 MB / 3.696 GB, free: 23.08 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01299/13.11, allocations: 1.942 MB / 3.698 GB, free: 22.6 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004088/13.11, allocations: 85.84 kB / 3.698 GB, free: 22.6 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001415/13.12, allocations: 109.7 kB / 3.698 GB, free: 22.59 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01118/13.13, allocations: 2.391 MB / 3.7 GB, free: 22.59 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01358/13.14, allocations: 2.616 MB / 3.703 GB, free: 22.11 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001446/13.14, allocations: 7.812 kB / 3.703 GB, free: 22.11 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001117/13.14, allocations: 3.938 kB / 3.703 GB, free: 22.11 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003431/13.14, allocations: 150.1 kB / 3.703 GB, free: 22.11 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7751/13.92, allocations: 109.5 MB / 3.81 GB, free: 72.83 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003978/13.92, allocations: 0.9953 MB / 3.811 GB, free: 72.81 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003323/13.92, allocations: 0.8982 MB / 3.812 GB, free: 72.8 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06741/13.99, allocations: 17.52 MB / 3.829 GB, free: 61.57 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002757/13.99, allocations: 1.113 MB / 3.83 GB, free: 61.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=132): time 5.861e-06/13.99, allocations: 0 / 3.83 GB, free: 61.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=144): time 0.03396/14.03, allocations: 7.42 MB / 3.837 GB, free: 60.03 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002272/14.03, allocations: 367 kB / 3.837 GB, free: 59.62 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004601/14.03, allocations: 1.077 MB / 3.838 GB, free: 59.46 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006432/14.03, allocations: 31.88 kB / 3.838 GB, free: 59.43 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/14.04, allocations: 0.7144 MB / 3.839 GB, free: 59.11 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001546/14.04, allocations: 487.3 kB / 3.84 GB, free: 58.86 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004637/14.04, allocations: 0 / 3.84 GB, free: 58.86 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002475/14.04, allocations: 374.5 kB / 3.84 GB, free: 58.55 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004237/14.04, allocations: 0.9983 MB / 3.841 GB, free: 58.55 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004761/14.05, allocations: 1.392 MB / 3.842 GB, free: 58.12 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03333/14.08, allocations: 2.901 MB / 3.845 GB, free: 58.05 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-05/14.08, allocations: 3.969 kB / 3.845 GB, free: 58.05 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.05006/14.13, allocations: 5.249 MB / 3.85 GB, free: 57.81 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001233/14.13, allocations: 4.246 MB / 3.854 GB, free: 53.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-05/14.13, allocations: 10.78 kB / 3.854 GB, free: 53.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005831/14.14, allocations: 0.5746 MB / 3.855 GB, free: 53.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003902/14.14, allocations: 444.3 kB / 3.855 GB, free: 53.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007168/14.15, allocations: 3.088 MB / 3.858 GB, free: 51.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007146/14.16, allocations: 234.7 kB / 3.859 GB, free: 51.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009363/14.16, allocations: 100.9 kB / 3.859 GB, free: 51.25 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/14.16, allocations: 5.781 kB / 3.859 GB, free: 51.25 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02802/14.19, allocations: 4.088 MB / 3.863 GB, free: 51.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.081e-05/14.19, allocations: 13.25 kB / 3.863 GB, free: 51.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007709/14.19, allocations: 188.1 kB / 3.863 GB, free: 51.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004049/14.19, allocations: 472.6 kB / 3.863 GB, free: 51.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002035/14.19, allocations: 1.921 MB / 3.865 GB, free: 49.54 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003968/14.2, allocations: 209.8 kB / 3.865 GB, free: 49.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006846/14.2, allocations: 92.42 kB / 3.866 GB, free: 49.52 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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_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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 2 * 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 {1 1,1 1,1 1,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0008821/14.2, allocations: 224.9 kB / 3.866 GB, free: 49.34 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002867/14.2, allocations: 0.6042 MB / 3.866 GB, free: 49.26 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01672/14.22, allocations: 6.273 MB / 3.872 GB, free: 48.75 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.613e-05/14.22, allocations: 52.95 kB / 3.873 GB, free: 48.75 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/14.22, allocations: 7.688 kB / 3.873 GB, free: 48.75 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01201/14.23, allocations: 5.253 MB / 3.878 GB, free: 48.04 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02371/14.25, allocations: 8.617 MB / 3.886 GB, free: 47.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.561e-05/14.25, allocations: 0 / 3.886 GB, free: 47.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003907/14.26, allocations: 264.1 kB / 3.886 GB, free: 47.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006364/14.26, allocations: 1.303 MB / 3.888 GB, free: 47.12 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006384/14.27, allocations: 43.52 kB / 3.888 GB, free: 47.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006517/14.27, allocations: 3.617 MB / 3.891 GB, free: 45 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.838e-06/14.27, allocations: 8.062 kB / 3.891 GB, free: 45 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01869/14.29, allocations: 6.587 MB / 3.898 GB, free: 44.43 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02658/14.32, allocations: 8.913 MB / 3.906 GB, free: 43.47 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003568/14.32, allocations: 0.6351 MB / 3.907 GB, free: 43.25 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001524/14.32, allocations: 19.02 kB / 3.907 GB, free: 43.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003825/14.33, allocations: 144.8 kB / 3.907 GB, free: 43.23 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005588/14.33, allocations: 109.8 kB / 3.907 GB, free: 43.23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003092/14.33, allocations: 69.77 kB / 3.907 GB, free: 43.23 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.002603/14.33, allocations: 1.015 MB / 3.908 GB, free: 43.12 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01845/14.35, allocations: 3.101 MB / 3.911 GB, free: 43.03 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.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 (139): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 2 * 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,1 1,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01653/14.37, allocations: 3.114 MB / 3.914 GB, free: 42.58 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.012/14.38, allocations: 4.793 MB / 3.919 GB, free: 42.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/14.38, allocations: 0.5625 kB / 3.919 GB, free: 42.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005928/14.38, allocations: 2.568 MB / 3.922 GB, free: 42.32 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008014/14.39, allocations: 0.7608 MB / 3.922 GB, free: 42.27 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1009/14.49, allocations: 19.19 MB / 3.941 GB, free: 35.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006817/14.5, allocations: 2.214 MB / 3.943 GB, free: 33.53 MB / 490.7 MB Notification: Performance of SimCode: time 1.764e-06/14.5, allocations: 0 / 3.943 GB, free: 33.53 MB / 490.7 MB