Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.836/1.836, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.465e-05/2.461e-05, allocations: 0 / 219.5 MB, free: 7.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2839, allocations: 38.77 MB / 258.3 MB, free: 12.15 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1331/0.417, allocations: 70.65 MB / 329 MB, free: 7.258 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/0.4174, allocations: 67.97 kB / 329 MB, free: 7.191 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03869/0.4561, allocations: 8.218 MB / 337.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4562, allocations: 0 / 337.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.752e-05/0.4563, allocations: 12 kB / 337.3 MB, free: 14.93 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.001863/0.4581, allocations: 0.6583 MB / 337.9 MB, free: 14.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.4582, allocations: 8.031 kB / 337.9 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001877/0.4584, allocations: 51.42 kB / 338 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.4594, allocations: 367.2 kB / 338.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.704e-05/0.4595, allocations: 42.48 kB / 338.4 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.129e-05/0.4596, allocations: 19.91 kB / 338.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007305/0.4604, allocations: 237.5 kB / 338.6 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000788/0.4612, allocations: 311.1 kB / 338.9 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.65e-05/0.4612, allocations: 0 / 338.9 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.883e-05/0.4613, allocations: 0 / 338.9 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.232e-05/0.4613, allocations: 11.94 kB / 338.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003134/0.4645, allocations: 1.1 MB / 340 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000825/0.4653, allocations: 242.4 kB / 340.3 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002665/0.4656, allocations: 100.8 kB / 340.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.128e-05/0.4657, allocations: 4 kB / 340.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.4658, allocations: 38.56 kB / 340.4 MB, free: 11.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.955e-06/0.4658, allocations: 0 / 340.4 MB, free: 11.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.003171/0.4689, allocations: 0.9091 MB / 341.3 MB, free: 10.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.998e-05/0.4691, allocations: 106.8 kB / 341.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005057/0.4696, allocations: 253.1 kB / 341.7 MB, free: 10.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.698e-05/0.4697, allocations: 29.7 kB / 341.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.4699, allocations: 274.7 kB / 342 MB, free: 9.895 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/0.47, allocations: 106.4 kB / 342.1 MB, free: 9.789 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.517e-05/0.4701, allocations: 0 / 342.1 MB, free: 9.789 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4702, allocations: 330.8 kB / 342.4 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002877/0.4705, allocations: 96.75 kB / 342.5 MB, free: 9.359 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003425/0.4709, allocations: 159.1 kB / 342.7 MB, free: 9.184 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003068/0.4712, allocations: 112.2 kB / 342.8 MB, free: 9.074 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.4712, allocations: 0 / 342.8 MB, free: 9.074 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007894/0.472, allocations: 289.3 kB / 343 MB, free: 8.785 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.4721, allocations: 8 kB / 343.1 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.4721, allocations: 0 / 343.1 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-05/0.4721, allocations: 8.125 kB / 343.1 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/0.4733, allocations: 155.8 kB / 343.2 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.4733, allocations: 0 / 343.2 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005951/0.474, allocations: 39.95 kB / 343.3 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.945e-05/0.474, allocations: 12 kB / 343.3 MB, free: 8.566 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.0001727/0.4742, allocations: 118.2 kB / 343.4 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006566/0.4749, allocations: 241.2 kB / 343.6 MB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.532e-05/0.475, allocations: 35.53 kB / 343.7 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001337/0.4751, allocations: 40.28 kB / 343.7 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.4751, allocations: 4 kB / 343.7 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.4752, allocations: 0 / 343.7 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.4752, allocations: 7.938 kB / 343.7 MB, free: 8.113 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.4768, allocations: 0.7245 MB / 344.4 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.4768, allocations: 0 / 344.4 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009233/0.4778, allocations: 108 kB / 344.5 MB, free: 7.227 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.231e-05/0.4778, allocations: 7.938 kB / 344.5 MB, free: 7.219 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.197e-05/0.4778, allocations: 7.953 kB / 344.5 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.4779, allocations: 0 / 344.5 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.4779, allocations: 4 kB / 344.6 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.479, allocations: 0.5252 MB / 345.1 MB, free: 6.629 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002551/0.4793, allocations: 136.8 kB / 345.2 MB, free: 6.477 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.354e-05/0.4793, allocations: 7.938 kB / 345.2 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006692/0.48, allocations: 47.95 kB / 345.3 MB, free: 6.422 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.4802, allocations: 27.92 kB / 345.3 MB, free: 6.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.035e-05/0.4802, allocations: 15.98 kB / 345.3 MB, free: 6.379 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003256/0.4806, allocations: 200.6 kB / 345.5 MB, free: 6.184 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4806, allocations: 0 / 345.5 MB, free: 6.184 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006062/0.4812, allocations: 68 kB / 345.6 MB, free: 6.117 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.001499/0.4827, allocations: 1.333 MB / 346.9 MB, free: 4.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006962/0.4834, allocations: 243.9 kB / 347.1 MB, free: 4.492 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.4834, allocations: 0 / 347.1 MB, free: 4.492 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003094/0.4838, allocations: 120 kB / 347.3 MB, free: 4.375 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007998/0.4846, allocations: 70.53 kB / 347.3 MB, free: 4.309 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003086/0.4877, allocations: 0.9135 MB / 348.2 MB, free: 3.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000472/0.4882, allocations: 0.8107 MB / 349.1 MB, free: 2.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000346/0.4886, allocations: 127.4 kB / 349.2 MB, free: 2.375 MB / 298.7 MB Notification: Performance of SimCode: time 8.61e-07/0.4886, allocations: 0 / 349.2 MB, free: 2.375 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.569/3.057, allocations: 6.142 MB / 355.3 MB, free: 12.24 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat