Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.226/2.226, allocations: 218.4 MB / 231.1 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.346e-05/6.39e-05, allocations: 7.984 kB / 284.4 MB, free: 8.105 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1376, allocations: 50.37 MB / 334.8 MB, free: 5.641 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4647/0.6024, allocations: 80.3 MB / 415.1 MB, free: 13.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.6027, allocations: 69.64 kB / 415.2 MB, free: 13.61 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01246/0.6152, allocations: 2.632 MB / 417.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.6153, allocations: 0 / 417.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.543e-05/0.6153, allocations: 4 kB / 417.8 MB, free: 11.36 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.001123/0.6165, allocations: 425.7 kB / 418.2 MB, free: 10.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.649e-05/0.6166, allocations: 8.031 kB / 418.2 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001248/0.6167, allocations: 50.22 kB / 418.3 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.866e-05/0.6168, allocations: 16 kB / 418.3 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004874/0.6174, allocations: 222.1 kB / 418.5 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.803e-05/0.6174, allocations: 11.75 kB / 418.5 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.278e-05/0.6175, allocations: 11.94 kB / 418.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000875/0.6184, allocations: 243.9 kB / 418.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.6184, allocations: 0 / 418.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.845e-05/0.6185, allocations: 3.938 kB / 418.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.6185, allocations: 4 kB / 418.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002895/0.6188, allocations: 59.19 kB / 418.8 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00142/0.6203, allocations: 0.6012 MB / 419.4 MB, free: 9.684 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005999/0.6209, allocations: 127 kB / 419.5 MB, free: 9.555 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/0.6212, allocations: 65.56 kB / 419.6 MB, free: 9.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.754e-05/0.6213, allocations: 7.953 kB / 419.6 MB, free: 9.492 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.514e-05/0.6213, allocations: 42.52 kB / 419.7 MB, free: 9.445 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 5.29e-06/0.6214, allocations: 4 kB / 419.7 MB, free: 9.441 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005641/0.622, allocations: 116.8 kB / 419.8 MB, free: 9.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.83e-05/0.6221, allocations: 110.7 kB / 419.9 MB, free: 9.207 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/0.6223, allocations: 144.7 kB / 420 MB, free: 9.074 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.6224, allocations: 25.7 kB / 420.1 MB, free: 9.043 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.671e-05/0.6225, allocations: 119.9 kB / 420.2 MB, free: 8.934 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.579e-05/0.6225, allocations: 23.53 kB / 420.2 MB, free: 8.914 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.194e-05/0.6226, allocations: 3.75 kB / 420.2 MB, free: 8.914 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.6228, allocations: 322.8 kB / 420.5 MB, free: 8.594 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.6229, allocations: 24.19 kB / 420.5 MB, free: 8.574 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002846/0.6232, allocations: 125.8 kB / 420.7 MB, free: 8.414 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.6234, allocations: 47.42 kB / 420.7 MB, free: 8.379 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.6235, allocations: 0 / 420.7 MB, free: 8.379 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006856/0.6242, allocations: 159.8 kB / 420.9 MB, free: 8.238 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/0.6242, allocations: 11.95 kB / 420.9 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.768e-05/0.6243, allocations: 4 kB / 420.9 MB, free: 8.223 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.879e-05/0.6243, allocations: 4.094 kB / 420.9 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004242/0.6248, allocations: 52.39 kB / 420.9 MB, free: 8.168 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.947e-05/0.6248, allocations: 7.984 kB / 420.9 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002756/0.6251, allocations: 27.77 kB / 421 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/0.6251, allocations: 8 kB / 421 MB, free: 8.129 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.000128/0.6253, allocations: 116.5 kB / 421.1 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003289/0.6256, allocations: 100.5 kB / 421.2 MB, free: 7.922 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000116/0.6258, allocations: 20.45 kB / 421.2 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.6258, allocations: 0 / 421.2 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.6258, allocations: 4 kB / 421.2 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.6258, allocations: 4 kB / 421.2 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005519/0.6264, allocations: 216.6 kB / 421.4 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.6264, allocations: 0 / 421.4 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00048/0.6269, allocations: 35.92 kB / 421.5 MB, free: 7.629 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/0.627, allocations: 4.188 kB / 421.5 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.73e-05/0.627, allocations: 3.984 kB / 421.5 MB, free: 7.621 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.14e-05/0.627, allocations: 15.83 kB / 421.5 MB, free: 7.605 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.6271, allocations: 0 / 421.5 MB, free: 7.605 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007345/0.6278, allocations: 360.3 kB / 421.8 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001582/0.628, allocations: 107.9 kB / 421.9 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.456e-05/0.628, allocations: 3.938 kB / 421.9 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000354/0.6284, allocations: 12.06 kB / 422 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.484e-05/0.6285, allocations: 7.984 kB / 422 MB, free: 7.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.6286, allocations: 7.562 kB / 422 MB, free: 7.121 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001779/0.6287, allocations: 113.8 kB / 422.1 MB, free: 7.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.82e-07/0.6288, allocations: 0 / 422.1 MB, free: 7.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007423/0.6295, allocations: 27.19 kB / 422.1 MB, free: 6.996 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.001217/0.6308, allocations: 1.045 MB / 423.2 MB, free: 5.961 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004308/0.6312, allocations: 90.53 kB / 423.2 MB, free: 5.891 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/0.6313, allocations: 320 / 423.2 MB, free: 5.891 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.596e-05/0.6314, allocations: 19.62 kB / 423.3 MB, free: 5.875 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007673/0.6321, allocations: 58.83 kB / 423.3 MB, free: 5.832 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00166/0.6338, allocations: 367.3 kB / 423.7 MB, free: 5.453 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/0.6343, allocations: 0.7279 MB / 424.4 MB, free: 4.703 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.6345, allocations: 13.2 kB / 424.4 MB, free: 4.691 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.6346, allocations: 39.3 kB / 424.5 MB, free: 4.672 MB / 346.7 MB Notification: Performance of SimCode: time 1.482e-06/0.6346, allocations: 0 / 424.5 MB, free: 4.672 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02792/0.6626, allocations: 2.577 MB / 427 MB, free: 2.184 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002836/0.6629, allocations: 198.2 kB / 427.2 MB, free: 1.961 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.491/3.154, allocations: 0 / 427.2 MB, free: 1.961 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat