Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Math_Random_TestRandomNumbers",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.594/2.594, allocations: 235.1 MB / 242 MB, free: 9.746 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1821/2.776, allocations: 57.2 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/3.081, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1713/3.252, allocations: 79.68 MB / 433.7 MB, free: 13.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002688/3.252, allocations: 63.91 kB / 433.8 MB, free: 13.54 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0236/3.276, allocations: 5.172 MB / 439 MB, free: 8.316 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/3.276, allocations: 12 kB / 439 MB, free: 8.305 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.872e-05/3.276, allocations: 15.81 kB / 439 MB, free: 8.289 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/3.276, allocations: 171 kB / 439.2 MB, free: 8.082 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/3.276, allocations: 0 / 439.2 MB, free: 8.082 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/3.276, allocations: 12 kB / 439.2 MB, free: 8.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000203/3.277, allocations: 96.41 kB / 439.3 MB, free: 7.977 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002284/3.277, allocations: 128.3 kB / 439.4 MB, free: 7.844 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/3.277, allocations: 7.844 kB / 439.4 MB, free: 7.836 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/3.277, allocations: 0 / 439.4 MB, free: 7.836 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/3.277, allocations: 7.938 kB / 439.4 MB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002467/3.277, allocations: 166.3 kB / 439.6 MB, free: 7.629 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002368/3.278, allocations: 167 kB / 439.7 MB, free: 7.457 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/3.278, allocations: 153.7 kB / 439.9 MB, free: 7.305 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.492e-06/3.278, allocations: 0 / 439.9 MB, free: 7.305 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002567/3.278, allocations: 166 kB / 440.1 MB, free: 7.133 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 1.934e-06/3.278, allocations: 4 kB / 440.1 MB, free: 7.129 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.0009367/3.279, allocations: 0.5363 MB / 440.6 MB, free: 6.582 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/3.279, allocations: 103.8 kB / 440.7 MB, free: 6.469 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.729e-05/3.279, allocations: 116.8 kB / 440.8 MB, free: 6.348 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001539/3.279, allocations: 53.69 kB / 440.9 MB, free: 6.289 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.038e-05/3.279, allocations: 85.45 kB / 441 MB, free: 6.199 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/3.28, allocations: 122.6 kB / 441.1 MB, free: 6.078 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.08e-05/3.28, allocations: 0 / 441.1 MB, free: 6.078 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001803/3.28, allocations: 358.8 kB / 441.4 MB, free: 5.719 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005017/3.28, allocations: 165.9 kB / 441.6 MB, free: 5.555 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008103/3.281, allocations: 0.5039 MB / 442.1 MB, free: 4.883 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008275/3.282, allocations: 260.1 kB / 442.3 MB, free: 4.629 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-05/3.282, allocations: 4 kB / 442.3 MB, free: 4.625 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001886/3.284, allocations: 0.6384 MB / 443 MB, free: 3.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/3.284, allocations: 8 kB / 443 MB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.642e-05/3.284, allocations: 12 kB / 443 MB, free: 3.961 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.145e-05/3.284, allocations: 20 kB / 443 MB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000771/3.285, allocations: 115.7 kB / 443.1 MB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-05/3.285, allocations: 27.92 kB / 443.2 MB, free: 3.801 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000403/3.285, allocations: 43.44 kB / 443.2 MB, free: 3.758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.796e-05/3.286, allocations: 36 kB / 443.2 MB, free: 3.723 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,result,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003152/3.286, allocations: 200.6 kB / 443.4 MB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.963e-05/3.286, allocations: 15.66 kB / 443.5 MB, free: 3.504 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.642e-05/3.286, allocations: 9.594 kB / 443.5 MB, free: 3.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/3.286, allocations: 0 / 443.5 MB, free: 3.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/3.286, allocations: 4 kB / 443.5 MB, free: 3.496 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/3.286, allocations: 3.984 kB / 443.5 MB, free: 3.492 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002142/3.286, allocations: 142.4 kB / 443.6 MB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/3.286, allocations: 3.984 kB / 443.6 MB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.939e-06/3.286, allocations: 3.906 kB / 443.6 MB, free: 3.309 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/3.286, allocations: 0 / 443.6 MB, free: 3.309 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/3.286, allocations: 8 kB / 443.6 MB, free: 3.301 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/3.286, allocations: 0 / 443.6 MB, free: 3.301 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/3.286, allocations: 0 / 443.6 MB, free: 3.301 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009033/3.287, allocations: 0.5757 MB / 444.2 MB, free: 2.703 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001648/3.289, allocations: 1.281 MB / 445.5 MB, free: 1.402 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.413e-05/3.289, allocations: 100.8 kB / 445.6 MB, free: 1.285 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.312e-05/3.289, allocations: 3.906 kB / 445.6 MB, free: 1.281 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.192e-05/3.289, allocations: 0 / 445.6 MB, free: 1.281 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.006e-05/3.289, allocations: 7.984 kB / 445.6 MB, free: 1.273 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/3.289, allocations: 8.062 kB / 445.6 MB, free: 1.266 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.518e-05/3.289, allocations: 75.28 kB / 445.7 MB, free: 1.191 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001946/3.291, allocations: 95.92 kB / 445.8 MB, free: 1.098 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009567/3.292, allocations: 292.2 kB / 446.1 MB, free: 0.8359 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001255/3.293, allocations: 441.5 kB / 446.5 MB, free: 416 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/3.293, allocations: 256 / 446.5 MB, free: 416 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002347/3.294, allocations: 160.4 kB / 446.6 MB, free: 256 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/3.294, allocations: 4 kB / 446.6 MB, free: 252 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1721/3.466, allocations: 497.3 kB / 447.1 MB, free: 132.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004013/3.467, allocations: 0.8178 MB / 447.9 MB, free: 131.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.322e-06/3.467, allocations: 0 / 447.9 MB, free: 131.8 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Math.Random.TestRandomNumbers_res.mat does not exist to compare? outputFormat=mat