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.159/2.159, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.493e-05/3.494e-05, allocations: 1.406 kB / 255.4 MB, free: 2.664 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09251/0.09257, allocations: 44.53 MB / 300 MB, free: 6.082 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4561/0.5487, allocations: 76.51 MB / 376.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.549, allocations: 73.33 kB / 376.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03321/0.5823, allocations: 7.462 MB / 384 MB, free: 12.1 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.5823, allocations: 0 / 384 MB, free: 12.1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.254e-05/0.5824, allocations: 8.25 kB / 384 MB, free: 12.1 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.001619/0.584, allocations: 0.6562 MB / 384.7 MB, free: 11.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/0.5841, allocations: 10.34 kB / 384.7 MB, free: 11.63 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001154/0.5842, allocations: 69.45 kB / 384.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.5843, allocations: 46.23 kB / 384.8 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006557/0.585, allocations: 322.7 kB / 385.1 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.109e-05/0.5851, allocations: 24.81 kB / 385.1 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.491e-05/0.5852, allocations: 35.28 kB / 385.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009359/0.5861, allocations: 331.5 kB / 385.5 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.182e-05/0.5862, allocations: 8.016 kB / 385.5 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.294e-05/0.5862, allocations: 15.22 kB / 385.5 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.5863, allocations: 11.48 kB / 385.5 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007096/0.587, allocations: 249.4 kB / 385.8 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002933/0.5899, allocations: 1.181 MB / 386.9 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008504/0.5908, allocations: 260.9 kB / 387.2 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002486/0.5911, allocations: 111.8 kB / 387.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.511e-05/0.5912, allocations: 3.875 kB / 387.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.5912, allocations: 38 kB / 387.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.257e-06/0.5912, allocations: 3.938 kB / 387.4 MB, free: 10.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.002184/0.5934, allocations: 0.9715 MB / 388.3 MB, free: 10.1 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.5935, allocations: 85.02 kB / 388.4 MB, free: 10 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004611/0.594, allocations: 287.3 kB / 388.7 MB, free: 9.895 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.003e-05/0.594, allocations: 29.52 kB / 388.7 MB, free: 9.863 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.5942, allocations: 207.7 kB / 388.9 MB, free: 9.738 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.551e-05/0.5943, allocations: 117.1 kB / 389 MB, free: 9.664 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.632e-05/0.5943, allocations: 11.69 kB / 389 MB, free: 9.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.5944, allocations: 344.7 kB / 389.4 MB, free: 9.348 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.5947, allocations: 103.2 kB / 389.5 MB, free: 9.344 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003205/0.595, allocations: 173.2 kB / 389.7 MB, free: 9.285 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003041/0.5954, allocations: 116.4 kB / 389.8 MB, free: 9.277 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.5954, allocations: 0 / 389.8 MB, free: 9.277 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008236/0.5962, allocations: 339.7 kB / 390.1 MB, free: 9.219 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001362/0.5964, allocations: 454.3 kB / 390.5 MB, free: 8.758 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.5964, allocations: 0 / 390.5 MB, free: 8.758 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.647e-05/0.5964, allocations: 3.906 kB / 390.5 MB, free: 8.758 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001755/0.5982, allocations: 259.5 kB / 390.8 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007704/0.599, allocations: 0.6501 MB / 391.5 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007139/0.5997, allocations: 45.12 kB / 391.5 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.027e-05/0.5998, allocations: 17.7 kB / 391.5 MB, free: 8.148 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.5998, allocations: 3.875 kB / 391.5 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007139/0.6005, allocations: 285.9 kB / 391.8 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.6006, allocations: 4.094 kB / 391.8 MB, free: 8.129 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.6006, allocations: 7.859 kB / 391.8 MB, free: 8.125 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008888/0.6015, allocations: 116.3 kB / 391.9 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.6015, allocations: 7.781 kB / 391.9 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005946/0.6021, allocations: 45.05 kB / 392 MB, free: 8.113 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.456e-05/0.6022, allocations: 11.56 kB / 392 MB, free: 8.113 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.0001791/0.6024, allocations: 123.6 kB / 392.1 MB, free: 8.004 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.745e-05/0.6025, allocations: 38.53 kB / 392.1 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001479/0.6026, allocations: 38.12 kB / 392.2 MB, free: 7.977 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.6027, allocations: 11.83 kB / 392.2 MB, free: 7.969 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.6027, allocations: 2.297 kB / 392.2 MB, free: 7.969 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.6027, allocations: 0 / 392.2 MB, free: 7.969 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001534/0.6042, allocations: 0.7945 MB / 393 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.6043, allocations: 0 / 393 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008202/0.6051, allocations: 101.1 kB / 393.1 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.171e-05/0.6051, allocations: 3.844 kB / 393.1 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.575e-05/0.6052, allocations: 7.812 kB / 393.1 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.193e-06/0.6052, allocations: 3.844 kB / 393.1 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.6052, allocations: 0 / 393.1 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.6062, allocations: 0.5555 MB / 393.7 MB, free: 7.336 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000207/0.6064, allocations: 127.3 kB / 393.8 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.461e-05/0.6065, allocations: 7.406 kB / 393.8 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005284/0.6071, allocations: 47.47 kB / 393.8 MB, free: 7.223 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.6072, allocations: 33.16 kB / 393.9 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.6072, allocations: 7.875 kB / 393.9 MB, free: 7.215 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003261/0.6076, allocations: 223.3 kB / 394.1 MB, free: 7.129 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6076, allocations: 0 / 394.1 MB, free: 7.129 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007115/0.6083, allocations: 129.1 kB / 394.2 MB, free: 7.129 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.001237/0.6096, allocations: 1.381 MB / 395.6 MB, free: 6.066 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001859/0.6114, allocations: 0.5463 MB / 396.1 MB, free: 6.031 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.6115, allocations: 4.188 kB / 396.1 MB, free: 6.027 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003224/0.6118, allocations: 124.2 kB / 396.3 MB, free: 6.02 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008503/0.6127, allocations: 73.41 kB / 396.3 MB, free: 6.016 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002958/0.6157, allocations: 0.9237 MB / 397.3 MB, free: 5.555 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006631/0.6164, allocations: 0.8199 MB / 398.1 MB, free: 20.85 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005536/0.6169, allocations: 72.45 kB / 398.2 MB, free: 20.83 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002565/0.6172, allocations: 123.7 kB / 398.3 MB, free: 20.82 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6172, allocations: 4 kB / 398.3 MB, free: 20.82 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03637/0.6536, allocations: 7.666 MB / 405.9 MB, free: 19.55 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002297/0.6539, allocations: 171.4 kB / 406.1 MB, free: 19.32 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.003/3.657, allocations: 0 / 406.1 MB, free: 19.32 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