Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",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.578/2.578, allocations: 235.1 MB / 242 MB, free: 9.73 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2098/2.788, allocations: 57.19 MB / 299.2 MB, free: 428 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/3.093, allocations: 54.84 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.401/10.49, allocations: 2.677 GB / 3.023 GB, free: 90 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/10.49, allocations: 80.2 kB / 3.023 GB, free: 89.96 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 5.559/16.05, allocations: 1.007 GB / 4.03 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/16.05, allocations: 7.156 kB / 4.03 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01272/16.07, allocations: 0.9794 MB / 4.031 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01062/16.08, allocations: 2.208 MB / 4.033 GB, free: 23.18 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004505/16.08, allocations: 104.2 kB / 4.033 GB, free: 23.17 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001348/16.08, allocations: 137 kB / 4.033 GB, free: 23.16 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01143/16.09, allocations: 2.868 MB / 4.036 GB, free: 22.19 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01216/16.1, allocations: 3.071 MB / 4.039 GB, free: 20.76 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001173/16.1, allocations: 7.281 kB / 4.039 GB, free: 20.76 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005619/16.1, allocations: 7.219 kB / 4.039 GB, free: 20.76 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003676/16.1, allocations: 188.8 kB / 4.039 GB, free: 20.73 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5148/16.62, allocations: 51.34 MB / 4.089 GB, free: 66.38 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003826/16.62, allocations: 1.259 MB / 4.091 GB, free: 66.36 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003174/16.63, allocations: 1.206 MB / 4.092 GB, free: 66.35 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06792/16.69, allocations: 17.22 MB / 4.109 GB, free: 55.64 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004181/16.7, allocations: 1.384 MB / 4.11 GB, free: 55.48 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=186): time 6.221e-06/16.7, allocations: 0 / 4.11 GB, free: 55.48 MB / 0.5261 GB Notification: Performance of matching and sorting (n=206): time 0.08431/16.78, allocations: 10.67 MB / 4.12 GB, free: 53.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/16.78, allocations: 369.8 kB / 4.121 GB, free: 53.49 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003307/16.79, allocations: 1.164 MB / 4.122 GB, free: 53.32 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007985/16.79, allocations: 29.64 kB / 4.122 GB, free: 53.29 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001022/16.79, allocations: 0.8193 MB / 4.123 GB, free: 52.92 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001212/16.79, allocations: 0.6701 MB / 4.123 GB, free: 52.56 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003102/16.79, allocations: 0 / 4.123 GB, free: 52.56 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000198/16.79, allocations: 393.4 kB / 4.124 GB, free: 52.25 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003766/16.79, allocations: 1.213 MB / 4.125 GB, free: 52.25 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004615/16.8, allocations: 1.746 MB / 4.127 GB, free: 51.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02127/16.82, allocations: 2.246 MB / 4.129 GB, free: 51.67 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.9e-05/16.82, allocations: 4.594 kB / 4.129 GB, free: 51.67 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.03681/16.86, allocations: 4.848 MB / 4.134 GB, free: 51.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001437/16.86, allocations: 5.51 MB / 4.139 GB, free: 45.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.763e-05/16.86, allocations: 15.72 kB / 4.139 GB, free: 45.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002016/16.86, allocations: 331.2 kB / 4.139 GB, free: 45.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006296/16.87, allocations: 0.6051 MB / 4.14 GB, free: 45.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003526/16.87, allocations: 3.19 MB / 4.143 GB, free: 43.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006457/16.88, allocations: 323.9 kB / 4.143 GB, free: 43.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008988/16.88, allocations: 122.4 kB / 4.143 GB, free: 43.18 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/16.88, allocations: 3.531 kB / 4.143 GB, free: 43.18 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02593/16.9, allocations: 3.745 MB / 4.147 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.538e-05/16.9, allocations: 16.09 kB / 4.147 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001752/16.91, allocations: 324.7 kB / 4.147 GB, free: 43.05 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007127/16.91, allocations: 0.6036 MB / 4.148 GB, free: 43.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003603/16.92, allocations: 3.191 MB / 4.151 GB, free: 40.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005942/16.92, allocations: 300.1 kB / 4.151 GB, free: 40.44 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000632/16.92, allocations: 127.2 kB / 4.152 GB, free: 40.44 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" 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: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * 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: 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,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001168/16.92, allocations: 244.5 kB / 4.152 GB, free: 40.26 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003589/16.93, allocations: 0.716 MB / 4.152 GB, free: 40.15 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.036/16.96, allocations: 7.755 MB / 4.16 GB, free: 39.65 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.794e-05/16.96, allocations: 65.28 kB / 4.16 GB, free: 39.65 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.558e-05/16.96, allocations: 0 / 4.16 GB, free: 39.65 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03122/16.99, allocations: 6.653 MB / 4.167 GB, free: 38.91 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04971/17.04, allocations: 12.5 MB / 4.179 GB, free: 37.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.898e-05/17.04, allocations: 7.094 kB / 4.179 GB, free: 37.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004412/17.05, allocations: 417.6 kB / 4.179 GB, free: 37.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002467/17.05, allocations: 436.1 kB / 4.18 GB, free: 36.97 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007847/17.05, allocations: 60.44 kB / 4.18 GB, free: 36.97 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003495/17.06, allocations: 3.412 MB / 4.183 GB, free: 34.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.539e-05/17.06, allocations: 11.81 kB / 4.183 GB, free: 34.36 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03906/17.1, allocations: 9.096 MB / 4.192 GB, free: 32.97 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04898/17.14, allocations: 11.87 MB / 4.204 GB, free: 31.19 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003049/17.15, allocations: 0.7353 MB / 4.204 GB, free: 30.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001098/17.15, allocations: 36 kB / 4.204 GB, free: 30.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004403/17.15, allocations: 189.4 kB / 4.204 GB, free: 30.92 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005839/17.15, allocations: 182.6 kB / 4.205 GB, free: 30.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003591/17.15, allocations: 92.72 kB / 4.205 GB, free: 30.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002914/17.16, allocations: 1.071 MB / 4.206 GB, free: 30.77 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02952/17.19, allocations: 3.365 MB / 4.209 GB, free: 30.66 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 43 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.medium.phase) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 198 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 13 * When equations: 0 * 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,2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.02205/17.21, allocations: 3.304 MB / 4.212 GB, free: 30.34 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01803/17.23, allocations: 5.948 MB / 4.218 GB, free: 30.16 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.777e-05/17.23, allocations: 5.469 kB / 4.218 GB, free: 30.16 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008884/17.24, allocations: 3.62 MB / 4.222 GB, free: 30.08 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01256/17.25, allocations: 0.9504 MB / 4.223 GB, free: 30.06 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1092/17.36, allocations: 20.81 MB / 4.243 GB, free: 28.14 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005827/17.36, allocations: 2.495 MB / 4.245 GB, free: 27.33 MB / 0.5261 GB Notification: Performance of SimCode: time 2.344e-06/17.36, allocations: 4.75 kB / 4.245 GB, free: 27.33 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat