Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",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.503/2.503, allocations: 235 MB / 241.9 MB, free: 9.777 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1886/2.692, allocations: 57.2 MB / 299.1 MB, free: 476 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/2.969, allocations: 54.85 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.747/9.716, allocations: 2.655 GB / 3 GB, free: 66.55 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003521/9.717, allocations: 86.88 kB / 3.001 GB, free: 66.5 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: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 3.276/12.99, allocations: 0.5727 GB / 3.573 GB, free: 33.59 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/12.99, allocations: 11.16 kB / 3.573 GB, free: 33.58 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007751/13, allocations: 0.5591 MB / 3.574 GB, free: 33.45 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006811/13.01, allocations: 1.453 MB / 3.575 GB, free: 32.76 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001962/13.01, allocations: 58.2 kB / 3.575 GB, free: 32.75 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006425/13.01, allocations: 83.16 kB / 3.575 GB, free: 32.75 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005529/13.01, allocations: 1.602 MB / 3.577 GB, free: 32.21 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005664/13.02, allocations: 1.8 MB / 3.579 GB, free: 31.36 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.71e-05/13.02, allocations: 3.219 kB / 3.579 GB, free: 31.36 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002634/13.02, allocations: 6.094 kB / 3.579 GB, free: 31.36 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001566/13.02, allocations: 115.3 kB / 3.579 GB, free: 31.34 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5669/13.59, allocations: 74.21 MB / 3.651 GB, free: 80.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001799/13.59, allocations: 0.6792 MB / 3.652 GB, free: 80.51 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/13.59, allocations: 0.5717 MB / 3.652 GB, free: 80.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06479/13.66, allocations: 17.43 MB / 3.669 GB, free: 69.61 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001843/13.66, allocations: 0.7288 MB / 3.67 GB, free: 69.48 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=88): time 5.581e-06/13.66, allocations: 0 / 3.67 GB, free: 69.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=96): time 0.02072/13.68, allocations: 4.806 MB / 3.675 GB, free: 68.48 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/13.68, allocations: 374.8 kB / 3.675 GB, free: 68.04 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/13.68, allocations: 0.8087 MB / 3.676 GB, free: 67.89 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003436/13.68, allocations: 28.77 kB / 3.676 GB, free: 67.86 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005386/13.68, allocations: 0.5365 MB / 3.677 GB, free: 67.61 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005284/13.68, allocations: 328.1 kB / 3.677 GB, free: 67.45 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/13.68, allocations: 0 / 3.677 GB, free: 67.45 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001273/13.68, allocations: 356.2 kB / 3.677 GB, free: 67.14 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001727/13.68, allocations: 0.6691 MB / 3.678 GB, free: 67.14 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001977/13.69, allocations: 0.9854 MB / 3.679 GB, free: 66.78 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01392/13.7, allocations: 1.905 MB / 3.681 GB, free: 66.77 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.19e-05/13.7, allocations: 5.719 kB / 3.681 GB, free: 66.77 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.02773/13.73, allocations: 3.404 MB / 3.684 GB, free: 66.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009619/13.73, allocations: 3.233 MB / 3.687 GB, free: 63.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.712e-05/13.73, allocations: 13.91 kB / 3.687 GB, free: 63.29 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006933/13.73, allocations: 125.8 kB / 3.687 GB, free: 63.27 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002835/13.73, allocations: 334.4 kB / 3.688 GB, free: 63.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/13.73, allocations: 1.281 MB / 3.689 GB, free: 62.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002931/13.74, allocations: 171.8 kB / 3.689 GB, free: 62.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004666/13.74, allocations: 67.23 kB / 3.689 GB, free: 62.23 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/13.74, allocations: 7.125 kB / 3.689 GB, free: 62.23 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01657/13.75, allocations: 2.718 MB / 3.692 GB, free: 62.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.782e-05/13.75, allocations: 14.89 kB / 3.692 GB, free: 62.19 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005044/13.75, allocations: 127.3 kB / 3.692 GB, free: 62.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002868/13.76, allocations: 329.9 kB / 3.692 GB, free: 62.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/13.76, allocations: 1.28 MB / 3.693 GB, free: 61.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002826/13.76, allocations: 151 kB / 3.694 GB, free: 61.13 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003652/13.76, allocations: 65.28 kB / 3.694 GB, free: 61.13 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005589/13.76, allocations: 181.3 kB / 3.694 GB, free: 60.99 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004007/13.77, allocations: 433.7 kB / 3.694 GB, free: 60.93 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01414/13.78, allocations: 3.704 MB / 3.698 GB, free: 60.63 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-05/13.78, allocations: 35.3 kB / 3.698 GB, free: 60.63 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/13.78, allocations: 3.625 kB / 3.698 GB, free: 60.63 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006029/13.79, allocations: 2.925 MB / 3.701 GB, free: 60.32 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01322/13.8, allocations: 5.441 MB / 3.706 GB, free: 59.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/13.8, allocations: 0 / 3.706 GB, free: 59.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00174/13.8, allocations: 187 kB / 3.706 GB, free: 59.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008185/13.8, allocations: 166.5 kB / 3.706 GB, free: 59.59 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001956/13.8, allocations: 29.44 kB / 3.706 GB, free: 59.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001144/13.8, allocations: 1.365 MB / 3.708 GB, free: 58.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.245e-06/13.8, allocations: 7.266 kB / 3.708 GB, free: 58.55 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01182/13.82, allocations: 4.062 MB / 3.712 GB, free: 58.12 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01283/13.83, allocations: 5.658 MB / 3.717 GB, free: 57.32 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00145/13.83, allocations: 493.8 kB / 3.718 GB, free: 57.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004474/13.83, allocations: 15 kB / 3.718 GB, free: 57.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/13.83, allocations: 92.52 kB / 3.718 GB, free: 57.13 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003088/13.83, allocations: 72.83 kB / 3.718 GB, free: 57.13 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001564/13.83, allocations: 39.06 kB / 3.718 GB, free: 57.13 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001755/13.83, allocations: 0.8145 MB / 3.719 GB, free: 57.02 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01375/13.85, allocations: 2.55 MB / 3.721 GB, free: 57.02 MB / 0.4948 GB 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,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 22 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 7 * When equations: 0 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01449/13.86, allocations: 2.573 MB / 3.724 GB, free: 56.78 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008016/13.87, allocations: 3.222 MB / 3.727 GB, free: 56.62 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/13.87, allocations: 3.219 kB / 3.727 GB, free: 56.62 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00355/13.87, allocations: 1.575 MB / 3.728 GB, free: 56.58 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004901/13.88, allocations: 487.9 kB / 3.729 GB, free: 56.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07719/13.96, allocations: 17.88 MB / 3.746 GB, free: 55.34 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005349/13.96, allocations: 1.744 MB / 3.748 GB, free: 54.57 MB / 0.4948 GB Notification: Performance of SimCode: time 3.306e-06/13.96, allocations: 0 / 3.748 GB, free: 54.57 MB / 0.4948 GB