Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_1_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.005/2.005, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 5.832e-05/5.87e-05, allocations: 4 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2933, allocations: 38.76 MB / 263.9 MB, free: 9.711 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1685/0.4619, allocations: 71.32 MB / 335.2 MB, free: 2.285 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003558/0.4623, allocations: 71.97 kB / 335.3 MB, free: 2.215 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04694/0.5093, allocations: 8.292 MB / 343.5 MB, free: 9.895 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5093, allocations: 0 / 343.5 MB, free: 9.895 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.458e-05/0.5094, allocations: 12 kB / 343.6 MB, free: 9.883 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.001802/0.5112, allocations: 0.6582 MB / 344.2 MB, free: 9.176 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.5113, allocations: 8.031 kB / 344.2 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001189/0.5114, allocations: 74.47 kB / 344.3 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.5116, allocations: 47.44 kB / 344.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.5126, allocations: 367.2 kB / 344.7 MB, free: 8.641 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.151e-05/0.5127, allocations: 54.48 kB / 344.8 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.766e-05/0.5128, allocations: 35.91 kB / 344.8 MB, free: 8.547 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009183/0.5138, allocations: 343.1 kB / 345.1 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.5138, allocations: 4 kB / 345.1 MB, free: 8.188 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.111e-05/0.5139, allocations: 16 kB / 345.1 MB, free: 8.172 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.5139, allocations: 8 kB / 345.2 MB, free: 8.164 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000714/0.5146, allocations: 241.4 kB / 345.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003233/0.5179, allocations: 1.175 MB / 346.6 MB, free: 6.688 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008957/0.5188, allocations: 258.7 kB / 346.8 MB, free: 6.422 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003043/0.5192, allocations: 112.8 kB / 346.9 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.724e-05/0.5192, allocations: 7.984 kB / 346.9 MB, free: 6.301 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.5193, allocations: 30.56 kB / 347 MB, free: 6.262 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 3.406e-06/0.5193, allocations: 8 kB / 347 MB, free: 6.254 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.002559/0.5218, allocations: 0.9678 MB / 347.9 MB, free: 5.191 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.572e-05/0.522, allocations: 114.8 kB / 348.1 MB, free: 5.055 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005231/0.5225, allocations: 278.6 kB / 348.3 MB, free: 4.773 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.666e-05/0.5226, allocations: 33.64 kB / 348.4 MB, free: 4.734 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.5228, allocations: 220.1 kB / 348.6 MB, free: 4.512 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.5229, allocations: 106.4 kB / 348.7 MB, free: 4.406 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.221e-05/0.523, allocations: 8 kB / 348.7 MB, free: 4.398 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.5232, allocations: 346.8 kB / 349 MB, free: 4.051 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000323/0.5235, allocations: 104.7 kB / 349.1 MB, free: 3.945 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004002/0.5239, allocations: 175 kB / 349.3 MB, free: 3.754 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003782/0.5243, allocations: 108 kB / 349.4 MB, free: 3.652 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.5243, allocations: 0 / 349.4 MB, free: 3.652 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009252/0.5253, allocations: 345.3 kB / 349.7 MB, free: 3.309 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.5253, allocations: 4 kB / 349.7 MB, free: 3.305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.5253, allocations: 4 kB / 349.7 MB, free: 3.301 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.443e-05/0.5253, allocations: 8.062 kB / 349.8 MB, free: 3.293 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.5265, allocations: 159.8 kB / 349.9 MB, free: 3.137 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.5266, allocations: 3.953 kB / 349.9 MB, free: 3.133 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000565/0.5271, allocations: 43.95 kB / 350 MB, free: 3.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.738e-05/0.5272, allocations: 12 kB / 350 MB, free: 3.078 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.0001675/0.5274, allocations: 124.9 kB / 350.1 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.5275, allocations: 35.62 kB / 350.1 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/0.5276, allocations: 40.08 kB / 350.2 MB, free: 2.875 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.5276, allocations: 4 kB / 350.2 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.5277, allocations: 0 / 350.2 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.5277, allocations: 7.938 kB / 350.2 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001726/0.5294, allocations: 0.7865 MB / 351 MB, free: 2.008 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.5294, allocations: 7.984 kB / 351 MB, free: 2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008813/0.5303, allocations: 100 kB / 351.1 MB, free: 1.902 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.151e-05/0.5304, allocations: 11.95 kB / 351.1 MB, free: 1.891 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.582e-05/0.5304, allocations: 8 kB / 351.1 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.027e-06/0.5304, allocations: 4 kB / 351.1 MB, free: 1.879 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.5304, allocations: 3.938 kB / 351.1 MB, free: 1.875 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.5316, allocations: 0.5519 MB / 351.6 MB, free: 1.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002235/0.5318, allocations: 140.7 kB / 351.8 MB, free: 1.113 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.623e-05/0.5319, allocations: 8 kB / 351.8 MB, free: 1.105 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007011/0.5326, allocations: 59.94 kB / 351.9 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.5328, allocations: 27.92 kB / 351.9 MB, free: 1.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.543e-05/0.5328, allocations: 8 kB / 351.9 MB, free: 1.012 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003738/0.5332, allocations: 226.2 kB / 352.1 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5332, allocations: 0 / 352.1 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005644/0.5338, allocations: 83.98 kB / 352.2 MB, free: 0.7148 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.001608/0.5354, allocations: 1.376 MB / 353.6 MB, free: 15.28 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007461/0.5362, allocations: 252.2 kB / 353.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.5362, allocations: 4 kB / 353.8 MB, free: 15.03 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000344/0.5365, allocations: 128.3 kB / 353.9 MB, free: 14.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007741/0.5373, allocations: 73.11 kB / 354 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003102/0.5404, allocations: 0.9181 MB / 354.9 MB, free: 13.87 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005004/0.541, allocations: 0.8148 MB / 355.7 MB, free: 13.03 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003577/0.5414, allocations: 50.95 kB / 355.8 MB, free: 12.98 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002916/0.5417, allocations: 119.4 kB / 355.9 MB, free: 12.86 MB / 314.7 MB Notification: Performance of SimCode: time 1.333e-06/0.5417, allocations: 0 / 355.9 MB, free: 12.86 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03347/0.5752, allocations: 7.226 MB / 363.1 MB, free: 5.695 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002976/0.5755, allocations: 147.2 kB / 363.3 MB, free: 5.465 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.782/3.357, allocations: 0 / 363.3 MB, free: 5.465 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat