Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.216/2.216, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.879e-05/2.875e-05, allocations: 4 kB / 292.2 MB, free: 8.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1155, allocations: 50.42 MB / 342.6 MB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4368/0.5523, allocations: 78.78 MB / 421.4 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.5527, allocations: 69.22 kB / 421.5 MB, free: 14.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01161/0.5643, allocations: 2.312 MB / 423.8 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5644, allocations: 0 / 423.8 MB, free: 13 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.565e-05/0.5644, allocations: 4 kB / 423.8 MB, free: 13 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.000687/0.5651, allocations: 393.9 kB / 424.2 MB, free: 12.58 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.5651, allocations: 12.03 kB / 424.2 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.724e-05/0.5652, allocations: 54.12 kB / 424.3 MB, free: 12.51 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.428e-05/0.5653, allocations: 7.906 kB / 424.3 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.5656, allocations: 206.4 kB / 424.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.5656, allocations: 7.688 kB / 424.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/0.5656, allocations: 11.88 kB / 424.5 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005341/0.5662, allocations: 216.1 kB / 424.7 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.5662, allocations: 4 kB / 424.7 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.5662, allocations: 11.69 kB / 424.7 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.5663, allocations: 4 kB / 424.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001847/0.5665, allocations: 59.11 kB / 424.8 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008477/0.5673, allocations: 0.5901 MB / 425.4 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000286/0.5676, allocations: 131.3 kB / 425.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/0.5678, allocations: 65.95 kB / 425.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.563e-05/0.5678, allocations: 8.016 kB / 425.6 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.5679, allocations: 38.62 kB / 425.6 MB, free: 11.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 5.01e-06/0.5679, allocations: 4 kB / 425.6 MB, free: 11.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004154/0.5683, allocations: 108.1 kB / 425.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.593e-05/0.5684, allocations: 114.3 kB / 425.8 MB, free: 10.91 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.5686, allocations: 117 kB / 425.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.5686, allocations: 25.7 kB / 426 MB, free: 10.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.04e-05/0.5687, allocations: 115.6 kB / 426.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.543e-05/0.5687, allocations: 27.45 kB / 426.1 MB, free: 10.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.125e-06/0.5688, allocations: 4 kB / 426.1 MB, free: 10.63 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.5689, allocations: 330.6 kB / 426.4 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.039e-05/0.569, allocations: 23.5 kB / 426.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.5692, allocations: 112.5 kB / 426.6 MB, free: 10.15 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.5693, allocations: 39.67 kB / 426.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.5693, allocations: 0 / 426.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003562/0.5697, allocations: 152.9 kB / 426.8 MB, free: 9.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.5697, allocations: 4 kB / 426.8 MB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.5697, allocations: 4 kB / 426.8 MB, free: 9.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.5698, allocations: 7.984 kB / 426.8 MB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003389/0.5701, allocations: 51.67 kB / 426.8 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.871e-05/0.5701, allocations: 7.953 kB / 426.8 MB, free: 9.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/0.5703, allocations: 27.7 kB / 426.9 MB, free: 9.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.5704, allocations: 12.12 kB / 426.9 MB, free: 9.875 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.0001042/0.5705, allocations: 112.8 kB / 427 MB, free: 9.762 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.5707, allocations: 80.97 kB / 427.1 MB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.945e-05/0.5708, allocations: 20.48 kB / 427.1 MB, free: 9.676 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.5708, allocations: 0 / 427.1 MB, free: 9.676 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.5708, allocations: 192 / 427.1 MB, free: 9.676 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.5708, allocations: 7.953 kB / 427.1 MB, free: 9.668 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003738/0.5712, allocations: 216.4 kB / 427.3 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.5712, allocations: 0 / 427.3 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003325/0.5716, allocations: 35.98 kB / 427.3 MB, free: 9.391 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.5716, allocations: 96 / 427.3 MB, free: 9.391 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.5716, allocations: 11.86 kB / 427.3 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-05/0.5716, allocations: 3.938 kB / 427.3 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5716, allocations: 0 / 427.3 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000534/0.5722, allocations: 361.8 kB / 427.7 MB, free: 9.035 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.254e-05/0.5723, allocations: 85.05 kB / 427.8 MB, free: 8.934 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.092e-05/0.5723, allocations: 0 / 427.8 MB, free: 8.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002151/0.5725, allocations: 23.69 kB / 427.8 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/0.5726, allocations: 4 kB / 427.8 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.5726, allocations: 4 kB / 427.8 MB, free: 8.906 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.352e-05/0.5727, allocations: 107.4 kB / 427.9 MB, free: 8.809 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5727, allocations: 4 kB / 427.9 MB, free: 8.805 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000473/0.5732, allocations: 27.72 kB / 427.9 MB, free: 8.781 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.0009275/0.5742, allocations: 1.035 MB / 429 MB, free: 7.754 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002697/0.5745, allocations: 83 kB / 429.1 MB, free: 7.688 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5745, allocations: 0 / 429.1 MB, free: 7.688 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.959e-05/0.5745, allocations: 19.86 kB / 429.1 MB, free: 7.672 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005005/0.5751, allocations: 44.28 kB / 429.1 MB, free: 7.641 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.5763, allocations: 340.6 kB / 429.5 MB, free: 7.297 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.5766, allocations: 0.7165 MB / 430.2 MB, free: 6.555 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.201e-05/0.5767, allocations: 12.77 kB / 430.2 MB, free: 6.539 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.196e-05/0.5768, allocations: 34.8 kB / 430.2 MB, free: 6.52 MB / 346.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5768, allocations: 0 / 430.2 MB, free: 6.52 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02176/0.5986, allocations: 2.358 MB / 432.6 MB, free: 4.273 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003485/0.599, allocations: 197.6 kB / 432.8 MB, free: 4.043 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.524/3.123, allocations: 4 kB / 432.8 MB, free: 4.039 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat