Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_1_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.755/1.755, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.664e-05/2.673e-05, allocations: 4 kB / 219.6 MB, free: 6.957 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2582, allocations: 38.77 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1329/0.3911, allocations: 70.65 MB / 329 MB, free: 7.117 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.3914, allocations: 67.97 kB / 329.1 MB, free: 7.051 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03751/0.429, allocations: 8.227 MB / 337.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.429, allocations: 0 / 337.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.031e-05/0.4291, allocations: 12 kB / 337.3 MB, free: 14.79 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001706/0.4308, allocations: 0.6622 MB / 338 MB, free: 14.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.4308, allocations: 8.031 kB / 338 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.431, allocations: 47.44 kB / 338 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009451/0.432, allocations: 367.2 kB / 338.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.958e-05/0.4321, allocations: 42.48 kB / 338.4 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.087e-05/0.4321, allocations: 19.91 kB / 338.4 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006799/0.4328, allocations: 229.5 kB / 338.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007671/0.4336, allocations: 311.1 kB / 339 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.656e-05/0.4337, allocations: 4 kB / 339 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.113e-05/0.4337, allocations: 3.984 kB / 339 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.4337, allocations: 8 kB / 339 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002936/0.4367, allocations: 1.1 MB / 340.1 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007734/0.4375, allocations: 242.4 kB / 340.3 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002608/0.4378, allocations: 100.8 kB / 340.4 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.878e-05/0.4378, allocations: 4 kB / 340.4 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.4379, allocations: 34.56 kB / 340.4 MB, free: 11.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 3.406e-06/0.4379, allocations: 4 kB / 340.5 MB, free: 11.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.002093/0.44, allocations: 0.9013 MB / 341.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.029e-05/0.4401, allocations: 106.8 kB / 341.5 MB, free: 10.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004211/0.4405, allocations: 257.1 kB / 341.7 MB, free: 10.06 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.4406, allocations: 25.7 kB / 341.7 MB, free: 10.03 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/0.4408, allocations: 228.2 kB / 342 MB, free: 9.801 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.4409, allocations: 106.5 kB / 342.1 MB, free: 9.695 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.364e-05/0.4409, allocations: 0 / 342.1 MB, free: 9.695 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.4411, allocations: 350.8 kB / 342.4 MB, free: 9.344 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002702/0.4414, allocations: 92.75 kB / 342.5 MB, free: 9.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003622/0.4418, allocations: 163 kB / 342.7 MB, free: 9.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.4421, allocations: 108.2 kB / 342.8 MB, free: 8.965 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4421, allocations: 0 / 342.8 MB, free: 8.965 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007749/0.4429, allocations: 317.1 kB / 343.1 MB, free: 8.648 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.4429, allocations: 4 kB / 343.1 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.4429, allocations: 4 kB / 343.1 MB, free: 8.641 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.443, allocations: 96 / 343.1 MB, free: 8.641 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.4441, allocations: 163.7 kB / 343.2 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.984e-06/0.4441, allocations: 4 kB / 343.2 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005042/0.4446, allocations: 31.97 kB / 343.3 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.4447, allocations: 19.98 kB / 343.3 MB, free: 8.426 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.000138/0.4448, allocations: 112.9 kB / 343.4 MB, free: 8.309 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005771/0.4454, allocations: 237.2 kB / 343.6 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.543e-05/0.4455, allocations: 35.62 kB / 343.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.4457, allocations: 36.3 kB / 343.7 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.4457, allocations: 0 / 343.7 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4457, allocations: 3.984 kB / 343.7 MB, free: 7.992 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.4457, allocations: 7.953 kB / 343.7 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00153/0.4473, allocations: 0.7284 MB / 344.4 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.4473, allocations: 0 / 344.4 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008618/0.4482, allocations: 108 kB / 344.5 MB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.106e-05/0.4482, allocations: 4 kB / 344.6 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.061e-05/0.4482, allocations: 3.953 kB / 344.6 MB, free: 7.086 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.075e-06/0.4482, allocations: 4 kB / 344.6 MB, free: 7.082 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.4483, allocations: 3.938 kB / 344.6 MB, free: 7.078 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.4493, allocations: 0.5284 MB / 345.1 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002145/0.4495, allocations: 136.8 kB / 345.2 MB, free: 6.348 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.05e-05/0.4496, allocations: 4.109 kB / 345.2 MB, free: 6.344 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006701/0.4503, allocations: 55.95 kB / 345.3 MB, free: 6.289 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.4504, allocations: 31.86 kB / 345.3 MB, free: 6.258 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/0.4505, allocations: 12 kB / 345.3 MB, free: 6.246 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002972/0.4508, allocations: 200.6 kB / 345.5 MB, free: 6.051 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.4508, allocations: 0 / 345.5 MB, free: 6.051 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005507/0.4513, allocations: 72 kB / 345.6 MB, free: 5.98 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 31 * 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.001459/0.4528, allocations: 1.329 MB / 346.9 MB, free: 4.598 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000671/0.4535, allocations: 235.9 kB / 347.2 MB, free: 4.367 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.4535, allocations: 4 kB / 347.2 MB, free: 4.363 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003254/0.4539, allocations: 128 kB / 347.3 MB, free: 4.238 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000792/0.4547, allocations: 67.83 kB / 347.3 MB, free: 4.176 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002947/0.4576, allocations: 0.8773 MB / 348.2 MB, free: 3.246 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000498/0.4582, allocations: 0.8107 MB / 349 MB, free: 2.406 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003315/0.4585, allocations: 51.25 kB / 349.1 MB, free: 2.359 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002911/0.4588, allocations: 123.4 kB / 349.2 MB, free: 2.238 MB / 298.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4588, allocations: 0 / 349.2 MB, free: 2.238 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0475/0.5063, allocations: 6.6 MB / 355.8 MB, free: 11.66 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003159/0.5067, allocations: 132.6 kB / 355.9 MB, free: 11.46 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.481/2.988, allocations: 0 / 355.9 MB, free: 11.46 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat