Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",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.065/2.065, allocations: 209.3 MB / 216.3 MB, free: 0.7969 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1388/2.203, allocations: 51.03 MB / 267.3 MB, free: 13.68 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/2.488, allocations: 48.7 MB / 316 MB, free: 14.44 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.8/4.288, allocations: 0.6803 GB / 0.9888 GB, free: 59.38 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/4.288, allocations: 78.73 kB / 0.9889 GB, free: 59.34 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: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 2.848/7.136, allocations: 0.5492 GB / 1.538 GB, free: 0.7578 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/7.136, allocations: 8 kB / 1.538 GB, free: 0.75 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005172/7.141, allocations: 444.8 kB / 1.539 GB, free: 320 kB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009203/7.15, allocations: 1.934 MB / 1.54 GB, free: 14.36 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000177/7.15, allocations: 67.83 kB / 1.54 GB, free: 14.29 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009717/7.151, allocations: 100 kB / 1.541 GB, free: 14.19 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007979/7.159, allocations: 2.169 MB / 1.543 GB, free: 12.02 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007554/7.167, allocations: 2.391 MB / 1.545 GB, free: 9.477 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.754e-05/7.167, allocations: 7.875 kB / 1.545 GB, free: 9.469 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000382/7.168, allocations: 8 kB / 1.545 GB, free: 9.461 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002836/7.168, allocations: 155 kB / 1.545 GB, free: 9.309 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2407/7.409, allocations: 11.38 MB / 1.556 GB, free: 65.27 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003209/7.412, allocations: 1.013 MB / 1.557 GB, free: 65.25 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003684/7.416, allocations: 0.9672 MB / 1.558 GB, free: 65.23 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001709/7.417, allocations: 454.9 kB / 1.559 GB, free: 64.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002903/7.42, allocations: 1.056 MB / 1.56 GB, free: 64.84 MB / 458.7 MB Notification: Performance of pre-optimization done (n=149): time 6.052e-06/7.42, allocations: 0 / 1.56 GB, free: 64.84 MB / 458.7 MB Notification: Performance of matching and sorting (n=169): time 0.07535/7.496, allocations: 9.383 MB / 1.569 GB, free: 64.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/7.496, allocations: 257.8 kB / 1.569 GB, free: 63.92 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002626/7.499, allocations: 1.08 MB / 1.57 GB, free: 63.76 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006827/7.499, allocations: 27.58 kB / 1.57 GB, free: 63.73 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008654/7.5, allocations: 0.6673 MB / 1.571 GB, free: 63.43 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001155/7.501, allocations: 0.5551 MB / 1.571 GB, free: 63.14 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003206/7.502, allocations: 0 / 1.571 GB, free: 63.14 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002023/7.502, allocations: 385.4 kB / 1.572 GB, free: 62.83 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003771/7.506, allocations: 0.9873 MB / 1.573 GB, free: 62.83 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00446/7.51, allocations: 1.42 MB / 1.574 GB, free: 62.39 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02559/7.536, allocations: 2.411 MB / 1.576 GB, free: 62.38 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.069e-05/7.536, allocations: 3.625 kB / 1.576 GB, free: 62.38 MB / 458.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.03317/7.569, allocations: 4.039 MB / 1.58 GB, free: 62.17 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001206/7.57, allocations: 4.168 MB / 1.584 GB, free: 57.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.703e-05/7.57, allocations: 10.59 kB / 1.584 GB, free: 57.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008724/7.571, allocations: 178.4 kB / 1.585 GB, free: 57.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006721/7.578, allocations: 0.5372 MB / 1.585 GB, free: 57.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002517/7.581, allocations: 2.365 MB / 1.588 GB, free: 55.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005051/7.586, allocations: 175.3 kB / 1.588 GB, free: 55.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009033/7.587, allocations: 192.1 kB / 1.588 GB, free: 55.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/7.587, allocations: 3.406 kB / 1.588 GB, free: 55.8 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02083/7.608, allocations: 3.51 MB / 1.591 GB, free: 55.72 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.01e-05/7.608, allocations: 10.81 kB / 1.591 GB, free: 55.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005483/7.608, allocations: 173.2 kB / 1.591 GB, free: 55.69 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004697/7.613, allocations: 0.524 MB / 1.592 GB, free: 55.69 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001864/7.615, allocations: 2.368 MB / 1.594 GB, free: 53.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004359/7.619, allocations: 170.1 kB / 1.594 GB, free: 53.61 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009427/7.62, allocations: 183.4 kB / 1.595 GB, free: 53.61 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent) * 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.0009738/7.621, allocations: 217.9 kB / 1.595 GB, free: 53.44 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006688/7.622, allocations: 185.6 kB / 1.595 GB, free: 53.35 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02783/7.65, allocations: 4.21 MB / 1.599 GB, free: 53.19 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.503e-05/7.65, allocations: 16.72 kB / 1.599 GB, free: 53.19 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/7.65, allocations: 0 / 1.599 GB, free: 53.19 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.029/7.679, allocations: 3.463 MB / 1.603 GB, free: 52.67 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04715/7.726, allocations: 6.722 MB / 1.609 GB, free: 51.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.146e-05/7.726, allocations: 7.188 kB / 1.609 GB, free: 51.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003908/7.73, allocations: 403.5 kB / 1.609 GB, free: 51.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006817/7.731, allocations: 169.5 kB / 1.61 GB, free: 51.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005474/7.731, allocations: 70.62 kB / 1.61 GB, free: 51.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002504/7.734, allocations: 3.028 MB / 1.613 GB, free: 48.95 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/7.734, allocations: 9.219 kB / 1.613 GB, free: 48.95 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03223/7.766, allocations: 5.222 MB / 1.618 GB, free: 47.91 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03095/7.797, allocations: 7.084 MB / 1.625 GB, free: 46.47 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003375/7.801, allocations: 0.5032 MB / 1.625 GB, free: 46.28 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001337/7.802, allocations: 24.12 kB / 1.625 GB, free: 46.28 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00506/7.807, allocations: 90.25 kB / 1.625 GB, free: 46.27 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009774/7.808, allocations: 144.2 kB / 1.625 GB, free: 46.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006669/7.809, allocations: 147 kB / 1.626 GB, free: 46.27 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002889/7.812, allocations: 0.7928 MB / 1.626 GB, free: 46.16 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01693/7.829, allocations: 2.245 MB / 1.629 GB, free: 46.16 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,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 (181): * Single equations (assignments): 175 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01227/7.841, allocations: 2.687 MB / 1.631 GB, free: 45.88 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01678/7.858, allocations: 3.904 MB / 1.635 GB, free: 45.71 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.143e-05/7.858, allocations: 8.5 kB / 1.635 GB, free: 45.71 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005598/7.864, allocations: 1.331 MB / 1.636 GB, free: 45.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01128/7.875, allocations: 0.7362 MB / 1.637 GB, free: 45.53 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0254/7.901, allocations: 5.584 MB / 1.642 GB, free: 44.64 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006523/7.907, allocations: 2.148 MB / 1.645 GB, free: 43.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.844e-06/7.907, allocations: 2.656 kB / 1.645 GB, free: 43.9 MB / 458.7 MB