Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_LumpedPipeInitialization",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.198/2.198, allocations: 234.9 MB / 241.9 MB, free: 9.777 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1543/2.352, allocations: 57.21 MB / 299.1 MB, free: 464 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/2.649, allocations: 54.84 MB / 354 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.369/9.018, allocations: 2.652 GB / 2.997 GB, free: 38.35 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003431/9.019, allocations: 72.91 kB / 2.997 GB, free: 38.31 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 3.897/12.92, allocations: 0.7393 GB / 3.737 GB, free: 22.34 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/12.92, allocations: 12 kB / 3.737 GB, free: 22.32 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008939/12.92, allocations: 497.5 kB / 3.737 GB, free: 21.84 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006305/12.93, allocations: 1.128 MB / 3.738 GB, free: 20.69 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003206/12.93, allocations: 113.4 kB / 3.738 GB, free: 20.57 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007217/12.93, allocations: 55.91 kB / 3.738 GB, free: 20.52 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006532/12.94, allocations: 1.366 MB / 3.74 GB, free: 19.15 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006635/12.95, allocations: 1.49 MB / 3.741 GB, free: 17.55 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.157e-05/12.95, allocations: 3.938 kB / 3.741 GB, free: 17.55 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003511/12.95, allocations: 4 kB / 3.741 GB, free: 17.55 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00018/12.95, allocations: 85.89 kB / 3.741 GB, free: 17.46 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8552/13.8, allocations: 135.1 MB / 3.873 GB, free: 31.91 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/13.8, allocations: 0.4896 MB / 3.874 GB, free: 31.89 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008961/13.8, allocations: 388.3 kB / 3.874 GB, free: 31.88 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1789/13.98, allocations: 48.31 MB / 3.921 GB, free: 32.69 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001499/13.98, allocations: 0.5112 MB / 3.922 GB, free: 32.58 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=66): time 4.208e-06/13.98, allocations: 0 / 3.922 GB, free: 32.58 MB / 0.5417 GB Notification: Performance of matching and sorting (n=70): time 0.01573/14, allocations: 3.212 MB / 3.925 GB, free: 31.91 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002412/14, allocations: 352 kB / 3.925 GB, free: 31.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002066/14, allocations: 0.8584 MB / 3.926 GB, free: 31.35 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003143/14, allocations: 31.39 kB / 3.926 GB, free: 31.32 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005766/14, allocations: 0.5002 MB / 3.927 GB, free: 31.06 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000485/14, allocations: 237.9 kB / 3.927 GB, free: 30.94 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/14, allocations: 0 / 3.927 GB, free: 30.94 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002023/14, allocations: 360.3 kB / 3.927 GB, free: 30.63 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001437/14.01, allocations: 0.4981 MB / 3.928 GB, free: 30.63 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001783/14.01, allocations: 0.9592 MB / 3.929 GB, free: 30.06 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01393/14.02, allocations: 1.761 MB / 3.93 GB, free: 30.01 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.047e-05/14.02, allocations: 3.844 kB / 3.93 GB, free: 30.01 MB / 0.5417 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.02016/14.04, allocations: 3.289 MB / 3.934 GB, free: 29.87 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.00231/14.04, allocations: 5.399 MB / 3.939 GB, free: 24.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.375e-05/14.04, allocations: 16.81 kB / 3.939 GB, free: 24.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006369/14.05, allocations: 0.7604 MB / 3.94 GB, free: 24.17 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00193/14.05, allocations: 252.8 kB / 3.94 GB, free: 24.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005576/14.06, allocations: 1.851 MB / 3.942 GB, free: 23.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002837/14.06, allocations: 127.4 kB / 3.942 GB, free: 23.62 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002401/14.06, allocations: 72.78 kB / 3.942 GB, free: 23.62 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/14.06, allocations: 3.719 kB / 3.942 GB, free: 23.62 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01608/14.08, allocations: 2.5 MB / 3.944 GB, free: 23.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.638e-05/14.08, allocations: 15.97 kB / 3.944 GB, free: 23.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002093/14.08, allocations: 338.8 kB / 3.945 GB, free: 23.54 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002158/14.08, allocations: 288.9 kB / 3.945 GB, free: 23.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002155/14.08, allocations: 1.083 MB / 3.946 GB, free: 23 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00243/14.09, allocations: 114.8 kB / 3.946 GB, free: 22.99 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000202/14.09, allocations: 74.27 kB / 3.946 GB, free: 22.99 MB / 0.5417 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: 62 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,source.medium.phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0005622/14.09, allocations: 167.9 kB / 3.946 GB, free: 22.88 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001828/14.09, allocations: 403.9 kB / 3.947 GB, free: 22.82 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00805/14.1, allocations: 3.01 MB / 3.95 GB, free: 22.62 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-05/14.1, allocations: 30.66 kB / 3.95 GB, free: 22.62 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/14.1, allocations: 8.969 kB / 3.95 GB, free: 22.62 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.262e-05/14.1, allocations: 3.562 kB / 3.95 GB, free: 22.62 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009939/14.11, allocations: 4.683 MB / 3.954 GB, free: 21.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/14.11, allocations: 3.781 kB / 3.954 GB, free: 21.92 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/14.11, allocations: 120.7 kB / 3.954 GB, free: 21.92 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0086/14.12, allocations: 1.343 MB / 3.956 GB, free: 21.83 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001957/14.12, allocations: 15.75 kB / 3.956 GB, free: 21.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00383/14.12, allocations: 2.158 MB / 3.958 GB, free: 20.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/14.12, allocations: 1.812 kB / 3.958 GB, free: 20.75 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009097/14.13, allocations: 3.428 MB / 3.961 GB, free: 20.35 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01204/14.14, allocations: 4.744 MB / 3.966 GB, free: 19.56 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001256/14.14, allocations: 363.2 kB / 3.966 GB, free: 19.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003695/14.14, allocations: 6.594 kB / 3.966 GB, free: 19.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001586/14.15, allocations: 77.48 kB / 3.966 GB, free: 19.38 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000206/14.15, allocations: 62.52 kB / 3.966 GB, free: 19.38 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/14.15, allocations: 30.19 kB / 3.966 GB, free: 19.38 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001556/14.15, allocations: 0.6206 MB / 3.967 GB, free: 19.27 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01347/14.16, allocations: 2.353 MB / 3.969 GB, free: 19.27 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01437/14.18, allocations: 2.567 MB / 3.972 GB, free: 18.04 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.006511/14.18, allocations: 2.465 MB / 3.974 GB, free: 16.67 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.073e-05/14.18, allocations: 4.016 kB / 3.974 GB, free: 16.67 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002303/14.18, allocations: 1.156 MB / 3.975 GB, free: 16.12 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00425/14.19, allocations: 449.1 kB / 3.976 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006728/14.2, allocations: 2.524 MB / 3.978 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001903/14.2, allocations: 1.441 MB / 3.979 GB, free: 12.94 MB / 0.5417 GB Notification: Performance of SimCode: time 1.432e-06/14.2, allocations: 0 / 3.979 GB, free: 12.94 MB / 0.5417 GB