Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",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.427/2.427, allocations: 235.1 MB / 242 MB, free: 9.758 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2085/2.635, allocations: 57.2 MB / 299.2 MB, free: 456 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/2.937, allocations: 54.85 MB / 354.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.452/10.39, allocations: 2.656 GB / 3.001 GB, free: 113.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004143/10.39, allocations: 83.34 kB / 3.002 GB, free: 113.1 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 5.077/15.47, allocations: 0.8625 GB / 3.864 GB, free: 5.031 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.973e-05/15.47, allocations: 8 kB / 3.864 GB, free: 5.023 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01116/15.48, allocations: 0.8166 MB / 3.865 GB, free: 4.203 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01047/15.49, allocations: 1.955 MB / 3.867 GB, free: 2.223 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003378/15.49, allocations: 87.97 kB / 3.867 GB, free: 2.137 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000892/15.49, allocations: 108 kB / 3.867 GB, free: 2.031 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3247/15.81, allocations: 2.397 MB / 3.869 GB, free: 63.89 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01272/15.83, allocations: 2.619 MB / 3.872 GB, free: 63.43 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001761/15.83, allocations: 6 kB / 3.872 GB, free: 63.43 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00116/15.83, allocations: 7.375 kB / 3.872 GB, free: 63.43 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003634/15.83, allocations: 157.8 kB / 3.872 GB, free: 63.43 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5809/16.41, allocations: 109.5 MB / 3.979 GB, free: 38.84 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005092/16.41, allocations: 1.015 MB / 3.98 GB, free: 38.82 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004373/16.42, allocations: 0.914 MB / 3.981 GB, free: 38.81 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09045/16.51, allocations: 17.53 MB / 3.998 GB, free: 27.14 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003786/16.51, allocations: 1.123 MB / 3.999 GB, free: 26.98 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=136): time 6.261e-06/16.51, allocations: 4 kB / 3.999 GB, free: 26.97 MB / 0.5417 GB Notification: Performance of matching and sorting (n=148): time 0.04462/16.56, allocations: 7.484 MB / 4.006 GB, free: 25.43 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000269/16.56, allocations: 357 kB / 4.007 GB, free: 25.02 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004388/16.56, allocations: 1.082 MB / 4.008 GB, free: 24.86 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005932/16.56, allocations: 28.11 kB / 4.008 GB, free: 24.82 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001117/16.56, allocations: 0.7267 MB / 4.009 GB, free: 24.5 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001156/16.57, allocations: 490.5 kB / 4.009 GB, free: 24.25 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004306/16.57, allocations: 0 / 4.009 GB, free: 24.25 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0003394/16.57, allocations: 382.1 kB / 4.009 GB, free: 39.95 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003458/16.57, allocations: 1.008 MB / 4.01 GB, free: 39.95 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005048/16.57, allocations: 1.396 MB / 4.012 GB, free: 39.5 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02569/16.6, allocations: 2.917 MB / 4.015 GB, free: 39.43 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.941e-05/16.6, allocations: 0 / 4.015 GB, free: 39.43 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.0371/16.64, allocations: 5.27 MB / 4.02 GB, free: 39.19 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001895/16.64, allocations: 4.242 MB / 4.024 GB, free: 34.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.941e-05/16.64, allocations: 20.78 kB / 4.024 GB, free: 34.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005836/16.65, allocations: 0.5666 MB / 4.024 GB, free: 34.76 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005321/16.65, allocations: 449.3 kB / 4.025 GB, free: 34.76 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008923/16.66, allocations: 3.086 MB / 4.028 GB, free: 32.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007628/16.67, allocations: 233.5 kB / 4.028 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00115/16.67, allocations: 97.52 kB / 4.028 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/16.67, allocations: 5.5 kB / 4.028 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0396/16.71, allocations: 4.111 MB / 4.032 GB, free: 32.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.637e-05/16.71, allocations: 10.25 kB / 4.032 GB, free: 32.53 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/16.71, allocations: 201.8 kB / 4.032 GB, free: 32.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00618/16.72, allocations: 465 kB / 4.033 GB, free: 32.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003248/16.72, allocations: 1.921 MB / 4.035 GB, free: 30.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005346/16.73, allocations: 206.1 kB / 4.035 GB, free: 30.91 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004832/16.73, allocations: 94.31 kB / 4.035 GB, free: 30.91 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0009402/16.73, allocations: 238.9 kB / 4.035 GB, free: 30.73 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003301/16.73, allocations: 0.6101 MB / 4.036 GB, free: 30.64 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02129/16.75, allocations: 6.3 MB / 4.042 GB, free: 30.14 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001581/16.75, allocations: 57.23 kB / 4.042 GB, free: 30.14 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-05/16.75, allocations: 0 / 4.042 GB, free: 30.14 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.021/16.77, allocations: 5.291 MB / 4.047 GB, free: 29.43 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02571/16.8, allocations: 8.672 MB / 4.056 GB, free: 28.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-05/16.8, allocations: 0.875 kB / 4.056 GB, free: 28.59 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002973/16.8, allocations: 262.3 kB / 4.056 GB, free: 28.58 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007189/16.81, allocations: 1.323 MB / 4.057 GB, free: 28.5 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007406/16.81, allocations: 42.7 kB / 4.057 GB, free: 28.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008773/16.82, allocations: 3.613 MB / 4.061 GB, free: 26.38 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.359e-05/16.82, allocations: 2.422 kB / 4.061 GB, free: 26.38 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02887/16.85, allocations: 6.65 MB / 4.067 GB, free: 25.81 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03046/16.88, allocations: 8.978 MB / 4.076 GB, free: 24.37 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002788/16.88, allocations: 0.6474 MB / 4.077 GB, free: 23.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/16.88, allocations: 18.83 kB / 4.077 GB, free: 23.94 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003963/16.89, allocations: 141.6 kB / 4.077 GB, free: 23.84 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006688/16.89, allocations: 119.4 kB / 4.077 GB, free: 23.79 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002954/16.89, allocations: 72.7 kB / 4.077 GB, free: 23.74 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.002756/16.89, allocations: 1.011 MB / 4.078 GB, free: 23.14 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01939/16.91, allocations: 3.128 MB / 4.081 GB, free: 21 MB / 0.5573 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,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 39 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.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) * 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 (139): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 10 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01818/16.93, allocations: 3.131 MB / 4.084 GB, free: 18.89 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01538/16.94, allocations: 4.883 MB / 4.089 GB, free: 16.11 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.609e-05/16.94, allocations: 0 / 4.089 GB, free: 16.11 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.006821/16.95, allocations: 2.612 MB / 4.091 GB, free: 14.82 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00948/16.96, allocations: 0.7614 MB / 4.092 GB, free: 14.39 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08987/17.05, allocations: 19.64 MB / 4.111 GB, free: 2.777 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00482/17.05, allocations: 2.224 MB / 4.114 GB, free: 1.094 MB / 0.5573 GB Notification: Performance of SimCode: time 1.994e-06/17.05, allocations: 0 / 4.114 GB, free: 1.094 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat