Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_2_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.056/2.056, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.582e-05/3.599e-05, allocations: 4 kB / 255.5 MB, free: 2.645 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09421/0.09428, allocations: 44.5 MB / 300 MB, free: 6.086 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4331/0.5274, allocations: 76.53 MB / 376.5 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/0.5278, allocations: 72.59 kB / 376.6 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03451/0.5623, allocations: 7.466 MB / 384 MB, free: 11.72 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5624, allocations: 4 kB / 384 MB, free: 11.72 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.021e-05/0.5624, allocations: 7.875 kB / 384 MB, free: 11.72 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.001658/0.5641, allocations: 0.6563 MB / 384.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.5642, allocations: 9.125 kB / 384.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001089/0.5643, allocations: 72.89 kB / 384.8 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.5644, allocations: 46.45 kB / 384.8 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006348/0.5651, allocations: 320.2 kB / 385.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.934e-05/0.5651, allocations: 26.06 kB / 385.2 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.234e-05/0.5652, allocations: 33.5 kB / 385.2 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008115/0.5661, allocations: 329.5 kB / 385.5 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.08e-05/0.5661, allocations: 9.156 kB / 385.5 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.017e-05/0.5662, allocations: 12.94 kB / 385.5 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/0.5662, allocations: 15.89 kB / 385.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006897/0.5669, allocations: 241.6 kB / 385.8 MB, free: 10.87 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002966/0.5699, allocations: 1.182 MB / 387 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007796/0.5707, allocations: 255.3 kB / 387.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000248/0.571, allocations: 112.2 kB / 387.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.947e-05/0.5711, allocations: 3.844 kB / 387.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.414e-05/0.5711, allocations: 34.41 kB / 387.4 MB, free: 10.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.016e-06/0.5711, allocations: 0 / 387.4 MB, free: 10.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.002271/0.5734, allocations: 0.9683 MB / 388.3 MB, free: 9.734 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.5735, allocations: 81.08 kB / 388.4 MB, free: 9.641 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004626/0.574, allocations: 287.9 kB / 388.7 MB, free: 9.527 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.047e-05/0.574, allocations: 32.73 kB / 388.7 MB, free: 9.496 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.5742, allocations: 216 kB / 388.9 MB, free: 9.367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.587e-05/0.5743, allocations: 114.5 kB / 389.1 MB, free: 9.289 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.741e-05/0.5743, allocations: 10.12 kB / 389.1 MB, free: 9.289 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.423e-05/0.5744, allocations: 347.1 kB / 389.4 MB, free: 8.977 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002687/0.5747, allocations: 103.7 kB / 389.5 MB, free: 8.969 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/0.575, allocations: 164 kB / 389.7 MB, free: 8.914 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002959/0.5753, allocations: 114.7 kB / 389.8 MB, free: 8.91 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.5754, allocations: 0 / 389.8 MB, free: 8.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000814/0.5762, allocations: 345.8 kB / 390.1 MB, free: 8.844 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.5763, allocations: 453.2 kB / 390.6 MB, free: 8.387 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.5764, allocations: 3.906 kB / 390.6 MB, free: 8.387 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.453e-05/0.5764, allocations: 7.875 kB / 390.6 MB, free: 8.379 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001759/0.5782, allocations: 248.6 kB / 390.8 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000707/0.5789, allocations: 0.65 MB / 391.5 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006552/0.5796, allocations: 51.92 kB / 391.5 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.471e-05/0.5796, allocations: 10.62 kB / 391.5 MB, free: 7.777 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.5796, allocations: 9.969 kB / 391.5 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006866/0.5803, allocations: 284 kB / 391.8 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.5804, allocations: 0 / 391.8 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.5804, allocations: 7.828 kB / 391.8 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008742/0.5813, allocations: 116.1 kB / 391.9 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.5813, allocations: 8 kB / 391.9 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005218/0.5818, allocations: 39.34 kB / 392 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.229e-05/0.5819, allocations: 14.91 kB / 392 MB, free: 7.746 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.0001478/0.582, allocations: 129.2 kB / 392.1 MB, free: 7.633 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.469e-05/0.5821, allocations: 39.16 kB / 392.2 MB, free: 7.609 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001311/0.5823, allocations: 39.08 kB / 392.2 MB, free: 7.602 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.5823, allocations: 7.859 kB / 392.2 MB, free: 7.598 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.5823, allocations: 0 / 392.2 MB, free: 7.598 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.5823, allocations: 7.125 kB / 392.2 MB, free: 7.594 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.5838, allocations: 0.7946 MB / 393 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.5838, allocations: 0 / 393 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008559/0.5847, allocations: 95.5 kB / 393.1 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.187e-06/0.5847, allocations: 0 / 393.1 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.674e-05/0.5848, allocations: 10.28 kB / 393.1 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.261e-06/0.5848, allocations: 11.91 kB / 393.1 MB, free: 7.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.5848, allocations: 0 / 393.1 MB, free: 7.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009068/0.5857, allocations: 0.5358 MB / 393.7 MB, free: 6.977 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001849/0.5859, allocations: 135.4 kB / 393.8 MB, free: 6.863 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.347e-05/0.586, allocations: 9.891 kB / 393.8 MB, free: 6.863 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005337/0.5865, allocations: 49.53 kB / 393.8 MB, free: 6.855 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.843e-05/0.5867, allocations: 31.7 kB / 393.9 MB, free: 6.848 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.5867, allocations: 11.25 kB / 393.9 MB, free: 6.848 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003087/0.587, allocations: 222.5 kB / 394.1 MB, free: 6.766 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.587, allocations: 0 / 394.1 MB, free: 6.766 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000744/0.5878, allocations: 128.6 kB / 394.2 MB, free: 6.766 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.001486/0.5893, allocations: 1.375 MB / 395.6 MB, free: 21.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001826/0.5911, allocations: 0.5396 MB / 396.1 MB, free: 21.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.5912, allocations: 0 / 396.1 MB, free: 21.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002951/0.5915, allocations: 128.5 kB / 396.3 MB, free: 21.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008033/0.5923, allocations: 74.94 kB / 396.3 MB, free: 21.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002819/0.5951, allocations: 0.9242 MB / 397.3 MB, free: 21.2 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000467/0.5956, allocations: 0.8164 MB / 398.1 MB, free: 20.49 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005548/0.5962, allocations: 73.88 kB / 398.2 MB, free: 20.47 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002511/0.5965, allocations: 122.7 kB / 398.3 MB, free: 20.46 MB / 330.7 MB Notification: Performance of SimCode: time 1.262e-06/0.5965, allocations: 0 / 398.3 MB, free: 20.46 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03389/0.6304, allocations: 7.629 MB / 405.9 MB, free: 19.24 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.001044/0.6315, allocations: 162.4 kB / 406.1 MB, free: 19.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.955/3.587, allocations: 0 / 406.1 MB, free: 19.02 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat