Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",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.013/2.013, allocations: 235 MB / 241.9 MB, free: 9.801 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1589/2.172, allocations: 57.2 MB / 299.1 MB, free: 492 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/2.459, allocations: 54.85 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.665/9.124, allocations: 2.659 GB / 3.005 GB, free: 109.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/9.125, allocations: 79.58 kB / 3.005 GB, free: 109.2 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 4.58/13.7, allocations: 0.8986 GB / 3.904 GB, free: 33.47 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/13.7, allocations: 7.125 kB / 3.904 GB, free: 33.47 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01057/13.71, allocations: 0.9111 MB / 3.905 GB, free: 33.33 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009815/13.72, allocations: 2.096 MB / 3.907 GB, free: 32.88 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002959/13.73, allocations: 109.3 kB / 3.907 GB, free: 32.88 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001107/13.73, allocations: 115 kB / 3.907 GB, free: 32.88 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01017/13.74, allocations: 2.741 MB / 3.91 GB, free: 32.86 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009712/13.75, allocations: 2.933 MB / 3.912 GB, free: 32.35 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-05/13.75, allocations: 6.75 kB / 3.912 GB, free: 32.35 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005326/13.75, allocations: 7.5 kB / 3.912 GB, free: 32.35 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000249/13.75, allocations: 172.5 kB / 3.913 GB, free: 32.34 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5108/14.26, allocations: 111.1 MB / 4.021 GB, free: 21.82 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004415/14.26, allocations: 1.118 MB / 4.022 GB, free: 21.8 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00335/14.27, allocations: 0.9831 MB / 4.023 GB, free: 21.79 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09479/14.36, allocations: 17.54 MB / 4.04 GB, free: 10.11 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004729/14.37, allocations: 1.197 MB / 4.041 GB, free: 9.945 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=153): time 8.736e-06/14.37, allocations: 0 / 4.041 GB, free: 9.945 MB / 0.5573 GB Notification: Performance of matching and sorting (n=169): time 0.05768/14.42, allocations: 8.083 MB / 4.049 GB, free: 8.191 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002871/14.42, allocations: 361.5 kB / 4.05 GB, free: 7.781 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004354/14.43, allocations: 1.157 MB / 4.051 GB, free: 7.602 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007118/14.43, allocations: 36.09 kB / 4.051 GB, free: 7.566 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001319/14.43, allocations: 0.7929 MB / 4.052 GB, free: 7.094 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0014/14.43, allocations: 0.5464 MB / 4.052 GB, free: 6.734 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003729/14.43, allocations: 1.656 kB / 4.052 GB, free: 6.734 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003794/14.43, allocations: 388.7 kB / 4.052 GB, free: 6.43 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004702/14.44, allocations: 1.098 MB / 4.054 GB, free: 6.426 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005884/14.44, allocations: 1.549 MB / 4.055 GB, free: 5.75 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0334/14.48, allocations: 3.032 MB / 4.058 GB, free: 4.141 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.085e-05/14.48, allocations: 0 / 4.058 GB, free: 4.141 MB / 0.5573 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.04847/14.53, allocations: 5.413 MB / 4.063 GB, free: 1.078 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.003438/14.53, allocations: 4.878 MB / 4.068 GB, free: 12.02 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001095/14.53, allocations: 12 kB / 4.068 GB, free: 12.01 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001779/14.53, allocations: 230.9 kB / 4.068 GB, free: 11.87 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005042/14.54, allocations: 0.5237 MB / 4.069 GB, free: 11.46 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002852/14.54, allocations: 2.484 MB / 4.071 GB, free: 9.129 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005144/14.54, allocations: 268.2 kB / 4.071 GB, free: 8.926 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008915/14.54, allocations: 112.4 kB / 4.072 GB, free: 8.848 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/14.54, allocations: 4 kB / 4.072 GB, free: 8.844 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02936/14.57, allocations: 4.327 MB / 4.076 GB, free: 6.426 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.711e-05/14.57, allocations: 12.09 kB / 4.076 GB, free: 6.414 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/14.58, allocations: 225.6 kB / 4.076 GB, free: 6.27 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004816/14.58, allocations: 0.5224 MB / 4.077 GB, free: 5.871 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002788/14.58, allocations: 2.486 MB / 4.079 GB, free: 3.535 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005999/14.59, allocations: 244.5 kB / 4.079 GB, free: 3.352 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001209/14.59, allocations: 104.6 kB / 4.079 GB, free: 3.273 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase,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 (247): * Single equations (assignments): 241 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001593/14.59, allocations: 238.4 kB / 4.08 GB, free: 3.07 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006003/14.6, allocations: 0.6565 MB / 4.08 GB, free: 2.668 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2997/14.9, allocations: 6.051 MB / 4.086 GB, free: 123.1 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.405e-05/14.9, allocations: 49.38 kB / 4.086 GB, free: 123.1 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/14.9, allocations: 7.25 kB / 4.086 GB, free: 123.1 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01592/14.91, allocations: 5.019 MB / 4.091 GB, free: 122.4 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02291/14.94, allocations: 8.93 MB / 4.1 GB, free: 121.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/14.94, allocations: 5.625 kB / 4.1 GB, free: 121.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002921/14.94, allocations: 335.3 kB / 4.1 GB, free: 121.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001513/14.94, allocations: 319.6 kB / 4.1 GB, free: 121.3 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004922/14.94, allocations: 52.14 kB / 4.1 GB, free: 121.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002134/14.94, allocations: 2.657 MB / 4.103 GB, free: 119.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/14.94, allocations: 0 / 4.103 GB, free: 119.2 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01799/14.96, allocations: 6.743 MB / 4.11 GB, free: 118.8 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02896/14.99, allocations: 9.196 MB / 4.119 GB, free: 118 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00272/14.99, allocations: 0.678 MB / 4.119 GB, free: 117.8 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00113/14.99, allocations: 19.66 kB / 4.119 GB, free: 117.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003979/15, allocations: 180.4 kB / 4.119 GB, free: 117.8 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006992/15, allocations: 127.1 kB / 4.12 GB, free: 117.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002969/15, allocations: 76.62 kB / 4.12 GB, free: 117.8 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002663/15, allocations: 1.063 MB / 4.121 GB, free: 117.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02049/15.02, allocations: 3.289 MB / 4.124 GB, free: 117.7 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 38 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 11 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02034/15.04, allocations: 3.215 MB / 4.127 GB, free: 117.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01402/15.06, allocations: 5.222 MB / 4.132 GB, free: 117.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/15.06, allocations: 0 / 4.132 GB, free: 117.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005785/15.06, allocations: 2.636 MB / 4.135 GB, free: 117.3 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009287/15.07, allocations: 0.8116 MB / 4.136 GB, free: 117.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08677/15.16, allocations: 19.96 MB / 4.155 GB, free: 116.2 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004396/15.16, allocations: 2.338 MB / 4.157 GB, free: 115.5 MB / 0.573 GB Notification: Performance of SimCode: time 3.817e-06/15.16, allocations: 0 / 4.157 GB, free: 115.5 MB / 0.573 GB