Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.262/2.262, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.093e-05/4.101e-05, allocations: 4 kB / 284.4 MB, free: 8.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1208, allocations: 50.37 MB / 334.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4505/0.5714, allocations: 80.19 MB / 415 MB, free: 13.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.5718, allocations: 67.52 kB / 415 MB, free: 13.67 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009687/0.5815, allocations: 2.287 MB / 417.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5815, allocations: 0 / 417.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.5815, allocations: 4 kB / 417.3 MB, free: 11.7 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007039/0.5823, allocations: 407.8 kB / 417.7 MB, free: 11.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.5823, allocations: 10 kB / 417.7 MB, free: 11.26 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.659e-05/0.5824, allocations: 45.05 kB / 417.8 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.022e-05/0.5825, allocations: 15.81 kB / 417.8 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000269/0.5827, allocations: 205.7 kB / 418 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/0.5828, allocations: 6.938 kB / 418 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.695e-05/0.5828, allocations: 22.84 kB / 418 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005655/0.5834, allocations: 225.6 kB / 418.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.5834, allocations: 4 kB / 418.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.5835, allocations: 3.438 kB / 418.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.5835, allocations: 4 kB / 418.2 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.5837, allocations: 60.31 kB / 418.3 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008273/0.5845, allocations: 0.59 MB / 418.9 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003731/0.5849, allocations: 128.8 kB / 419 MB, free: 9.945 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.5851, allocations: 62.47 kB / 419.1 MB, free: 9.891 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.057e-05/0.5851, allocations: 11.89 kB / 419.1 MB, free: 9.879 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.331e-05/0.5852, allocations: 37.84 kB / 419.1 MB, free: 9.836 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.354e-06/0.5852, allocations: 3.938 kB / 419.1 MB, free: 9.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003702/0.5856, allocations: 116.2 kB / 419.2 MB, free: 9.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/0.5857, allocations: 118.7 kB / 419.4 MB, free: 9.594 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.5858, allocations: 120.8 kB / 419.5 MB, free: 9.473 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.5859, allocations: 33.64 kB / 419.5 MB, free: 9.438 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.586, allocations: 188.6 kB / 419.7 MB, free: 9.258 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.116e-05/0.586, allocations: 26.33 kB / 419.7 MB, free: 9.234 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.011e-05/0.586, allocations: 2.688 kB / 419.7 MB, free: 9.234 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.5862, allocations: 314.2 kB / 420 MB, free: 8.922 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.636e-05/0.5863, allocations: 23.31 kB / 420 MB, free: 8.902 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001551/0.5864, allocations: 122.9 kB / 420.2 MB, free: 8.746 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/0.5866, allocations: 46.11 kB / 420.2 MB, free: 8.711 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.5866, allocations: 0 / 420.2 MB, free: 8.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003562/0.5869, allocations: 154.4 kB / 420.4 MB, free: 8.574 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.587, allocations: 11.94 kB / 420.4 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.587, allocations: 8 kB / 420.4 MB, free: 8.555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.587, allocations: 8 kB / 420.4 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003492/0.5874, allocations: 51.7 kB / 420.4 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.843e-05/0.5874, allocations: 11.92 kB / 420.5 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001803/0.5876, allocations: 23.53 kB / 420.5 MB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.129e-05/0.5877, allocations: 8 kB / 420.5 MB, free: 8.461 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001038/0.5878, allocations: 123.4 kB / 420.6 MB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002129/0.588, allocations: 76.53 kB / 420.7 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.37e-05/0.5881, allocations: 27.12 kB / 420.7 MB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.5881, allocations: 8 kB / 420.7 MB, free: 8.246 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.5881, allocations: 0 / 420.7 MB, free: 8.246 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.5881, allocations: 0 / 420.7 MB, free: 8.246 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003739/0.5885, allocations: 201.6 kB / 420.9 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.5886, allocations: 4 kB / 420.9 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003396/0.5889, allocations: 39.91 kB / 421 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.5889, allocations: 0 / 421 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.589, allocations: 7.812 kB / 421 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.589, allocations: 3.953 kB / 421 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.589, allocations: 4 kB / 421 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000497/0.5895, allocations: 362.8 kB / 421.3 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.448e-05/0.5896, allocations: 92.91 kB / 421.4 MB, free: 7.508 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.5896, allocations: 7.938 kB / 421.4 MB, free: 7.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.5898, allocations: 11.75 kB / 421.4 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.24e-05/0.5899, allocations: 15.91 kB / 421.4 MB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.5899, allocations: 7.375 kB / 421.5 MB, free: 7.473 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.396e-05/0.59, allocations: 98.39 kB / 421.6 MB, free: 7.379 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.59, allocations: 0 / 421.6 MB, free: 7.379 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004799/0.5905, allocations: 30.44 kB / 421.6 MB, free: 7.355 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.0008783/0.5914, allocations: 1.036 MB / 422.6 MB, free: 6.328 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002725/0.5917, allocations: 89.44 kB / 422.7 MB, free: 6.262 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5917, allocations: 320 / 422.7 MB, free: 6.262 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.045e-05/0.5918, allocations: 27.73 kB / 422.7 MB, free: 6.238 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004841/0.5923, allocations: 50.36 kB / 422.8 MB, free: 6.199 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/0.5934, allocations: 362.5 kB / 423.1 MB, free: 5.824 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.5938, allocations: 0.7167 MB / 423.9 MB, free: 5.082 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.032e-05/0.5939, allocations: 39.5 kB / 423.9 MB, free: 5.062 MB / 346.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5939, allocations: 0 / 423.9 MB, free: 5.062 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.549/3.143, allocations: 2.055 MB / 425.9 MB, free: 3.031 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat