Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.035/2.035, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.095e-05/4.11e-05, allocations: 0 / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1134, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3925/0.506, allocations: 71.11 MB / 371 MB, free: 21.4 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.5063, allocations: 63.47 kB / 371.1 MB, free: 21.4 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01367/0.52, allocations: 2.981 MB / 374.1 MB, free: 20.96 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.5201, allocations: 1.062 kB / 374.1 MB, free: 20.96 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.5201, allocations: 1.062 kB / 374.1 MB, free: 20.96 MB / 314.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.0006558/0.5208, allocations: 0.5566 MB / 374.6 MB, free: 20.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.5208, allocations: 9.281 kB / 374.7 MB, free: 20.48 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000105/0.521, allocations: 58.38 kB / 374.7 MB, free: 20.44 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001736/0.5211, allocations: 20.34 kB / 374.7 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.5213, allocations: 185.1 kB / 374.9 MB, free: 20.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/0.5213, allocations: 6.625 kB / 374.9 MB, free: 20.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.182e-05/0.5214, allocations: 5.188 kB / 374.9 MB, free: 20.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000509/0.5219, allocations: 278.5 kB / 375.2 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.5219, allocations: 3.938 kB / 375.2 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.494e-05/0.5219, allocations: 2.906 kB / 375.2 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.522, allocations: 3.094 kB / 375.2 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000249/0.5222, allocations: 151.8 kB / 375.4 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003989/0.5226, allocations: 397.5 kB / 375.7 MB, free: 19.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005272/0.5232, allocations: 0.4969 MB / 376.2 MB, free: 19.74 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004819/0.5237, allocations: 479.8 kB / 376.7 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.5237, allocations: 8.609 kB / 376.7 MB, free: 19.72 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000647/0.5244, allocations: 487.8 kB / 377.2 MB, free: 19.53 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.106e-06/0.5244, allocations: 0 / 377.2 MB, free: 19.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009899/0.5254, allocations: 0.5225 MB / 377.7 MB, free: 19.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.571e-05/0.5255, allocations: 162.7 kB / 377.9 MB, free: 19.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.922e-05/0.5256, allocations: 95.88 kB / 378 MB, free: 19.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.5256, allocations: 31.83 kB / 378 MB, free: 19.13 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.833e-05/0.5257, allocations: 152.2 kB / 378.2 MB, free: 18.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.5258, allocations: 97.94 kB / 378.2 MB, free: 18.92 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-06/0.5258, allocations: 1.406 kB / 378.2 MB, free: 18.92 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.752e-05/0.5259, allocations: 332 kB / 378.6 MB, free: 18.6 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.526, allocations: 82.8 kB / 378.7 MB, free: 18.6 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.5262, allocations: 114.8 kB / 378.8 MB, free: 18.58 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002607/0.5265, allocations: 206.7 kB / 379 MB, free: 18.51 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.5265, allocations: 4 kB / 379 MB, free: 18.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005777/0.5271, allocations: 365.5 kB / 379.3 MB, free: 18.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001335/0.5272, allocations: 111.4 kB / 379.4 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.5273, allocations: 3.938 kB / 379.4 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.5273, allocations: 1.25 kB / 379.4 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.697e-05/0.5274, allocations: 6.844 kB / 379.4 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.5274, allocations: 1.344 kB / 379.4 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.5275, allocations: 25.78 kB / 379.5 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.5276, allocations: 8.5 kB / 379.5 MB, free: 18.3 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,$outputAlias_r64,$outputAlias_r128,$outputAlias_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 (5): * Single equations (assignments): 3 * 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.0003754/0.528, allocations: 284.1 kB / 379.8 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.045e-05/0.5281, allocations: 26.16 kB / 379.8 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.877e-05/0.5281, allocations: 6.875 kB / 379.8 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.5281, allocations: 8 kB / 379.8 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.5282, allocations: 5.25 kB / 379.8 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.5282, allocations: 3.297 kB / 379.8 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00206/0.5302, allocations: 1.44 MB / 381.2 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.5303, allocations: 0 / 381.2 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.676e-05/0.5304, allocations: 9.844 kB / 381.3 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/0.5304, allocations: 1.156 kB / 381.3 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.874e-05/0.5305, allocations: 23.28 kB / 381.3 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.5305, allocations: 3.938 kB / 381.3 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.5305, allocations: 5.188 kB / 381.3 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/0.5325, allocations: 1.312 MB / 382.6 MB, free: 17.52 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.489e-05/0.5326, allocations: 94.73 kB / 382.7 MB, free: 17.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002255/0.5329, allocations: 74.86 kB / 382.8 MB, free: 17.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001523/0.533, allocations: 9.875 kB / 382.8 MB, free: 17.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.964e-05/0.5331, allocations: 21.64 kB / 382.8 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.881e-05/0.5332, allocations: 30.41 kB / 382.8 MB, free: 17.4 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.451e-05/0.5333, allocations: 85.97 kB / 382.9 MB, free: 17.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5333, allocations: 0 / 382.9 MB, free: 17.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006777/0.534, allocations: 106.4 kB / 383 MB, free: 17.31 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 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_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]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_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,iImpure,rImpure,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.003546/0.5375, allocations: 2.4 MB / 385.4 MB, free: 16.42 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002931/0.5405, allocations: 2.133 MB / 387.5 MB, free: 32.29 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.5406, allocations: 0 / 387.5 MB, free: 32.29 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002058/0.5427, allocations: 2.187 MB / 389.7 MB, free: 32.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.543, allocations: 18.7 kB / 389.8 MB, free: 32.15 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.5442, allocations: 443.1 kB / 390.2 MB, free: 31.96 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003758/0.5446, allocations: 0.7312 MB / 390.9 MB, free: 31.26 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.755e-05/0.5446, allocations: 33.73 kB / 391 MB, free: 31.25 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5446, allocations: 0 / 391 MB, free: 31.25 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.933/3.477, allocations: 4.142 MB / 395.1 MB, free: 30.79 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat does not exist to compare? outputFormat=mat