Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.941/1.941, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.257e-05/3.259e-05, allocations: 1.406 kB / 255.4 MB, free: 3.125 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09354/0.0936, allocations: 44.52 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4182/0.5119, allocations: 76.51 MB / 376.4 MB, free: 12.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.5122, allocations: 69.42 kB / 376.5 MB, free: 12.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03218/0.5444, allocations: 7.467 MB / 384 MB, free: 11.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5445, allocations: 0 / 384 MB, free: 11.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.88e-05/0.5445, allocations: 7.406 kB / 384 MB, free: 11.77 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001529/0.5461, allocations: 0.655 MB / 384.6 MB, free: 11.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.5461, allocations: 14.19 kB / 384.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.438e-05/0.5462, allocations: 66 kB / 384.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.5464, allocations: 49.92 kB / 384.8 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005664/0.5469, allocations: 321.2 kB / 385.1 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.632e-05/0.547, allocations: 23.31 kB / 385.1 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.186e-05/0.5471, allocations: 40.64 kB / 385.1 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008008/0.5479, allocations: 331.5 kB / 385.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.987e-05/0.5479, allocations: 8.062 kB / 385.5 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.084e-05/0.548, allocations: 14.22 kB / 385.5 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.548, allocations: 11.95 kB / 385.5 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006847/0.5487, allocations: 247.7 kB / 385.7 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002683/0.5514, allocations: 1.183 MB / 386.9 MB, free: 10.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007967/0.5522, allocations: 252.2 kB / 387.2 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.5525, allocations: 116.8 kB / 387.3 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.354e-05/0.5526, allocations: 5.688 kB / 387.3 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.5526, allocations: 37.22 kB / 387.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.076e-06/0.5526, allocations: 0 / 387.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.002072/0.5547, allocations: 0.9713 MB / 388.3 MB, free: 9.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.5548, allocations: 80.98 kB / 388.4 MB, free: 9.676 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003952/0.5552, allocations: 290.4 kB / 388.7 MB, free: 9.562 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/0.5552, allocations: 31.52 kB / 388.7 MB, free: 9.531 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.5554, allocations: 257.4 kB / 388.9 MB, free: 9.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.494e-05/0.5555, allocations: 120.1 kB / 389.1 MB, free: 9.266 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.606e-05/0.5555, allocations: 11.19 kB / 389.1 MB, free: 9.262 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.444e-05/0.5556, allocations: 323.8 kB / 389.4 MB, free: 8.949 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002646/0.5559, allocations: 104 kB / 389.5 MB, free: 8.945 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003136/0.5562, allocations: 169 kB / 389.7 MB, free: 8.887 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002869/0.5565, allocations: 118.9 kB / 389.8 MB, free: 8.879 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5565, allocations: 0 / 389.8 MB, free: 8.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007349/0.5573, allocations: 324.7 kB / 390.1 MB, free: 8.828 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001266/0.5574, allocations: 445.9 kB / 390.5 MB, free: 8.371 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.5574, allocations: 7.906 kB / 390.5 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.5575, allocations: 3.844 kB / 390.5 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001651/0.5591, allocations: 258.8 kB / 390.8 MB, free: 8.348 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006474/0.5598, allocations: 0.6481 MB / 391.4 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006014/0.5604, allocations: 49.31 kB / 391.5 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.516e-05/0.5605, allocations: 14.81 kB / 391.5 MB, free: 7.754 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.076e-05/0.5605, allocations: 3.875 kB / 391.5 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006463/0.5611, allocations: 285.5 kB / 391.8 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.5612, allocations: 4.094 kB / 391.8 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.188e-06/0.5612, allocations: 7.891 kB / 391.8 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008573/0.562, allocations: 117.1 kB / 391.9 MB, free: 7.727 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.5621, allocations: 3.625 kB / 391.9 MB, free: 7.727 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004151/0.5625, allocations: 47.23 kB / 392 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.084e-05/0.5625, allocations: 14.84 kB / 392 MB, free: 7.719 MB / 314.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): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000135/0.5627, allocations: 121.7 kB / 392.1 MB, free: 7.609 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.5628, allocations: 31.12 kB / 392.1 MB, free: 7.594 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000144/0.5629, allocations: 43.41 kB / 392.2 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.984e-06/0.563, allocations: 7.703 kB / 392.2 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.563, allocations: 4 kB / 392.2 MB, free: 7.578 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.563, allocations: 0 / 392.2 MB, free: 7.578 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.5644, allocations: 0.7985 MB / 393 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.289e-06/0.5645, allocations: 7.875 kB / 393 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007789/0.5652, allocations: 97.81 kB / 393.1 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.5653, allocations: 3.906 kB / 393.1 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.5653, allocations: 5.906 kB / 393.1 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.091e-06/0.5653, allocations: 3.781 kB / 393.1 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.5653, allocations: 1.172 kB / 393.1 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000907/0.5663, allocations: 0.5471 MB / 393.6 MB, free: 6.945 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000174/0.5665, allocations: 134.8 kB / 393.8 MB, free: 6.832 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.191e-05/0.5665, allocations: 7.719 kB / 393.8 MB, free: 6.832 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000506/0.5671, allocations: 45.53 kB / 393.8 MB, free: 6.832 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.5672, allocations: 29.16 kB / 393.8 MB, free: 6.824 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.5672, allocations: 11.12 kB / 393.9 MB, free: 6.824 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000295/0.5675, allocations: 218.8 kB / 394.1 MB, free: 6.738 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5675, allocations: 3.875 kB / 394.1 MB, free: 6.738 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007115/0.5682, allocations: 127.2 kB / 394.2 MB, free: 6.738 MB / 314.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.00147/0.5697, allocations: 1.378 MB / 395.6 MB, free: 21.68 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.5715, allocations: 0.54 MB / 396.1 MB, free: 21.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.5715, allocations: 4.188 kB / 396.1 MB, free: 21.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002929/0.5718, allocations: 122.2 kB / 396.2 MB, free: 21.63 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007465/0.5726, allocations: 70.62 kB / 396.3 MB, free: 21.63 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002763/0.5754, allocations: 0.9504 MB / 397.3 MB, free: 21.14 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/0.5758, allocations: 0.8219 MB / 398.1 MB, free: 20.43 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000282/0.5761, allocations: 121.3 kB / 398.2 MB, free: 20.43 MB / 330.7 MB Notification: Performance of SimCode: time 1.123e-06/0.5761, allocations: 0 / 398.2 MB, free: 20.43 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.655/3.232, allocations: 6.776 MB / 405 MB, free: 19.61 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat