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.774/1.774, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.67e-05/3.72e-05, allocations: 4 kB / 225.1 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2828, allocations: 38.77 MB / 263.8 MB, free: 9.727 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1324/0.4153, allocations: 71.31 MB / 335.2 MB, free: 2.312 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002823/0.4156, allocations: 71.95 kB / 335.2 MB, free: 2.242 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04691/0.4626, allocations: 8.296 MB / 343.5 MB, free: 9.918 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.4626, allocations: 0 / 343.5 MB, free: 9.918 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.226e-05/0.4627, allocations: 12 kB / 343.5 MB, free: 9.906 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.00229/0.465, allocations: 0.6661 MB / 344.2 MB, free: 9.191 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.959e-05/0.4651, allocations: 8.031 kB / 344.2 MB, free: 9.184 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001617/0.4653, allocations: 70.53 kB / 344.3 MB, free: 9.105 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000202/0.4655, allocations: 47.44 kB / 344.3 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00133/0.4668, allocations: 363.2 kB / 344.7 MB, free: 8.664 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.467, allocations: 50.48 kB / 344.7 MB, free: 8.609 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.4671, allocations: 39.91 kB / 344.8 MB, free: 8.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.4685, allocations: 348.6 kB / 345.1 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3e-05/0.4685, allocations: 0 / 345.1 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.861e-05/0.4686, allocations: 16 kB / 345.1 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.042e-05/0.4686, allocations: 8 kB / 345.1 MB, free: 8.184 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001104/0.4698, allocations: 251 kB / 345.4 MB, free: 7.941 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004353/0.4741, allocations: 1.179 MB / 346.6 MB, free: 6.695 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.4754, allocations: 250.8 kB / 346.8 MB, free: 6.438 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004096/0.4758, allocations: 116.8 kB / 346.9 MB, free: 6.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.639e-05/0.4759, allocations: 4 kB / 346.9 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.124e-05/0.4759, allocations: 38.5 kB / 347 MB, free: 6.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 4.608e-06/0.4759, allocations: 0 / 347 MB, free: 6.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.003268/0.4792, allocations: 0.9834 MB / 347.9 MB, free: 5.191 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.4794, allocations: 102.8 kB / 348 MB, free: 5.066 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006837/0.4801, allocations: 286.6 kB / 348.3 MB, free: 4.781 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.362e-05/0.4801, allocations: 33.64 kB / 348.3 MB, free: 4.742 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002616/0.4804, allocations: 208.1 kB / 348.6 MB, free: 4.531 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.4806, allocations: 118.2 kB / 348.7 MB, free: 4.414 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.728e-05/0.4807, allocations: 8 kB / 348.7 MB, free: 4.406 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002302/0.4809, allocations: 346.8 kB / 349 MB, free: 4.059 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004524/0.4814, allocations: 104.7 kB / 349.1 MB, free: 3.953 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005695/0.482, allocations: 175.2 kB / 349.3 MB, free: 3.762 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004937/0.4825, allocations: 115.9 kB / 349.4 MB, free: 3.652 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.4825, allocations: 0 / 349.4 MB, free: 3.652 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001308/0.4838, allocations: 345.3 kB / 349.7 MB, free: 3.309 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.4839, allocations: 8 kB / 349.7 MB, free: 3.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.4839, allocations: 0 / 349.7 MB, free: 3.301 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.599e-05/0.4839, allocations: 7.938 kB / 349.8 MB, free: 3.293 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001584/0.4855, allocations: 151.9 kB / 349.9 MB, free: 3.145 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.117e-05/0.4856, allocations: 7.953 kB / 349.9 MB, free: 3.137 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007773/0.4864, allocations: 43.97 kB / 350 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.198e-05/0.4864, allocations: 12 kB / 350 MB, free: 3.082 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.0002232/0.4867, allocations: 128.8 kB / 350.1 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.4869, allocations: 35.53 kB / 350.1 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001745/0.487, allocations: 48.08 kB / 350.2 MB, free: 2.867 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.4871, allocations: 4 kB / 350.2 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.4871, allocations: 0 / 350.2 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.4871, allocations: 3.953 kB / 350.2 MB, free: 2.859 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00242/0.4895, allocations: 0.7866 MB / 351 MB, free: 2.004 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.4896, allocations: 4.125 kB / 351 MB, free: 2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.4908, allocations: 103.9 kB / 351.1 MB, free: 1.898 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.961e-05/0.4908, allocations: 11.94 kB / 351.1 MB, free: 1.887 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.44e-05/0.4909, allocations: 4 kB / 351.1 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.618e-06/0.4909, allocations: 4 kB / 351.1 MB, free: 1.879 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.4909, allocations: 7.984 kB / 351.1 MB, free: 1.871 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.4925, allocations: 0.552 MB / 351.6 MB, free: 1.266 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003199/0.4928, allocations: 140.7 kB / 351.8 MB, free: 1.109 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.493, allocations: 11.98 kB / 351.8 MB, free: 1.098 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008995/0.4939, allocations: 55.95 kB / 351.9 MB, free: 1.043 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/0.494, allocations: 23.92 kB / 351.9 MB, free: 1.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.858e-05/0.4941, allocations: 8 kB / 351.9 MB, free: 1.012 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005388/0.4946, allocations: 230.2 kB / 352.1 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.4947, allocations: 3.938 kB / 352.1 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008521/0.4955, allocations: 80 kB / 352.2 MB, free: 0.7031 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.002245/0.4978, allocations: 1.376 MB / 353.6 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.4989, allocations: 268.1 kB / 353.8 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.4989, allocations: 0 / 353.8 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004878/0.4994, allocations: 124.1 kB / 354 MB, free: 14.89 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/0.5005, allocations: 83.12 kB / 354 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004248/0.5048, allocations: 0.914 MB / 354.9 MB, free: 13.85 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007199/0.5056, allocations: 0.8031 MB / 355.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004713/0.506, allocations: 62.92 kB / 355.8 MB, free: 12.96 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003907/0.5065, allocations: 119.4 kB / 355.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5065, allocations: 0 / 355.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03511/0.5416, allocations: 7.237 MB / 363.2 MB, free: 5.664 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003261/0.542, allocations: 148.5 kB / 363.3 MB, free: 5.434 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.553/3.095, allocations: 0 / 363.3 MB, free: 5.434 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