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.813/1.813, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.695e-05/4.685e-05, allocations: 4 kB / 225.1 MB, free: 2.629 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2881, allocations: 38.77 MB / 263.8 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1586/0.4467, allocations: 71.32 MB / 335.2 MB, free: 2.336 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003339/0.4471, allocations: 67.97 kB / 335.2 MB, free: 2.27 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0488/0.4959, allocations: 8.298 MB / 343.5 MB, free: 9.941 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.496, allocations: 0 / 343.5 MB, free: 9.941 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.379e-05/0.496, allocations: 16 kB / 343.5 MB, free: 9.926 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.001798/0.4979, allocations: 0.6583 MB / 344.2 MB, free: 9.219 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.4979, allocations: 8.031 kB / 344.2 MB, free: 9.211 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001271/0.4981, allocations: 74.53 kB / 344.3 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.4982, allocations: 47.44 kB / 344.3 MB, free: 9.082 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009845/0.4992, allocations: 363.2 kB / 344.7 MB, free: 8.688 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.478e-05/0.4993, allocations: 50.48 kB / 344.7 MB, free: 8.633 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.447e-05/0.4994, allocations: 39.91 kB / 344.8 MB, free: 8.594 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009382/0.5004, allocations: 347.1 kB / 345.1 MB, free: 8.234 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.5004, allocations: 0 / 345.1 MB, free: 8.234 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.923e-05/0.5005, allocations: 12 kB / 345.1 MB, free: 8.223 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.5005, allocations: 11.98 kB / 345.1 MB, free: 8.211 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00075/0.5013, allocations: 241.5 kB / 345.4 MB, free: 7.977 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003241/0.5046, allocations: 1.176 MB / 346.5 MB, free: 6.734 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009062/0.5055, allocations: 262.8 kB / 346.8 MB, free: 6.465 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003103/0.5058, allocations: 104.9 kB / 346.9 MB, free: 6.359 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.61e-05/0.5059, allocations: 8 kB / 346.9 MB, free: 6.352 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.5059, allocations: 34.56 kB / 346.9 MB, free: 6.309 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.876e-06/0.506, allocations: 0 / 346.9 MB, free: 6.309 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.002525/0.5085, allocations: 0.9717 MB / 347.9 MB, free: 5.242 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.356e-05/0.5086, allocations: 110.8 kB / 348 MB, free: 5.109 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005395/0.5092, allocations: 286.6 kB / 348.3 MB, free: 4.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.701e-05/0.5093, allocations: 37.58 kB / 348.3 MB, free: 4.777 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.5095, allocations: 258.6 kB / 348.6 MB, free: 4.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.5096, allocations: 114.4 kB / 348.7 MB, free: 4.406 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.656e-05/0.5097, allocations: 4 kB / 348.7 MB, free: 4.402 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.5098, allocations: 326.8 kB / 349 MB, free: 4.074 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.5102, allocations: 104.7 kB / 349.1 MB, free: 3.969 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004092/0.5106, allocations: 167.1 kB / 349.3 MB, free: 3.785 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000368/0.511, allocations: 112 kB / 349.4 MB, free: 3.676 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.511, allocations: 0 / 349.4 MB, free: 3.676 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009458/0.512, allocations: 329.6 kB / 349.7 MB, free: 3.348 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.512, allocations: 4 kB / 349.7 MB, free: 3.344 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.512, allocations: 3.984 kB / 349.7 MB, free: 3.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.452e-05/0.5121, allocations: 7.938 kB / 349.7 MB, free: 3.332 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.5132, allocations: 151.9 kB / 349.9 MB, free: 3.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.941e-05/0.5133, allocations: 7.953 kB / 349.9 MB, free: 3.176 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006004/0.5139, allocations: 43.97 kB / 349.9 MB, free: 3.133 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.014e-05/0.5139, allocations: 12 kB / 350 MB, free: 3.121 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.0001813/0.5141, allocations: 120.9 kB / 350.1 MB, free: 2.996 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.5143, allocations: 39.52 kB / 350.1 MB, free: 2.957 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001437/0.5144, allocations: 44.08 kB / 350.2 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.5144, allocations: 4 kB / 350.2 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.5144, allocations: 0 / 350.2 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.5145, allocations: 3.953 kB / 350.2 MB, free: 2.906 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002724/0.5172, allocations: 0.8022 MB / 351 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.493e-06/0.5173, allocations: 0 / 351 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009199/0.5182, allocations: 100 kB / 351.1 MB, free: 1.938 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.498e-05/0.5182, allocations: 7.953 kB / 351.1 MB, free: 1.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.072e-05/0.5183, allocations: 11.98 kB / 351.1 MB, free: 1.918 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.633e-06/0.5183, allocations: 7.938 kB / 351.1 MB, free: 1.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.5183, allocations: 0 / 351.1 MB, free: 1.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.5196, allocations: 0.548 MB / 351.6 MB, free: 1.309 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00029/0.5199, allocations: 140.7 kB / 351.8 MB, free: 1.152 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.586e-05/0.52, allocations: 12 kB / 351.8 MB, free: 1.141 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007084/0.5207, allocations: 55.94 kB / 351.8 MB, free: 1.086 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.5209, allocations: 27.92 kB / 351.9 MB, free: 1.059 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.011e-05/0.5209, allocations: 12 kB / 351.9 MB, free: 1.047 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004431/0.5214, allocations: 230.1 kB / 352.1 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5214, allocations: 0 / 352.1 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001106/0.5225, allocations: 84 kB / 352.2 MB, free: 0.7461 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.002881/0.5254, allocations: 1.368 MB / 353.6 MB, free: 15.32 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.5269, allocations: 256.2 kB / 353.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/0.527, allocations: 0 / 353.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006297/0.5276, allocations: 128.1 kB / 353.9 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.5292, allocations: 78.09 kB / 354 MB, free: 14.88 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005479/0.5347, allocations: 0.9509 MB / 355 MB, free: 13.87 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007512/0.5355, allocations: 0.807 MB / 355.8 MB, free: 13.04 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005413/0.5361, allocations: 123.4 kB / 355.9 MB, free: 12.91 MB / 314.7 MB Notification: Performance of SimCode: time 1.433e-06/0.5361, allocations: 0 / 355.9 MB, free: 12.91 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.648/3.184, allocations: 6.198 MB / 362.1 MB, free: 6.727 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