Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.204/2.204, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.822e-05/3.859e-05, allocations: 4 kB / 269.4 MB, free: 6.312 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1314, allocations: 47.58 MB / 317 MB, free: 6.652 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4806/0.6121, allocations: 81.72 MB / 398.7 MB, free: 6.055 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.6125, allocations: 69.34 kB / 398.8 MB, free: 6.023 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04287/0.6554, allocations: 8.278 MB / 407.1 MB, free: 15.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.6554, allocations: 8 kB / 407.1 MB, free: 15.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.47e-05/0.6555, allocations: 8 kB / 407.1 MB, free: 15.06 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002063/0.6576, allocations: 0.6819 MB / 407.8 MB, free: 14.36 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.145e-05/0.6577, allocations: 8.031 kB / 407.8 MB, free: 14.35 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002024/0.6579, allocations: 81.97 kB / 407.9 MB, free: 14.28 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001752/0.6581, allocations: 47.44 kB / 407.9 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009012/0.659, allocations: 359.9 kB / 408.3 MB, free: 13.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.092e-05/0.6591, allocations: 25.59 kB / 408.3 MB, free: 13.87 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.6592, allocations: 39.22 kB / 408.3 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009772/0.6602, allocations: 392.6 kB / 408.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.236e-05/0.6603, allocations: 0 / 408.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.83e-05/0.6603, allocations: 14.5 kB / 408.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/0.6604, allocations: 12 kB / 408.7 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008392/0.6612, allocations: 260.4 kB / 409 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003744/0.665, allocations: 1.585 MB / 410.6 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008615/0.6659, allocations: 256.1 kB / 410.8 MB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003218/0.6663, allocations: 118.5 kB / 410.9 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.472e-05/0.6663, allocations: 3.938 kB / 410.9 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.6664, allocations: 38.5 kB / 411 MB, free: 11.64 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 4.078e-06/0.6664, allocations: 0 / 411 MB, free: 11.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.002607/0.669, allocations: 0.9997 MB / 412 MB, free: 10.72 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/0.6691, allocations: 81.11 kB / 412.1 MB, free: 10.62 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006051/0.6698, allocations: 325.1 kB / 412.4 MB, free: 10.36 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.54e-05/0.6699, allocations: 29.64 kB / 412.4 MB, free: 10.33 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002113/0.6701, allocations: 249.5 kB / 412.6 MB, free: 10.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.6702, allocations: 109.1 kB / 412.8 MB, free: 10.05 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-05/0.6703, allocations: 11.75 kB / 412.8 MB, free: 10.05 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.6704, allocations: 350 kB / 413.1 MB, free: 9.711 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000341/0.6708, allocations: 107.2 kB / 413.2 MB, free: 9.645 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.6712, allocations: 189.6 kB / 413.4 MB, free: 9.477 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000372/0.6716, allocations: 130.5 kB / 413.5 MB, free: 9.391 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.6716, allocations: 3.938 kB / 413.5 MB, free: 9.387 MB / 330.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001046/0.6727, allocations: 385.1 kB / 413.9 MB, free: 9.094 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000361/0.6731, allocations: 0.7857 MB / 414.7 MB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.6731, allocations: 4 kB / 414.7 MB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.928e-05/0.6732, allocations: 4 kB / 414.7 MB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00199/0.6752, allocations: 267.6 kB / 415 MB, free: 7.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009269/0.6761, allocations: 0.6482 MB / 415.6 MB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007719/0.677, allocations: 55.73 kB / 415.7 MB, free: 7.285 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.607e-05/0.677, allocations: 11.75 kB / 415.7 MB, free: 7.277 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.6771, allocations: 7.938 kB / 415.7 MB, free: 7.27 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009144/0.678, allocations: 315.8 kB / 416 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.6781, allocations: 7.938 kB / 416 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.6781, allocations: 4.219 kB / 416 MB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.6793, allocations: 131.3 kB / 416.1 MB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.106e-05/0.6794, allocations: 7.938 kB / 416.1 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006703/0.6801, allocations: 46.47 kB / 416.2 MB, free: 6.871 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.333e-05/0.6802, allocations: 19.64 kB / 416.2 MB, free: 6.855 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.0002074/0.6804, allocations: 123 kB / 416.3 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/0.6806, allocations: 50.73 kB / 416.4 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001614/0.6808, allocations: 41.5 kB / 416.4 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.6808, allocations: 4 kB / 416.4 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.6808, allocations: 0 / 416.4 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.6808, allocations: 4 kB / 416.4 MB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002101/0.6829, allocations: 0.8162 MB / 417.2 MB, free: 5.961 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.888e-06/0.683, allocations: 4 kB / 417.2 MB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009582/0.684, allocations: 103.5 kB / 417.3 MB, free: 5.859 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.216e-05/0.684, allocations: 0 / 417.3 MB, free: 5.859 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.334e-05/0.6841, allocations: 10.52 kB / 417.4 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.147e-06/0.6841, allocations: 4 kB / 417.4 MB, free: 5.848 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.6841, allocations: 0 / 417.4 MB, free: 5.848 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.6854, allocations: 0.5743 MB / 417.9 MB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002864/0.6857, allocations: 130.9 kB / 418.1 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.124e-05/0.6858, allocations: 11.94 kB / 418.1 MB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005975/0.6864, allocations: 43.7 kB / 418.1 MB, free: 5.172 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.6866, allocations: 27.67 kB / 418.1 MB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.324e-05/0.6866, allocations: 18.98 kB / 418.2 MB, free: 5.133 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004835/0.6871, allocations: 246.7 kB / 418.4 MB, free: 4.938 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6871, allocations: 0 / 418.4 MB, free: 4.938 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009929/0.6881, allocations: 137.2 kB / 418.5 MB, free: 4.82 MB / 330.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 (32): * Single equations (assignments): 32 * 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.001896/0.6901, allocations: 1.397 MB / 419.9 MB, free: 3.504 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002375/0.6925, allocations: 0.5618 MB / 420.5 MB, free: 3.082 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/0.6926, allocations: 0 / 420.5 MB, free: 3.082 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004199/0.693, allocations: 131.2 kB / 420.6 MB, free: 2.988 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.6941, allocations: 88.38 kB / 420.7 MB, free: 2.926 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003444/0.6976, allocations: 0.909 MB / 421.6 MB, free: 2.047 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000606/0.6983, allocations: 0.8348 MB / 422.5 MB, free: 1.188 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006672/0.6989, allocations: 81.22 kB / 422.5 MB, free: 1.105 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003198/0.6993, allocations: 144.1 kB / 422.7 MB, free: 1.062 MB / 330.7 MB Notification: Performance of SimCode: time 3.466e-06/0.6993, allocations: 0 / 422.7 MB, free: 1.062 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05284/0.7522, allocations: 8.453 MB / 431.1 MB, free: 8.695 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003465/0.7526, allocations: 169.9 kB / 431.3 MB, free: 8.469 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.03/3.782, allocations: 0 / 431.3 MB, free: 8.469 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat