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 1.91/1.91, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.119e-05/3.138e-05, allocations: 0 / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 44.51 MB / 300 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3878/0.4919, allocations: 71.13 MB / 371.1 MB, free: 20.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.4922, allocations: 68.25 kB / 371.1 MB, free: 20.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01302/0.5052, allocations: 2.977 MB / 374.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5053, allocations: 0 / 374.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.451e-05/0.5053, allocations: 2.188 kB / 374.1 MB, free: 20.52 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.0006206/0.506, allocations: 0.5532 MB / 374.7 MB, free: 20.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.506, allocations: 8.938 kB / 374.7 MB, free: 20.05 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.959e-05/0.5061, allocations: 60.2 kB / 374.7 MB, free: 20.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.5063, allocations: 24.33 kB / 374.8 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.5064, allocations: 186.2 kB / 375 MB, free: 19.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.5065, allocations: 3.047 kB / 375 MB, free: 19.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.5065, allocations: 5.406 kB / 375 MB, free: 19.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005029/0.507, allocations: 285.2 kB / 375.2 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.507, allocations: 0 / 375.2 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.5071, allocations: 5.875 kB / 375.2 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.5071, allocations: 1.188 kB / 375.2 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002385/0.5073, allocations: 148.2 kB / 375.4 MB, free: 19.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003651/0.5077, allocations: 398.1 kB / 375.8 MB, free: 19.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.5083, allocations: 0.499 MB / 376.3 MB, free: 19.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004755/0.5087, allocations: 480 kB / 376.7 MB, free: 19.29 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.5088, allocations: 6.938 kB / 376.8 MB, free: 19.29 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005928/0.5094, allocations: 481.5 kB / 377.2 MB, free: 19.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.315e-06/0.5094, allocations: 0 / 377.2 MB, free: 19.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009523/0.5104, allocations: 0.5194 MB / 377.7 MB, free: 18.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.72e-05/0.5105, allocations: 164.5 kB / 377.9 MB, free: 18.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.953e-05/0.5106, allocations: 98.31 kB / 378 MB, free: 18.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.5106, allocations: 29.39 kB / 378 MB, free: 18.7 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.554e-05/0.5106, allocations: 151.3 kB / 378.2 MB, free: 18.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.5108, allocations: 92.97 kB / 378.3 MB, free: 18.49 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-06/0.5108, allocations: 1.438 kB / 378.3 MB, free: 18.49 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.207e-05/0.5109, allocations: 333.7 kB / 378.6 MB, free: 18.17 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001254/0.511, allocations: 85.78 kB / 378.7 MB, free: 18.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.5112, allocations: 111.4 kB / 378.8 MB, free: 18.15 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/0.5114, allocations: 216.1 kB / 379 MB, free: 18.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.5115, allocations: 0 / 379 MB, free: 18.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005689/0.512, allocations: 364.1 kB / 379.4 MB, free: 17.95 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001614/0.5122, allocations: 111.6 kB / 379.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.5123, allocations: 1.062 kB / 379.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.5123, allocations: 1.281 kB / 379.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.799e-05/0.5124, allocations: 6.391 kB / 379.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/0.5124, allocations: 1.031 kB / 379.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.5126, allocations: 31.12 kB / 379.5 MB, free: 17.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.494e-05/0.5127, allocations: 7.875 kB / 379.5 MB, free: 17.87 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.0004918/0.5132, allocations: 284.9 kB / 379.8 MB, free: 17.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002177/0.5135, allocations: 26.03 kB / 379.8 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.214e-05/0.5135, allocations: 10.62 kB / 379.8 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.5135, allocations: 1.156 kB / 379.8 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.5136, allocations: 0 / 379.8 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.5136, allocations: 3.297 kB / 379.8 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003012/0.5166, allocations: 1.445 MB / 381.3 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.5167, allocations: 6.891 kB / 381.3 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.098e-05/0.5168, allocations: 4.156 kB / 381.3 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.908e-06/0.5168, allocations: 0.7812 kB / 381.3 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-05/0.5169, allocations: 27.14 kB / 381.3 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.5169, allocations: 1.281 kB / 381.3 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.5169, allocations: 1.438 kB / 381.3 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002872/0.5198, allocations: 1.314 MB / 382.6 MB, free: 17.08 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.14e-05/0.52, allocations: 94.48 kB / 382.7 MB, free: 16.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003271/0.5203, allocations: 74.7 kB / 382.8 MB, free: 16.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/0.5206, allocations: 14.09 kB / 382.8 MB, free: 16.97 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.5207, allocations: 24.11 kB / 382.8 MB, free: 16.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/0.5208, allocations: 26.98 kB / 382.9 MB, free: 16.96 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.384e-05/0.5209, allocations: 82.72 kB / 382.9 MB, free: 16.89 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.011e-06/0.5209, allocations: 0 / 382.9 MB, free: 16.89 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001009/0.522, allocations: 112.6 kB / 383 MB, free: 16.87 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.005414/0.5274, allocations: 2.396 MB / 385.4 MB, free: 31.99 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003448/0.5309, allocations: 2.124 MB / 387.6 MB, free: 31.86 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.531, allocations: 0 / 387.6 MB, free: 31.86 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003369/0.5344, allocations: 2.198 MB / 389.8 MB, free: 31.73 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004484/0.5349, allocations: 17.27 kB / 389.8 MB, free: 31.72 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.5365, allocations: 430.8 kB / 390.2 MB, free: 31.53 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005181/0.5371, allocations: 0.73 MB / 390.9 MB, free: 30.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.885e-05/0.5372, allocations: 38.95 kB / 391 MB, free: 30.83 MB / 330.7 MB Notification: Performance of SimCode: time 2.805e-06/0.5372, allocations: 4.062 kB / 391 MB, free: 30.82 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.837/3.374, allocations: 4.148 MB / 395.1 MB, free: 30.36 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