Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",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.61/2.61, allocations: 235.1 MB / 242 MB, free: 9.758 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1541/2.765, allocations: 57.19 MB / 299.2 MB, free: 452 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/3.045, allocations: 54.86 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.109/10.15, allocations: 2.672 GB / 3.018 GB, free: 97.04 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000307/10.15, allocations: 82.39 kB / 3.018 GB, free: 97 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 4.638/14.79, allocations: 0.7983 GB / 3.816 GB, free: 27.78 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/14.79, allocations: 11.38 kB / 3.816 GB, free: 27.78 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01125/14.8, allocations: 0.8127 MB / 3.817 GB, free: 27.65 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0118/14.82, allocations: 2.009 MB / 3.819 GB, free: 26.74 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003411/14.82, allocations: 84.73 kB / 3.819 GB, free: 26.73 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001049/14.82, allocations: 113.5 kB / 3.819 GB, free: 26.73 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01173/14.83, allocations: 2.582 MB / 3.822 GB, free: 25.85 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0114/14.84, allocations: 2.574 MB / 3.824 GB, free: 24.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001117/14.84, allocations: 7.594 kB / 3.824 GB, free: 24.7 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005817/14.84, allocations: 6.125 kB / 3.824 GB, free: 24.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003395/14.84, allocations: 158.8 kB / 3.824 GB, free: 24.68 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8103/15.65, allocations: 109.2 MB / 3.931 GB, free: 46.47 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003444/15.65, allocations: 1.031 MB / 3.932 GB, free: 46.45 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002901/15.66, allocations: 0.9889 MB / 3.933 GB, free: 46.44 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07738/15.74, allocations: 17.47 MB / 3.95 GB, free: 34.79 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003426/15.74, allocations: 1.163 MB / 3.951 GB, free: 34.61 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=145): time 6.141e-06/15.74, allocations: 0 / 3.951 GB, free: 34.61 MB / 0.5105 GB Notification: Performance of matching and sorting (n=157): time 0.07346/15.81, allocations: 9.101 MB / 3.96 GB, free: 33.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/15.81, allocations: 362.8 kB / 3.96 GB, free: 32.79 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002808/15.82, allocations: 1.038 MB / 3.961 GB, free: 32.63 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006327/15.82, allocations: 28.02 kB / 3.961 GB, free: 32.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009267/15.82, allocations: 0.6979 MB / 3.962 GB, free: 32.29 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001075/15.82, allocations: 0.4981 MB / 3.963 GB, free: 32.02 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002618/15.82, allocations: 0 / 3.963 GB, free: 32.02 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001776/15.82, allocations: 382 kB / 3.963 GB, free: 31.72 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003236/15.82, allocations: 1.001 MB / 3.964 GB, free: 31.72 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003973/15.83, allocations: 1.438 MB / 3.965 GB, free: 31.28 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0196/15.85, allocations: 1.96 MB / 3.967 GB, free: 31.23 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.618e-05/15.85, allocations: 6.75 kB / 3.967 GB, free: 31.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.03942/15.88, allocations: 4.299 MB / 3.971 GB, free: 31.01 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001027/15.89, allocations: 4.236 MB / 3.976 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.765e-05/15.89, allocations: 11.44 kB / 3.976 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005144/15.89, allocations: 0.5242 MB / 3.976 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004711/15.9, allocations: 463.6 kB / 3.976 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006394/15.9, allocations: 2.91 MB / 3.979 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008069/15.91, allocations: 265.4 kB / 3.98 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001195/15.91, allocations: 93.62 kB / 3.98 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/15.91, allocations: 3.375 kB / 3.98 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02716/15.94, allocations: 3.173 MB / 3.983 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.342e-05/15.94, allocations: 11.5 kB / 3.983 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009446/15.94, allocations: 192.8 kB / 3.983 GB, free: 24.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004919/15.95, allocations: 472.8 kB / 3.983 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002422/15.95, allocations: 1.926 MB / 3.985 GB, free: 38.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005004/15.95, allocations: 232.9 kB / 3.986 GB, free: 38.73 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008413/15.95, allocations: 100.5 kB / 3.986 GB, free: 38.73 MB / 0.5261 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 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.001114/15.95, allocations: 228.9 kB / 3.986 GB, free: 38.55 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003448/15.96, allocations: 0.6115 MB / 3.986 GB, free: 38.46 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03122/15.99, allocations: 6.73 MB / 3.993 GB, free: 37.96 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.909e-05/15.99, allocations: 53.12 kB / 3.993 GB, free: 37.96 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.389e-05/15.99, allocations: 0 / 3.993 GB, free: 37.96 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02502/16.01, allocations: 5.819 MB / 3.999 GB, free: 37.23 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05484/16.07, allocations: 10.1 MB / 4.009 GB, free: 35.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.395e-05/16.07, allocations: 6.703 kB / 4.009 GB, free: 35.96 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003828/16.07, allocations: 289.8 kB / 4.009 GB, free: 35.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005352/16.08, allocations: 1.171 MB / 4.01 GB, free: 35.87 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007265/16.08, allocations: 48.75 kB / 4.01 GB, free: 35.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008054/16.09, allocations: 3.403 MB / 4.013 GB, free: 33.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.768e-05/16.09, allocations: 9.219 kB / 4.013 GB, free: 33.75 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04191/16.13, allocations: 7.619 MB / 4.021 GB, free: 32.64 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04706/16.18, allocations: 9.939 MB / 4.031 GB, free: 31.12 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0037/16.18, allocations: 0.6424 MB / 4.031 GB, free: 30.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001476/16.18, allocations: 30.5 kB / 4.031 GB, free: 30.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003848/16.19, allocations: 144.7 kB / 4.031 GB, free: 30.88 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007009/16.19, allocations: 131 kB / 4.031 GB, free: 30.87 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003179/16.19, allocations: 71.56 kB / 4.032 GB, free: 30.87 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002586/16.19, allocations: 0.9718 MB / 4.032 GB, free: 30.76 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0188/16.21, allocations: 2.934 MB / 4.035 GB, free: 30.71 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.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 (153): * Single equations (assignments): 137 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01784/16.23, allocations: 2.918 MB / 4.038 GB, free: 30.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01494/16.24, allocations: 4.882 MB / 4.043 GB, free: 30.11 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.466e-05/16.24, allocations: 2 kB / 4.043 GB, free: 30.11 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008152/16.25, allocations: 2.981 MB / 4.046 GB, free: 30.02 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009442/16.26, allocations: 0.6747 MB / 4.047 GB, free: 29.99 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09419/16.35, allocations: 19.8 MB / 4.066 GB, free: 21.75 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003888/16.36, allocations: 2.221 MB / 4.068 GB, free: 20.07 MB / 0.5261 GB Notification: Performance of SimCode: time 1.392e-06/16.36, allocations: 0 / 4.068 GB, free: 20.07 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat