Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeInitialization",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.501/2.501, allocations: 235.1 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1794/2.68, allocations: 57.18 MB / 299.2 MB, free: 448 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/2.979, allocations: 54.87 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.25/10.23, allocations: 2.663 GB / 3.009 GB, free: 74.12 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003021/10.23, allocations: 79.7 kB / 3.009 GB, free: 74.08 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.815/13.04, allocations: 0.4883 GB / 3.497 GB, free: 41.62 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/13.04, allocations: 6.281 kB / 3.497 GB, free: 41.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009723/13.05, allocations: 0.7412 MB / 3.498 GB, free: 41.52 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008473/13.06, allocations: 1.592 MB / 3.499 GB, free: 41.16 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003276/13.06, allocations: 95.72 kB / 3.5 GB, free: 41.16 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001142/13.06, allocations: 100.1 kB / 3.5 GB, free: 41.16 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009415/13.07, allocations: 2.918 MB / 3.503 GB, free: 41.16 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008799/13.08, allocations: 2.953 MB / 3.505 GB, free: 40.71 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.04e-05/13.08, allocations: 6.812 kB / 3.505 GB, free: 40.71 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004504/13.08, allocations: 8.719 kB / 3.505 GB, free: 40.71 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002595/13.08, allocations: 177.4 kB / 3.506 GB, free: 40.71 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6236/13.71, allocations: 141.1 MB / 3.643 GB, free: 30.65 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004066/13.71, allocations: 1.166 MB / 3.645 GB, free: 30 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003124/13.71, allocations: 1.02 MB / 3.646 GB, free: 29.45 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07408/13.79, allocations: 16.73 MB / 3.662 GB, free: 13.09 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003743/13.79, allocations: 1.177 MB / 3.663 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=139): time 7.053e-06/13.79, allocations: 3.516 kB / 3.663 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of matching and sorting (n=159): time 0.03983/13.83, allocations: 7.659 MB / 3.67 GB, free: 7.703 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001864/13.83, allocations: 226 kB / 3.671 GB, free: 7.434 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002958/13.84, allocations: 0.9538 MB / 3.672 GB, free: 6.816 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007203/13.84, allocations: 29.77 kB / 3.672 GB, free: 6.781 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001158/13.84, allocations: 0.7692 MB / 3.672 GB, free: 6.188 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0013/13.84, allocations: 0.5376 MB / 3.673 GB, free: 5.762 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004606/13.84, allocations: 0 / 3.673 GB, free: 5.762 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0005939/13.84, allocations: 442.5 kB / 3.673 GB, free: 5.414 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004302/13.84, allocations: 1.238 MB / 3.675 GB, free: 4.758 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004723/13.85, allocations: 1.793 MB / 3.676 GB, free: 3.402 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01392/13.86, allocations: 2.148 MB / 3.678 GB, free: 2.277 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-05/13.86, allocations: 4 kB / 3.678 GB, free: 2.273 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.2555/14.12, allocations: 5.332 MB / 3.684 GB, free: 152.9 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001645/14.12, allocations: 6.264 MB / 3.69 GB, free: 146.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-05/14.12, allocations: 16.47 kB / 3.69 GB, free: 146.4 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0233/14.14, allocations: 2.847 MB / 3.693 GB, free: 146.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002958/14.15, allocations: 339.4 kB / 3.693 GB, free: 146.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01728/14.16, allocations: 4.836 MB / 3.698 GB, free: 145.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00545/14.17, allocations: 252.7 kB / 3.698 GB, free: 145.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006997/14.17, allocations: 108.9 kB / 3.698 GB, free: 145.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/14.17, allocations: 3.75 kB / 3.698 GB, free: 145.8 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02267/14.19, allocations: 4.2 MB / 3.702 GB, free: 145.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.801e-05/14.19, allocations: 18.31 kB / 3.702 GB, free: 145.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0183/14.21, allocations: 2.18 MB / 3.704 GB, free: 145.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00345/14.22, allocations: 375.7 kB / 3.705 GB, free: 145.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/14.23, allocations: 3.636 MB / 3.708 GB, free: 145.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004993/14.23, allocations: 225.1 kB / 3.708 GB, free: 145.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009305/14.23, allocations: 106.2 kB / 3.708 GB, free: 145.2 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.001123/14.23, allocations: 165 kB / 3.709 GB, free: 145.1 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003449/14.24, allocations: 0.5094 MB / 3.709 GB, free: 145.1 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0174/14.25, allocations: 5.186 MB / 3.714 GB, free: 144.8 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.945e-05/14.25, allocations: 48.75 kB / 3.714 GB, free: 144.8 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-05/14.25, allocations: 0 / 3.714 GB, free: 144.8 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01311/14.27, allocations: 4.656 MB / 3.719 GB, free: 144.2 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02426/14.29, allocations: 7.683 MB / 3.726 GB, free: 143.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.397e-05/14.29, allocations: 3.719 kB / 3.726 GB, free: 143.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004229/14.3, allocations: 368.1 kB / 3.727 GB, free: 143.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002395/14.3, allocations: 415.3 kB / 3.727 GB, free: 143.5 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006609/14.3, allocations: 47.56 kB / 3.727 GB, free: 143.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003173/14.3, allocations: 3.393 MB / 3.73 GB, free: 141 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.787e-06/14.3, allocations: 4.75 kB / 3.73 GB, free: 141 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01991/14.32, allocations: 6.39 MB / 3.737 GB, free: 140.6 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03118/14.35, allocations: 8.878 MB / 3.745 GB, free: 139.7 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002421/14.36, allocations: 0.5392 MB / 3.746 GB, free: 139.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008238/14.36, allocations: 16.73 kB / 3.746 GB, free: 139.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003772/14.36, allocations: 177.2 kB / 3.746 GB, free: 139.6 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006971/14.36, allocations: 147.2 kB / 3.746 GB, free: 139.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002766/14.36, allocations: 66.67 kB / 3.746 GB, free: 139.6 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001769/14.36, allocations: 0.6798 MB / 3.747 GB, free: 139.4 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01767/14.38, allocations: 2.539 MB / 3.749 GB, free: 139.4 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.01616/14.4, allocations: 2.148 MB / 3.751 GB, free: 139.3 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01809/14.42, allocations: 5.359 MB / 3.757 GB, free: 139.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/14.42, allocations: 3.781 kB / 3.757 GB, free: 139.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007121/14.42, allocations: 2.392 MB / 3.759 GB, free: 139.2 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006745/14.43, allocations: 0.5312 MB / 3.759 GB, free: 139.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01809/14.45, allocations: 5.024 MB / 3.764 GB, free: 138.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004324/14.45, allocations: 1.994 MB / 3.766 GB, free: 137.7 MB / 0.5573 GB Notification: Performance of SimCode: time 2.235e-06/14.45, allocations: 0 / 3.766 GB, free: 137.7 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat does not exist to compare? outputFormat=mat