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.241/2.241, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.164e-05/3.18e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3267, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1445/0.4713, allocations: 75.87 MB / 370.1 MB, free: 5.969 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.4717, allocations: 67.97 kB / 370.2 MB, free: 5.902 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03439/0.5061, allocations: 7.406 MB / 377.6 MB, free: 14.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.5062, allocations: 0 / 377.6 MB, free: 14.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.37e-05/0.5062, allocations: 8 kB / 377.6 MB, free: 14.47 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00171/0.5079, allocations: 0.6585 MB / 378.2 MB, free: 13.77 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/0.508, allocations: 8.031 kB / 378.2 MB, free: 13.76 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.5082, allocations: 51.48 kB / 378.3 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006578/0.5088, allocations: 318.1 kB / 378.6 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.331e-05/0.5089, allocations: 15.94 kB / 378.6 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-05/0.509, allocations: 20 kB / 378.6 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006897/0.5097, allocations: 233.4 kB / 378.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007835/0.5105, allocations: 290.3 kB / 379.1 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/0.5105, allocations: 4 kB / 379.1 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.206e-05/0.5106, allocations: 0 / 379.1 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.579e-05/0.5106, allocations: 11.95 kB / 379.2 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002957/0.5136, allocations: 1.117 MB / 380.3 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008386/0.5144, allocations: 242.8 kB / 380.5 MB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002718/0.5147, allocations: 96.86 kB / 380.6 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.572e-05/0.5148, allocations: 3.984 kB / 380.6 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.5149, allocations: 46.5 kB / 380.7 MB, free: 11.19 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.266e-06/0.5149, allocations: 0 / 380.7 MB, free: 11.19 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.002246/0.5171, allocations: 0.9123 MB / 381.6 MB, free: 10.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.46e-05/0.5172, allocations: 81.05 kB / 381.6 MB, free: 10.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004508/0.5177, allocations: 253.2 kB / 381.9 MB, free: 9.832 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.261e-05/0.5177, allocations: 25.7 kB / 381.9 MB, free: 9.801 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002034/0.518, allocations: 216.3 kB / 382.1 MB, free: 9.586 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.5181, allocations: 114.4 kB / 382.2 MB, free: 9.473 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.847e-05/0.5182, allocations: 3.938 kB / 382.2 MB, free: 9.469 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.5183, allocations: 338.8 kB / 382.6 MB, free: 9.129 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002849/0.5186, allocations: 100.7 kB / 382.7 MB, free: 9.027 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003498/0.519, allocations: 158 kB / 382.8 MB, free: 8.855 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003114/0.5193, allocations: 104.4 kB / 382.9 MB, free: 8.754 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.5193, allocations: 4 kB / 382.9 MB, free: 8.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008536/0.5202, allocations: 313 kB / 383.2 MB, free: 8.438 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002648/0.5205, allocations: 456.9 kB / 383.7 MB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.5205, allocations: 0 / 383.7 MB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.761e-05/0.5205, allocations: 7.953 kB / 383.7 MB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001856/0.5224, allocations: 259.7 kB / 383.9 MB, free: 7.699 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009071/0.5234, allocations: 0.6562 MB / 384.6 MB, free: 7.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006472/0.524, allocations: 44.06 kB / 384.6 MB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.236e-05/0.5241, allocations: 11.98 kB / 384.7 MB, free: 6.965 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.5241, allocations: 4 kB / 384.7 MB, free: 6.961 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007232/0.5248, allocations: 243.8 kB / 384.9 MB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.5249, allocations: 4 kB / 384.9 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.947e-06/0.5249, allocations: 0 / 384.9 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009059/0.5258, allocations: 123.9 kB / 385 MB, free: 6.598 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.5258, allocations: 4 kB / 385 MB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005459/0.5264, allocations: 39.86 kB / 385.1 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-05/0.5265, allocations: 16 kB / 385.1 MB, free: 6.539 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: PI.addSat.u2:VARIABLE() "Connector of Real input signal 2" type: Real 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.0002381/0.5267, allocations: 116.7 kB / 385.2 MB, free: 6.418 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006643/0.5274, allocations: 233.2 kB / 385.4 MB, free: 6.184 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.806e-05/0.5275, allocations: 35.53 kB / 385.5 MB, free: 6.148 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001547/0.5276, allocations: 36.3 kB / 385.5 MB, free: 6.109 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.5277, allocations: 7.953 kB / 385.5 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.5277, allocations: 4 kB / 385.5 MB, free: 6.098 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.5277, allocations: 3.938 kB / 385.5 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001658/0.5294, allocations: 0.7052 MB / 386.2 MB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/0.5294, allocations: 7.953 kB / 386.2 MB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000907/0.5303, allocations: 104 kB / 386.3 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/0.5304, allocations: 0 / 386.3 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.754e-05/0.5304, allocations: 4 kB / 386.3 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.5304, allocations: 0 / 386.3 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.5305, allocations: 4 kB / 386.3 MB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001164/0.5316, allocations: 0.5253 MB / 386.9 MB, free: 4.637 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002337/0.5319, allocations: 132.8 kB / 387 MB, free: 4.488 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.434e-05/0.532, allocations: 4 kB / 387 MB, free: 4.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005292/0.5325, allocations: 43.95 kB / 387 MB, free: 4.441 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.5326, allocations: 27.92 kB / 387.1 MB, free: 4.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.646e-05/0.5327, allocations: 4 kB / 387.1 MB, free: 4.41 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003295/0.533, allocations: 200.6 kB / 387.3 MB, free: 4.215 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.533, allocations: 4 kB / 387.3 MB, free: 4.211 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008073/0.5339, allocations: 115.9 kB / 387.4 MB, free: 4.098 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 (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.001544/0.5354, allocations: 1.345 MB / 388.7 MB, free: 2.699 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001914/0.5374, allocations: 0.5136 MB / 389.2 MB, free: 2.184 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.5374, allocations: 0 / 389.2 MB, free: 2.184 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003269/0.5377, allocations: 115.9 kB / 389.3 MB, free: 2.07 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008285/0.5386, allocations: 73.53 kB / 389.4 MB, free: 2 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003187/0.5418, allocations: 0.8974 MB / 390.3 MB, free: 1.051 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005518/0.5424, allocations: 0.8152 MB / 391.1 MB, free: 212 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005419/0.5429, allocations: 67.23 kB / 391.2 MB, free: 148 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/0.5432, allocations: 119.4 kB / 391.3 MB, free: 28 kB / 330.7 MB Notification: Performance of SimCode: time 3.987e-06/0.5433, allocations: 0 / 391.3 MB, free: 28 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05472/0.598, allocations: 6.912 MB / 398.2 MB, free: 9.133 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005419/0.5986, allocations: 124.4 kB / 398.3 MB, free: 8.941 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.943/3.541, allocations: 32 / 398.3 MB, free: 8.941 MB / 346.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