Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Math_Random_Examples_GenerateRandomNumbers",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(Modelica): time 2.821/2.821, allocations: 194.9 MB / 202.6 MB, free: 6.879 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3208/3.142, allocations: 46.82 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/3.249, allocations: 44.51 MB / 293.9 MB, free: 10.85 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3947/3.644, allocations: 70.38 MB / 364.3 MB, free: 7.172 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/3.644, allocations: 61.44 kB / 364.4 MB, free: 7.172 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.01624/3.66, allocations: 3.222 MB / 367.6 MB, free: 6.559 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/3.661, allocations: 8.828 kB / 367.6 MB, free: 6.559 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000232/3.661, allocations: 21.08 kB / 367.6 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001572/3.661, allocations: 176.4 kB / 367.8 MB, free: 6.344 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.277e-05/3.661, allocations: 8.344 kB / 367.8 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.21e-05/3.661, allocations: 3.906 kB / 367.8 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002605/3.661, allocations: 140.1 kB / 367.9 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004942/3.662, allocations: 274.6 kB / 368.2 MB, free: 6.285 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/3.662, allocations: 0 / 368.2 MB, free: 6.285 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/3.662, allocations: 3.75 kB / 368.2 MB, free: 6.285 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/3.662, allocations: 0.875 kB / 368.2 MB, free: 6.285 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002407/3.662, allocations: 187.7 kB / 368.4 MB, free: 6.098 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004538/3.663, allocations: 489.6 kB / 368.9 MB, free: 6.047 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004269/3.663, allocations: 474.2 kB / 369.3 MB, free: 6.023 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/3.663, allocations: 0 / 369.3 MB, free: 6.023 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006087/3.664, allocations: 472.7 kB / 369.8 MB, free: 5.824 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 2.565e-06/3.664, allocations: 0 / 369.8 MB, free: 5.824 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.001146/3.665, allocations: 0.5592 MB / 370.3 MB, free: 5.773 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.239e-05/3.665, allocations: 155.8 kB / 370.5 MB, free: 5.617 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.409e-05/3.665, allocations: 96.98 kB / 370.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/3.665, allocations: 29.58 kB / 370.6 MB, free: 5.492 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.022e-05/3.665, allocations: 82.23 kB / 370.7 MB, free: 5.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.884e-05/3.665, allocations: 82.91 kB / 370.8 MB, free: 5.359 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.456e-06/3.665, allocations: 0 / 370.8 MB, free: 5.359 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001591/3.665, allocations: 334.1 kB / 371.1 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/3.666, allocations: 78.92 kB / 371.2 MB, free: 21.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/3.666, allocations: 109.8 kB / 371.3 MB, free: 21.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002777/3.666, allocations: 102.2 kB / 371.4 MB, free: 21.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/3.666, allocations: 7.719 kB / 371.4 MB, free: 21.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006023/3.667, allocations: 416.1 kB / 371.8 MB, free: 20.97 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/3.667, allocations: 3.906 kB / 371.8 MB, free: 20.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/3.667, allocations: 3.875 kB / 371.8 MB, free: 20.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/3.667, allocations: 4.094 kB / 371.8 MB, free: 20.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.625e-06/3.667, allocations: 0.8125 kB / 371.8 MB, free: 20.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/3.667, allocations: 0 / 371.8 MB, free: 20.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.363e-05/3.667, allocations: 19.62 kB / 371.8 MB, free: 20.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/3.667, allocations: 5.578 kB / 371.8 MB, free: 20.95 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004004/3.667, allocations: 262.7 kB / 372.1 MB, free: 20.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.048e-05/3.667, allocations: 23.25 kB / 372.1 MB, free: 20.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.732e-05/3.668, allocations: 11.02 kB / 372.1 MB, free: 20.76 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/3.668, allocations: 0 / 372.1 MB, free: 20.76 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/3.668, allocations: 3.906 kB / 372.1 MB, free: 20.76 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/3.668, allocations: 1.688 kB / 372.1 MB, free: 20.76 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003051/3.668, allocations: 213.7 kB / 372.3 MB, free: 20.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/3.668, allocations: 0 / 372.3 MB, free: 20.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.846e-06/3.668, allocations: 4 kB / 372.3 MB, free: 20.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.022e-06/3.668, allocations: 7.75 kB / 372.4 MB, free: 20.58 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-05/3.668, allocations: 20.36 kB / 372.4 MB, free: 20.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/3.668, allocations: 0 / 372.4 MB, free: 20.58 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/3.668, allocations: 3.906 kB / 372.4 MB, free: 20.58 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001527/3.67, allocations: 0.732 MB / 373.1 MB, free: 20.48 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002668/3.672, allocations: 1.625 MB / 374.7 MB, free: 20 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/3.672, allocations: 96.55 kB / 374.8 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000311/3.673, allocations: 84.34 kB / 374.9 MB, free: 19.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/3.673, allocations: 16.8 kB / 374.9 MB, free: 19.88 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/3.673, allocations: 14.19 kB / 374.9 MB, free: 19.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.339e-05/3.673, allocations: 26.67 kB / 375 MB, free: 19.88 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.883e-05/3.673, allocations: 84.36 kB / 375.1 MB, free: 19.8 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001851/3.675, allocations: 98.88 kB / 375.1 MB, free: 19.78 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001112/3.676, allocations: 322.3 kB / 375.5 MB, free: 19.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008229/3.677, allocations: 0.5074 MB / 376 MB, free: 19.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/3.677, allocations: 0 / 376 MB, free: 19.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002475/3.68, allocations: 2.147 MB / 378.1 MB, free: 19.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/3.68, allocations: 12.33 kB / 378.1 MB, free: 19.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008099/3.681, allocations: 305.9 kB / 378.4 MB, free: 19.4 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004487/3.681, allocations: 0.7366 MB / 379.2 MB, free: 18.69 MB / 314.7 MB Notification: Performance of SimCode: time 1.573e-06/3.681, allocations: 0 / 379.2 MB, free: 18.69 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat does not exist to compare? outputFormat=mat