Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.369/2.369, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.21e-05/4.223e-05, allocations: 4 kB / 284.4 MB, free: 8.609 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.118, allocations: 50.37 MB / 334.8 MB, free: 6.145 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4519/0.57, allocations: 80.35 MB / 415.1 MB, free: 13.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.5703, allocations: 74.33 kB / 415.2 MB, free: 13.53 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01161/0.5819, allocations: 2.634 MB / 417.8 MB, free: 11.28 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.582, allocations: 0 / 417.8 MB, free: 11.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.586e-05/0.582, allocations: 7.938 kB / 417.8 MB, free: 11.27 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007467/0.5828, allocations: 429.7 kB / 418.2 MB, free: 10.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.5828, allocations: 8.031 kB / 418.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.357e-05/0.5829, allocations: 50.05 kB / 418.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.621e-05/0.583, allocations: 15.81 kB / 418.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002968/0.5833, allocations: 218.4 kB / 418.5 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.5833, allocations: 11.94 kB / 418.5 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.228e-05/0.5834, allocations: 15.81 kB / 418.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005827/0.5839, allocations: 236.4 kB / 418.8 MB, free: 10.28 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.584, allocations: 4 kB / 418.8 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.584, allocations: 0 / 418.8 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.584, allocations: 4 kB / 418.8 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002055/0.5842, allocations: 67.09 kB / 418.9 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009158/0.5852, allocations: 0.6015 MB / 419.5 MB, free: 9.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003998/0.5856, allocations: 126.9 kB / 419.6 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.5858, allocations: 66.16 kB / 419.7 MB, free: 9.402 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.5858, allocations: 11.39 kB / 419.7 MB, free: 9.395 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.5859, allocations: 38.5 kB / 419.7 MB, free: 9.348 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.886e-06/0.5859, allocations: 0 / 419.7 MB, free: 9.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003896/0.5863, allocations: 108.8 kB / 419.8 MB, free: 9.254 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.238e-05/0.5864, allocations: 118.6 kB / 419.9 MB, free: 9.117 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001912/0.5866, allocations: 140.6 kB / 420.1 MB, free: 8.988 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.215e-05/0.5866, allocations: 33.73 kB / 420.1 MB, free: 8.949 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.5867, allocations: 178.8 kB / 420.3 MB, free: 8.781 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.5868, allocations: 27.58 kB / 420.3 MB, free: 8.758 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-06/0.5868, allocations: 3.938 kB / 420.3 MB, free: 8.758 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.587, allocations: 314.5 kB / 420.6 MB, free: 8.445 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.189e-05/0.5871, allocations: 27.94 kB / 420.6 MB, free: 8.422 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001634/0.5872, allocations: 121.7 kB / 420.8 MB, free: 8.266 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.5874, allocations: 47.42 kB / 420.8 MB, free: 8.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.5874, allocations: 8 kB / 420.8 MB, free: 8.223 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003686/0.5878, allocations: 148.6 kB / 421 MB, free: 8.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.5878, allocations: 7.953 kB / 421 MB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.5878, allocations: 4.562 kB / 421 MB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.475e-05/0.5879, allocations: 11.92 kB / 421 MB, free: 8.066 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003259/0.5882, allocations: 55.61 kB / 421 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/0.5882, allocations: 4 kB / 421 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001888/0.5884, allocations: 23.83 kB / 421.1 MB, free: 7.988 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.5885, allocations: 11.56 kB / 421.1 MB, free: 7.98 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.0001073/0.5886, allocations: 116.6 kB / 421.2 MB, free: 7.863 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002549/0.5888, allocations: 88.78 kB / 421.3 MB, free: 7.785 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.589, allocations: 28.31 kB / 421.3 MB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.589, allocations: 0 / 421.3 MB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.589, allocations: 4 kB / 421.3 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.589, allocations: 0 / 421.3 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003893/0.5894, allocations: 216.7 kB / 421.5 MB, free: 7.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.5894, allocations: 0 / 421.5 MB, free: 7.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003464/0.5898, allocations: 39.92 kB / 421.6 MB, free: 7.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.5898, allocations: 0 / 421.6 MB, free: 7.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.5898, allocations: 3.688 kB / 421.6 MB, free: 7.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.765e-06/0.5899, allocations: 11.95 kB / 421.6 MB, free: 7.469 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.5899, allocations: 4.078 kB / 421.6 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005248/0.5904, allocations: 361.3 kB / 421.9 MB, free: 7.121 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.5905, allocations: 104.7 kB / 422 MB, free: 7.008 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.398e-05/0.5906, allocations: 8.047 kB / 422 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.5908, allocations: 11.81 kB / 422 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.472e-05/0.5909, allocations: 11.92 kB / 422.1 MB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.5909, allocations: 8 kB / 422.1 MB, free: 6.973 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001313/0.5911, allocations: 115.6 kB / 422.2 MB, free: 6.871 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5911, allocations: 0 / 422.2 MB, free: 6.871 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000465/0.5916, allocations: 30.66 kB / 422.2 MB, free: 6.844 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.0009364/0.5925, allocations: 1.041 MB / 423.2 MB, free: 5.812 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003085/0.5928, allocations: 95.72 kB / 423.3 MB, free: 5.738 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.5928, allocations: 0 / 423.3 MB, free: 5.738 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.095e-05/0.5929, allocations: 19.44 kB / 423.4 MB, free: 5.723 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005465/0.5935, allocations: 57.8 kB / 423.4 MB, free: 5.68 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.5948, allocations: 394.7 kB / 423.8 MB, free: 5.27 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003999/0.5952, allocations: 0.7241 MB / 424.5 MB, free: 4.523 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.865e-05/0.5953, allocations: 43.92 kB / 424.6 MB, free: 4.5 MB / 346.7 MB Notification: Performance of SimCode: time 1.403e-06/0.5954, allocations: 0 / 424.6 MB, free: 4.5 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.46/3.055, allocations: 2.175 MB / 426.7 MB, free: 2.352 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat