Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.382/2.382, allocations: 218.4 MB / 231.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.886e-05/4.895e-05, allocations: 4 kB / 284.4 MB, free: 8.105 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.129, allocations: 50.37 MB / 334.8 MB, free: 5.641 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.464/0.5931, allocations: 80.1 MB / 414.9 MB, free: 13.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003987/0.5935, allocations: 69.97 kB / 415 MB, free: 13.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01367/0.6072, allocations: 2.261 MB / 417.2 MB, free: 11.9 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.6073, allocations: 0 / 417.2 MB, free: 11.9 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.882e-05/0.6073, allocations: 4 kB / 417.2 MB, free: 11.9 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0009257/0.6083, allocations: 410.4 kB / 417.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.219e-05/0.6084, allocations: 8.031 kB / 417.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.735e-05/0.6085, allocations: 44.05 kB / 417.7 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.34e-05/0.6086, allocations: 15.81 kB / 417.7 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/0.6089, allocations: 198.7 kB / 417.9 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.91e-05/0.609, allocations: 15.52 kB / 417.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.082e-05/0.6091, allocations: 19.77 kB / 417.9 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007224/0.6098, allocations: 212.6 kB / 418.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.6098, allocations: 3.875 kB / 418.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.512e-05/0.6099, allocations: 0 / 418.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.6099, allocations: 4 kB / 418.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002902/0.6102, allocations: 62.42 kB / 418.2 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.6114, allocations: 0.5867 MB / 418.8 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000396/0.6118, allocations: 126.8 kB / 418.9 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000203/0.6121, allocations: 66.22 kB / 419 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.083e-05/0.6121, allocations: 7.812 kB / 419 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.474e-05/0.6122, allocations: 50.52 kB / 419 MB, free: 10.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 4.649e-06/0.6122, allocations: 0 / 419 MB, free: 10.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005646/0.6128, allocations: 116.5 kB / 419.1 MB, free: 9.934 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.6129, allocations: 114.6 kB / 419.3 MB, free: 9.801 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/0.6131, allocations: 117.5 kB / 419.4 MB, free: 9.684 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.6132, allocations: 25.7 kB / 419.4 MB, free: 9.652 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.6133, allocations: 115.9 kB / 419.5 MB, free: 9.543 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.932e-05/0.6134, allocations: 27.58 kB / 419.5 MB, free: 9.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.421e-05/0.6134, allocations: 3.875 kB / 419.5 MB, free: 9.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.6136, allocations: 322.8 kB / 419.9 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.6137, allocations: 19.75 kB / 419.9 MB, free: 9.188 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002174/0.6139, allocations: 119.8 kB / 420 MB, free: 9.039 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/0.6142, allocations: 39.8 kB / 420 MB, free: 9.008 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.6142, allocations: 0 / 420 MB, free: 9.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005634/0.6148, allocations: 156.3 kB / 420.2 MB, free: 8.867 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.6148, allocations: 4 kB / 420.2 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/0.6149, allocations: 4 kB / 420.2 MB, free: 8.859 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.192e-05/0.6149, allocations: 8 kB / 420.2 MB, free: 8.852 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004652/0.6154, allocations: 43.8 kB / 420.2 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.556e-05/0.6154, allocations: 12.42 kB / 420.2 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002851/0.6157, allocations: 19.84 kB / 420.3 MB, free: 8.781 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.744e-05/0.6158, allocations: 11.81 kB / 420.3 MB, free: 8.773 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001616/0.616, allocations: 116.6 kB / 420.4 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003482/0.6163, allocations: 84.92 kB / 420.5 MB, free: 8.578 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.807e-05/0.6164, allocations: 20.36 kB / 420.5 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.6165, allocations: 96 / 420.5 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.484e-05/0.6165, allocations: 7.984 kB / 420.5 MB, free: 8.559 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.6165, allocations: 0 / 420.5 MB, free: 8.559 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005839/0.6171, allocations: 216.7 kB / 420.7 MB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.6171, allocations: 0 / 420.7 MB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004823/0.6176, allocations: 35.92 kB / 420.8 MB, free: 8.281 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.306e-05/0.6177, allocations: 3.953 kB / 420.8 MB, free: 8.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.578e-05/0.6177, allocations: 7.984 kB / 420.8 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.6177, allocations: 0 / 420.8 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/0.6178, allocations: 4 kB / 420.8 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007535/0.6185, allocations: 361 kB / 421.1 MB, free: 7.922 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.6187, allocations: 92.89 kB / 421.2 MB, free: 7.812 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.959e-05/0.6187, allocations: 7.875 kB / 421.2 MB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000348/0.6191, allocations: 7.984 kB / 421.2 MB, free: 7.801 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.01e-05/0.6192, allocations: 19.92 kB / 421.2 MB, free: 7.785 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.266e-05/0.6192, allocations: 4 kB / 421.2 MB, free: 7.781 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001227/0.6194, allocations: 91.22 kB / 421.3 MB, free: 7.695 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.6194, allocations: 0 / 421.3 MB, free: 7.695 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007886/0.6202, allocations: 35.69 kB / 421.4 MB, free: 7.668 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 (14): * Single equations (assignments): 14 * 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.001251/0.6215, allocations: 1.026 MB / 422.4 MB, free: 6.648 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003769/0.6219, allocations: 82.22 kB / 422.5 MB, free: 6.582 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.6219, allocations: 0 / 422.5 MB, free: 6.582 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.144e-05/0.622, allocations: 12.62 kB / 422.5 MB, free: 6.574 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007073/0.6227, allocations: 61.34 kB / 422.6 MB, free: 6.527 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/0.6244, allocations: 337.9 kB / 422.9 MB, free: 6.18 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/0.6249, allocations: 0.7126 MB / 423.6 MB, free: 5.441 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001153/0.625, allocations: 12.72 kB / 423.6 MB, free: 5.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.6251, allocations: 41.55 kB / 423.6 MB, free: 5.406 MB / 346.7 MB Notification: Performance of SimCode: time 1.382e-06/0.6251, allocations: 0 / 423.6 MB, free: 5.406 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02537/0.6505, allocations: 2.356 MB / 426 MB, free: 3.145 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002186/0.6508, allocations: 207.2 kB / 426.2 MB, free: 2.914 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.531/3.182, allocations: 352 / 426.2 MB, free: 2.914 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat