Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",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.242/2.242, allocations: 235 MB / 241.9 MB, free: 9.797 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.215/2.457, allocations: 57.21 MB / 299.1 MB, free: 492 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/2.76, allocations: 54.83 MB / 354 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.842/9.602, allocations: 2.654 GB / 3 GB, free: 66.57 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/9.603, allocations: 80.09 kB / 3 GB, free: 66.54 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 2.339/11.94, allocations: 462.5 MB / 3.452 GB, free: 47.65 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/11.94, allocations: 10.09 kB / 3.452 GB, free: 47.65 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004497/11.95, allocations: 392.7 kB / 3.452 GB, free: 47.59 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003398/11.95, allocations: 0.881 MB / 3.453 GB, free: 47.34 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/11.95, allocations: 39.06 kB / 3.453 GB, free: 47.34 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002332/11.95, allocations: 48.8 kB / 3.453 GB, free: 47.34 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002654/11.95, allocations: 0.9442 MB / 3.454 GB, free: 47.34 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002669/11.96, allocations: 1.104 MB / 3.455 GB, free: 47.06 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.163e-05/11.96, allocations: 4.312 kB / 3.455 GB, free: 47.06 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001407/11.96, allocations: 3.656 kB / 3.455 GB, free: 47.06 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-05/11.96, allocations: 58.91 kB / 3.455 GB, free: 47.06 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3583/12.31, allocations: 101.2 MB / 3.554 GB, free: 31.67 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009892/12.32, allocations: 352.8 kB / 3.554 GB, free: 31.65 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000634/12.32, allocations: 280 kB / 3.555 GB, free: 31.64 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06143/12.38, allocations: 16.77 MB / 3.571 GB, free: 20.63 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.03e-05/12.38, allocations: 46.03 kB / 3.571 GB, free: 20.59 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 4.678e-06/12.38, allocations: 0 / 3.571 GB, free: 20.59 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.01135/12.39, allocations: 2.336 MB / 3.573 GB, free: 20.16 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/12.39, allocations: 132.2 kB / 3.573 GB, free: 20 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001262/12.39, allocations: 0.5818 MB / 3.574 GB, free: 19.88 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001375/12.39, allocations: 25.7 kB / 3.574 GB, free: 19.84 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002729/12.39, allocations: 388.7 kB / 3.574 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/12.39, allocations: 163.3 kB / 3.575 GB, free: 19.53 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.418e-05/12.39, allocations: 0 / 3.575 GB, free: 19.53 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002509/12.39, allocations: 386.8 kB / 3.575 GB, free: 35.21 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009115/12.39, allocations: 364 kB / 3.575 GB, free: 35.21 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/12.39, allocations: 0.5627 MB / 3.576 GB, free: 34.98 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007809/12.4, allocations: 1.035 MB / 3.577 GB, free: 34.95 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/12.4, allocations: 3.75 kB / 3.577 GB, free: 34.95 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.01219/12.41, allocations: 2.226 MB / 3.579 GB, free: 34.84 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.00107/12.41, allocations: 2.266 MB / 3.581 GB, free: 32.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/12.41, allocations: 7.531 kB / 3.581 GB, free: 32.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003205/12.42, allocations: 0.4959 MB / 3.582 GB, free: 32.44 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/12.42, allocations: 165 kB / 3.582 GB, free: 32.44 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003994/12.42, allocations: 1.547 MB / 3.583 GB, free: 31.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002109/12.43, allocations: 133.4 kB / 3.584 GB, free: 31.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001498/12.43, allocations: 40.44 kB / 3.584 GB, free: 31.88 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/12.43, allocations: 6.344 kB / 3.584 GB, free: 31.88 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009979/12.44, allocations: 1.625 MB / 3.585 GB, free: 31.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/12.44, allocations: 6.562 kB / 3.585 GB, free: 31.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002793/12.44, allocations: 410.4 kB / 3.586 GB, free: 31.82 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/12.44, allocations: 179.6 kB / 3.586 GB, free: 31.81 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002402/12.44, allocations: 1.169 MB / 3.587 GB, free: 31.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/12.44, allocations: 104.9 kB / 3.587 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001297/12.44, allocations: 35.62 kB / 3.587 GB, free: 31.27 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,sink.medium.phase,source.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0003835/12.44, allocations: 126.8 kB / 3.587 GB, free: 31.16 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001429/12.45, allocations: 323.7 kB / 3.587 GB, free: 31.12 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004793/12.45, allocations: 1.859 MB / 3.589 GB, free: 30.97 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.063e-05/12.45, allocations: 16.2 kB / 3.589 GB, free: 30.97 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/12.45, allocations: 11.06 kB / 3.589 GB, free: 30.97 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003558/12.45, allocations: 1.766 MB / 3.591 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006537/12.46, allocations: 2.803 MB / 3.594 GB, free: 30.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/12.46, allocations: 4.125 kB / 3.594 GB, free: 30.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/12.46, allocations: 119.2 kB / 3.594 GB, free: 30.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004453/12.46, allocations: 90.17 kB / 3.594 GB, free: 30.18 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.024e-05/12.46, allocations: 14.81 kB / 3.594 GB, free: 30.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007304/12.46, allocations: 0.6794 MB / 3.595 GB, free: 29.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/12.46, allocations: 0 / 3.595 GB, free: 29.66 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00563/12.47, allocations: 2.323 MB / 3.597 GB, free: 29.33 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007422/12.48, allocations: 3.368 MB / 3.6 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008757/12.48, allocations: 272.9 kB / 3.6 GB, free: 28.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002308/12.48, allocations: 11.12 kB / 3.6 GB, free: 28.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/12.48, allocations: 67.48 kB / 3.601 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/12.48, allocations: 40.7 kB / 3.601 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.753e-05/12.48, allocations: 20.23 kB / 3.601 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0009104/12.48, allocations: 445.1 kB / 3.601 GB, free: 28.39 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01168/12.49, allocations: 1.988 MB / 3.603 GB, free: 28.12 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 9 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01383/12.51, allocations: 2.124 MB / 3.605 GB, free: 27.64 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004376/12.51, allocations: 1.673 MB / 3.607 GB, free: 27.61 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/12.51, allocations: 0.625 kB / 3.607 GB, free: 27.61 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001769/12.51, allocations: 0.8026 MB / 3.607 GB, free: 27.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003413/12.52, allocations: 300.1 kB / 3.608 GB, free: 27.58 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005736/12.52, allocations: 1.823 MB / 3.61 GB, free: 27.14 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001724/12.52, allocations: 1.242 MB / 3.611 GB, free: 26.41 MB / 0.5417 GB Notification: Performance of SimCode: time 2.495e-06/12.52, allocations: 4 kB / 3.611 GB, free: 26.41 MB / 0.5417 GB