Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.22/2.22, allocations: 218.4 MB / 231.1 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.906e-05/3.907e-05, allocations: 0 / 284.4 MB, free: 8.098 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1143, allocations: 50.36 MB / 334.8 MB, free: 5.637 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.433/0.5473, allocations: 80.13 MB / 414.9 MB, free: 13.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/0.5477, allocations: 70.64 kB / 415 MB, free: 13.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01097/0.5587, allocations: 2.288 MB / 417.3 MB, free: 11.8 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5587, allocations: 0 / 417.3 MB, free: 11.8 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.57e-05/0.5588, allocations: 4 kB / 417.3 MB, free: 11.79 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.0007055/0.5595, allocations: 412.1 kB / 417.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.5595, allocations: 8.031 kB / 417.7 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.332e-05/0.5596, allocations: 46.95 kB / 417.7 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.084e-05/0.5597, allocations: 15.81 kB / 417.7 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/0.56, allocations: 201.7 kB / 417.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.56, allocations: 6.875 kB / 418 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.34e-05/0.56, allocations: 17.78 kB / 418 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005477/0.5606, allocations: 232.6 kB / 418.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.5606, allocations: 4 kB / 418.2 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.5607, allocations: 3.125 kB / 418.2 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.5607, allocations: 8 kB / 418.2 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002031/0.5609, allocations: 58.19 kB / 418.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008107/0.5617, allocations: 0.5918 MB / 418.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003819/0.5621, allocations: 122.3 kB / 419 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.5623, allocations: 67.66 kB / 419 MB, free: 9.977 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.076e-05/0.5624, allocations: 11.94 kB / 419.1 MB, free: 9.965 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.5624, allocations: 41.59 kB / 419.1 MB, free: 9.918 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 4.348e-06/0.5624, allocations: 0 / 419.1 MB, free: 9.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003744/0.5628, allocations: 120.4 kB / 419.2 MB, free: 9.812 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.344e-05/0.5629, allocations: 118 kB / 419.3 MB, free: 9.676 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.5631, allocations: 116 kB / 419.4 MB, free: 9.559 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.5631, allocations: 32.27 kB / 419.5 MB, free: 9.523 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.791e-05/0.5632, allocations: 116.6 kB / 419.6 MB, free: 9.414 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.123e-05/0.5632, allocations: 31 kB / 419.6 MB, free: 9.387 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.418e-06/0.5633, allocations: 3.188 kB / 419.6 MB, free: 9.387 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.5634, allocations: 325.8 kB / 419.9 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.967e-05/0.5635, allocations: 23.12 kB / 420 MB, free: 9.047 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.5636, allocations: 122.4 kB / 420.1 MB, free: 8.895 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/0.5638, allocations: 46.67 kB / 420.1 MB, free: 8.859 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.5638, allocations: 0 / 420.1 MB, free: 8.859 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003692/0.5642, allocations: 161.5 kB / 420.3 MB, free: 8.715 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.5642, allocations: 7.953 kB / 420.3 MB, free: 8.707 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.5642, allocations: 4 kB / 420.3 MB, free: 8.703 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.552e-05/0.5643, allocations: 4.094 kB / 420.3 MB, free: 8.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.5646, allocations: 60.31 kB / 420.4 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.21e-05/0.5646, allocations: 7.938 kB / 420.4 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.5648, allocations: 23.05 kB / 420.4 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.5649, allocations: 11.94 kB / 420.4 MB, free: 8.605 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.0001011/0.565, allocations: 120.5 kB / 420.5 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000211/0.5652, allocations: 83.75 kB / 420.6 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.863e-05/0.5653, allocations: 24.38 kB / 420.6 MB, free: 8.395 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.5653, allocations: 11.94 kB / 420.6 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.5653, allocations: 0 / 420.6 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.5654, allocations: 0 / 420.6 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003507/0.5657, allocations: 199.1 kB / 420.8 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.5657, allocations: 4 kB / 420.8 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003378/0.5661, allocations: 31.98 kB / 420.9 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.746e-06/0.5661, allocations: 3.984 kB / 420.9 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.5661, allocations: 7.875 kB / 420.9 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.5661, allocations: 3.953 kB / 420.9 MB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5662, allocations: 0 / 420.9 MB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005031/0.5667, allocations: 366.4 kB / 421.2 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.376e-05/0.5668, allocations: 89 kB / 421.3 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.715e-05/0.5668, allocations: 7.984 kB / 421.3 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.567, allocations: 15.25 kB / 421.4 MB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.364e-05/0.5671, allocations: 7.984 kB / 421.4 MB, free: 7.629 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.5671, allocations: 7.938 kB / 421.4 MB, free: 7.625 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.565e-05/0.5672, allocations: 94.78 kB / 421.5 MB, free: 7.535 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5672, allocations: 0 / 421.5 MB, free: 7.535 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004896/0.5677, allocations: 34.05 kB / 421.5 MB, free: 7.508 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.0009133/0.5687, allocations: 1.036 MB / 422.5 MB, free: 6.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003169/0.569, allocations: 96.34 kB / 422.6 MB, free: 6.406 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.569, allocations: 4.375 kB / 422.6 MB, free: 6.402 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.756e-05/0.5691, allocations: 11.25 kB / 422.6 MB, free: 6.395 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005172/0.5696, allocations: 59.25 kB / 422.7 MB, free: 6.348 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.5708, allocations: 337.9 kB / 423 MB, free: 6.004 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.5712, allocations: 0.7166 MB / 423.7 MB, free: 5.262 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.997e-05/0.5713, allocations: 21.19 kB / 423.8 MB, free: 5.242 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.709e-05/0.5714, allocations: 33.86 kB / 423.8 MB, free: 5.227 MB / 346.7 MB Notification: Performance of SimCode: time 1.473e-06/0.5714, allocations: 0 / 423.8 MB, free: 5.227 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.022/0.5934, allocations: 2.391 MB / 426.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003374/0.5938, allocations: 194.7 kB / 426.4 MB, free: 2.684 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.604/3.198, allocations: 0 / 426.4 MB, free: 2.684 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat