Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",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.17/2.17, allocations: 234.9 MB / 241.9 MB, free: 9.797 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2354/2.406, allocations: 57.2 MB / 299.1 MB, free: 492 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/2.69, allocations: 54.85 MB / 354 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.66/9.35, allocations: 2.663 GB / 3.009 GB, free: 74.53 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003073/9.351, allocations: 79.67 kB / 3.009 GB, free: 74.49 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 2.637/11.99, allocations: 0.4883 GB / 3.497 GB, free: 42.29 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.424e-05/11.99, allocations: 13.25 kB / 3.497 GB, free: 42.29 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01251/12, allocations: 0.7309 MB / 3.498 GB, free: 42.18 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009815/12.01, allocations: 1.59 MB / 3.499 GB, free: 41.83 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005276/12.01, allocations: 96.86 kB / 3.499 GB, free: 41.83 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001868/12.01, allocations: 101.4 kB / 3.5 GB, free: 41.83 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01086/12.02, allocations: 2.913 MB / 3.502 GB, free: 41.82 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009502/12.03, allocations: 2.953 MB / 3.505 GB, free: 41.38 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.503e-05/12.03, allocations: 7.562 kB / 3.505 GB, free: 41.38 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004641/12.03, allocations: 6.719 kB / 3.505 GB, free: 41.38 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001954/12.03, allocations: 187.7 kB / 3.505 GB, free: 41.38 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5266/12.56, allocations: 141.1 MB / 3.643 GB, free: 31.3 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003212/12.56, allocations: 1.159 MB / 3.644 GB, free: 30.65 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002577/12.57, allocations: 1.023 MB / 3.645 GB, free: 30.1 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06031/12.63, allocations: 16.74 MB / 3.662 GB, free: 13.73 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003261/12.63, allocations: 1.171 MB / 3.663 GB, free: 13.1 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=139): time 6.162e-06/12.63, allocations: 0 / 3.663 GB, free: 13.1 MB / 0.5573 GB Notification: Performance of matching and sorting (n=159): time 0.03748/12.67, allocations: 7.66 MB / 3.67 GB, free: 8.348 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/12.67, allocations: 230.3 kB / 3.671 GB, free: 8.082 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002234/12.67, allocations: 0.9545 MB / 3.672 GB, free: 7.465 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006884/12.67, allocations: 29.7 kB / 3.672 GB, free: 7.43 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001317/12.67, allocations: 0.7727 MB / 3.672 GB, free: 6.832 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001469/12.67, allocations: 0.5295 MB / 3.673 GB, free: 6.41 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005033/12.67, allocations: 0 / 3.673 GB, free: 6.41 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0006308/12.68, allocations: 448.4 kB / 3.673 GB, free: 6.062 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005525/12.68, allocations: 1.244 MB / 3.674 GB, free: 5.402 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005462/12.69, allocations: 1.781 MB / 3.676 GB, free: 4.051 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0118/12.7, allocations: 2.151 MB / 3.678 GB, free: 2.926 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.309e-05/12.7, allocations: 4 kB / 3.678 GB, free: 2.922 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.02555/12.72, allocations: 5.315 MB / 3.684 GB, free: 0 / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.2206/12.94, allocations: 6.268 MB / 3.69 GB, free: 147.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.492e-05/12.94, allocations: 18.06 kB / 3.69 GB, free: 147.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02103/12.97, allocations: 2.847 MB / 3.692 GB, free: 147.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002588/12.97, allocations: 328.9 kB / 3.693 GB, free: 147.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01441/12.98, allocations: 4.84 MB / 3.697 GB, free: 147 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004534/12.99, allocations: 252.3 kB / 3.698 GB, free: 147 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006443/12.99, allocations: 112 kB / 3.698 GB, free: 147 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/12.99, allocations: 6.781 kB / 3.698 GB, free: 147 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01865/13.01, allocations: 4.192 MB / 3.702 GB, free: 147 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-05/13.01, allocations: 19.52 kB / 3.702 GB, free: 147 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01535/13.02, allocations: 2.193 MB / 3.704 GB, free: 146.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003011/13.03, allocations: 362.3 kB / 3.704 GB, free: 146.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008984/13.03, allocations: 3.635 MB / 3.708 GB, free: 146.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004309/13.04, allocations: 233.1 kB / 3.708 GB, free: 146.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005358/13.04, allocations: 107.6 kB / 3.708 GB, free: 146.4 MB / 0.5573 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0008605/13.04, allocations: 162.2 kB / 3.708 GB, free: 146.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002357/13.04, allocations: 0.5099 MB / 3.709 GB, free: 146.3 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01434/13.06, allocations: 5.198 MB / 3.714 GB, free: 146 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.127e-05/13.06, allocations: 43.66 kB / 3.714 GB, free: 146 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/13.06, allocations: 0 / 3.714 GB, free: 146 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01109/13.07, allocations: 4.658 MB / 3.719 GB, free: 145.3 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02004/13.09, allocations: 7.671 MB / 3.726 GB, free: 144.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-05/13.09, allocations: 3.812 kB / 3.726 GB, free: 144.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003591/13.09, allocations: 364 kB / 3.726 GB, free: 144.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002089/13.09, allocations: 422.9 kB / 3.727 GB, free: 144.7 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005884/13.09, allocations: 42.09 kB / 3.727 GB, free: 144.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002773/13.1, allocations: 3.399 MB / 3.73 GB, free: 142.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.638e-06/13.1, allocations: 3.375 kB / 3.73 GB, free: 142.1 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01749/13.12, allocations: 6.393 MB / 3.736 GB, free: 141.8 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02176/13.14, allocations: 8.879 MB / 3.745 GB, free: 140.9 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002143/13.14, allocations: 0.5394 MB / 3.746 GB, free: 140.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007582/13.14, allocations: 26.28 kB / 3.746 GB, free: 140.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004189/13.14, allocations: 166.5 kB / 3.746 GB, free: 140.7 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001012/13.15, allocations: 146.6 kB / 3.746 GB, free: 140.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004479/13.15, allocations: 62.33 kB / 3.746 GB, free: 140.7 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001631/13.15, allocations: 0.6905 MB / 3.747 GB, free: 140.6 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01588/13.16, allocations: 2.531 MB / 3.749 GB, free: 140.6 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0142/13.18, allocations: 2.136 MB / 3.751 GB, free: 140.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01565/13.19, allocations: 5.366 MB / 3.757 GB, free: 140.4 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/13.19, allocations: 6.719 kB / 3.757 GB, free: 140.4 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007962/13.2, allocations: 2.394 MB / 3.759 GB, free: 140.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005685/13.21, allocations: 0.5337 MB / 3.759 GB, free: 140.4 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01528/13.22, allocations: 5.023 MB / 3.764 GB, free: 139.6 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003635/13.23, allocations: 1.992 MB / 3.766 GB, free: 138.9 MB / 0.5573 GB Notification: Performance of SimCode: time 1.663e-06/13.23, allocations: 0 / 3.766 GB, free: 138.9 MB / 0.5573 GB