Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.182/2.182, allocations: 225.8 MB / 238.8 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.282e-05/3.302e-05, allocations: 0 / 292.2 MB, free: 8.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1111, allocations: 50.41 MB / 342.6 MB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4342/0.5454, allocations: 80.97 MB / 423.6 MB, free: 13.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.5457, allocations: 69.72 kB / 423.7 MB, free: 13.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03536/0.5811, allocations: 7.439 MB / 431.1 MB, free: 6.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.5812, allocations: 0 / 431.1 MB, free: 6.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.994e-05/0.5812, allocations: 15.98 kB / 431.1 MB, free: 6.895 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001244/0.5825, allocations: 0.5692 MB / 431.7 MB, free: 6.305 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.5825, allocations: 12.03 kB / 431.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.539e-05/0.5826, allocations: 62.84 kB / 431.8 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.5828, allocations: 47.41 kB / 431.8 MB, free: 6.191 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008576/0.5836, allocations: 346.2 kB / 432.2 MB, free: 5.848 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.876e-05/0.5837, allocations: 24.69 kB / 432.2 MB, free: 5.836 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.695e-05/0.5838, allocations: 22.62 kB / 432.2 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.5852, allocations: 0.6608 MB / 432.9 MB, free: 5.277 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.5853, allocations: 0 / 432.9 MB, free: 5.277 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.594e-05/0.5853, allocations: 11.25 kB / 432.9 MB, free: 5.273 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.5853, allocations: 4 kB / 432.9 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004312/0.5858, allocations: 156 kB / 433 MB, free: 5.168 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.587, allocations: 0.7743 MB / 433.8 MB, free: 4.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.5881, allocations: 0.5315 MB / 434.3 MB, free: 3.902 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004939/0.5887, allocations: 226 kB / 434.6 MB, free: 3.738 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008723/0.5895, allocations: 0.5928 MB / 435.2 MB, free: 3.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.5896, allocations: 46.06 kB / 435.2 MB, free: 2.969 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.557e-06/0.5896, allocations: 0 / 435.2 MB, free: 2.969 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.0009556/0.5906, allocations: 321.2 kB / 435.5 MB, free: 2.719 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001558/0.5908, allocations: 192.7 kB / 435.7 MB, free: 2.508 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003755/0.5912, allocations: 212.5 kB / 435.9 MB, free: 2.328 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.389e-05/0.5912, allocations: 29.33 kB / 435.9 MB, free: 2.297 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.5913, allocations: 152.5 kB / 436.1 MB, free: 2.176 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.64e-05/0.5914, allocations: 57.23 kB / 436.1 MB, free: 2.133 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.083e-05/0.5915, allocations: 6 kB / 436.1 MB, free: 2.133 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.5916, allocations: 348.2 kB / 436.5 MB, free: 1.801 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.5918, allocations: 68.3 kB / 436.6 MB, free: 1.754 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004414/0.5923, allocations: 401.2 kB / 436.9 MB, free: 1.238 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.5926, allocations: 143.1 kB / 437.1 MB, free: 1.129 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/0.5926, allocations: 4 kB / 437.1 MB, free: 1.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009732/0.5936, allocations: 431.2 kB / 437.5 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.5937, allocations: 16.25 kB / 437.5 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/0.5937, allocations: 12 kB / 437.5 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.18e-05/0.5938, allocations: 19.95 kB / 437.6 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006613/0.5944, allocations: 119.6 kB / 437.7 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.764e-05/0.5945, allocations: 27.86 kB / 437.7 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004147/0.5949, allocations: 50.59 kB / 437.8 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/0.595, allocations: 27.75 kB / 437.8 MB, free: 0.5039 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0002437/0.5952, allocations: 165.4 kB / 437.9 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007398/0.596, allocations: 290 kB / 438.2 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008141/0.5968, allocations: 317.2 kB / 438.5 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.5968, allocations: 7.953 kB / 438.5 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.5969, allocations: 0 / 438.5 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.5969, allocations: 11.92 kB / 438.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005781/0.5975, allocations: 331.8 kB / 438.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.111e-05/0.5975, allocations: 0 / 438.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007984/0.5983, allocations: 107.6 kB / 439 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.235e-05/0.5983, allocations: 4.188 kB / 439 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.875e-05/0.5984, allocations: 10.06 kB / 439 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.5984, allocations: 0 / 439 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.5984, allocations: 7.953 kB / 439 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001341/0.5998, allocations: 0.7173 MB / 439.7 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.5999, allocations: 112.6 kB / 439.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.099e-05/0.6, allocations: 15.23 kB / 439.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004368/0.6004, allocations: 31.67 kB / 439.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.462e-05/0.6005, allocations: 7.984 kB / 439.9 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.6006, allocations: 11.19 kB / 439.9 MB, free: 14.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002504/0.6008, allocations: 175.9 kB / 440.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6008, allocations: 0 / 440.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007697/0.6016, allocations: 79.16 kB / 440.1 MB, free: 14.47 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001809/0.6034, allocations: 1.484 MB / 441.6 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007736/0.6042, allocations: 298 kB / 441.9 MB, free: 12.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.6043, allocations: 4 kB / 441.9 MB, free: 12.87 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.801e-05/0.6043, allocations: 8 kB / 441.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.6055, allocations: 262 kB / 442.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002688/0.6083, allocations: 0.6709 MB / 442.9 MB, free: 12.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004652/0.6088, allocations: 0.8201 MB / 443.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002063/0.609, allocations: 39.27 kB / 443.7 MB, free: 11.15 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002245/0.6092, allocations: 115.8 kB / 443.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6092, allocations: 0 / 443.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03877/0.648, allocations: 7.016 MB / 450.8 MB, free: 4.219 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003188/0.6484, allocations: 176.9 kB / 451 MB, free: 3.996 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.937/3.585, allocations: 64 / 451 MB, free: 3.996 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat does not exist to compare? outputFormat=mat