Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.294/2.294, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.878e-05/2.888e-05, allocations: 4 kB / 249.7 MB, free: 15.21 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3552, allocations: 44.5 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2075/0.5628, allocations: 75.86 MB / 370.1 MB, free: 6.023 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003827/0.5632, allocations: 71.97 kB / 370.1 MB, free: 5.953 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05484/0.6181, allocations: 7.406 MB / 377.5 MB, free: 14.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.867e-06/0.6182, allocations: 0 / 377.5 MB, free: 14.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001226/0.6184, allocations: 8.188 kB / 377.5 MB, free: 14.52 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.00199/0.6204, allocations: 0.6622 MB / 378.2 MB, free: 13.81 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.6205, allocations: 8.031 kB / 378.2 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.6206, allocations: 47.48 kB / 378.3 MB, free: 13.76 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006848/0.6213, allocations: 322.1 kB / 378.6 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.085e-05/0.6214, allocations: 12 kB / 378.6 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.478e-05/0.6215, allocations: 20 kB / 378.6 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007229/0.6222, allocations: 233.5 kB / 378.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007393/0.623, allocations: 290.3 kB / 379.1 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/0.623, allocations: 0 / 379.1 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.44e-05/0.6231, allocations: 4 kB / 379.1 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.6231, allocations: 11.95 kB / 379.1 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002884/0.626, allocations: 1.117 MB / 380.2 MB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008162/0.6268, allocations: 242.8 kB / 380.5 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002525/0.6271, allocations: 100.8 kB / 380.6 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.34e-05/0.6272, allocations: 7.984 kB / 380.6 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.6272, allocations: 38.52 kB / 380.6 MB, free: 11.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.506e-06/0.6272, allocations: 0 / 380.6 MB, free: 11.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.002301/0.6296, allocations: 0.9122 MB / 381.5 MB, free: 10.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.715e-05/0.6297, allocations: 85.09 kB / 381.6 MB, free: 10.13 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000446/0.6301, allocations: 245.2 kB / 381.9 MB, free: 9.887 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.103e-05/0.6302, allocations: 25.7 kB / 381.9 MB, free: 9.855 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002058/0.6304, allocations: 270.7 kB / 382.1 MB, free: 9.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.6306, allocations: 114.3 kB / 382.3 MB, free: 9.477 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.377e-05/0.6306, allocations: 0 / 382.3 MB, free: 9.477 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.6308, allocations: 326.8 kB / 382.6 MB, free: 9.148 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002837/0.6311, allocations: 96.75 kB / 382.7 MB, free: 9.051 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003376/0.6314, allocations: 154 kB / 382.8 MB, free: 8.883 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003141/0.6318, allocations: 108.4 kB / 382.9 MB, free: 8.777 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.6318, allocations: 0 / 382.9 MB, free: 8.777 MB / 330.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000806/0.6326, allocations: 301.3 kB / 383.2 MB, free: 8.477 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002638/0.6329, allocations: 449.6 kB / 383.7 MB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.6329, allocations: 0 / 383.7 MB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.003e-05/0.6329, allocations: 15.88 kB / 383.7 MB, free: 7.988 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001868/0.6348, allocations: 251.7 kB / 383.9 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000938/0.6358, allocations: 0.664 MB / 384.6 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006439/0.6364, allocations: 44.05 kB / 384.6 MB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.926e-05/0.6365, allocations: 12 kB / 384.6 MB, free: 7 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.6365, allocations: 7.938 kB / 384.7 MB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007287/0.6373, allocations: 243.8 kB / 384.9 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.6373, allocations: 0 / 384.9 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.6373, allocations: 4 kB / 384.9 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009334/0.6383, allocations: 120 kB / 385 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.6383, allocations: 7.938 kB / 385 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004571/0.6388, allocations: 39.91 kB / 385.1 MB, free: 6.586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.393e-05/0.6388, allocations: 12 kB / 385.1 MB, free: 6.574 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.0002331/0.6391, allocations: 116.7 kB / 385.2 MB, free: 6.453 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006705/0.6397, allocations: 229.2 kB / 385.4 MB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.748e-05/0.6398, allocations: 31.62 kB / 385.4 MB, free: 6.191 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001479/0.64, allocations: 40.3 kB / 385.5 MB, free: 6.148 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.64, allocations: 3.953 kB / 385.5 MB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.64, allocations: 3.938 kB / 385.5 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.6401, allocations: 7.984 kB / 385.5 MB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001623/0.6417, allocations: 0.709 MB / 386.2 MB, free: 5.367 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.6417, allocations: 3.953 kB / 386.2 MB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008861/0.6426, allocations: 104 kB / 386.3 MB, free: 5.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.276e-05/0.6427, allocations: 4 kB / 386.3 MB, free: 5.258 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.434e-05/0.6427, allocations: 4 kB / 386.3 MB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.6427, allocations: 0 / 386.3 MB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.6427, allocations: 4 kB / 386.3 MB, free: 5.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.6439, allocations: 0.5254 MB / 386.8 MB, free: 4.672 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002496/0.6441, allocations: 128.7 kB / 387 MB, free: 4.527 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.095e-05/0.6442, allocations: 4 kB / 387 MB, free: 4.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005498/0.6448, allocations: 47.95 kB / 387 MB, free: 4.477 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.6449, allocations: 23.92 kB / 387 MB, free: 4.453 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/0.645, allocations: 8 kB / 387.1 MB, free: 4.445 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003381/0.6453, allocations: 200.6 kB / 387.2 MB, free: 4.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.6453, allocations: 4 kB / 387.3 MB, free: 4.246 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007944/0.6461, allocations: 111.9 kB / 387.4 MB, free: 4.137 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.001598/0.6478, allocations: 1.345 MB / 388.7 MB, free: 2.738 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002004/0.6498, allocations: 0.4999 MB / 389.2 MB, free: 2.238 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.486e-05/0.6499, allocations: 7.938 kB / 389.2 MB, free: 2.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000378/0.6502, allocations: 119.8 kB / 389.3 MB, free: 2.113 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008411/0.6511, allocations: 69.66 kB / 389.4 MB, free: 2.051 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003446/0.6546, allocations: 0.918 MB / 390.3 MB, free: 1.074 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005064/0.6551, allocations: 0.8152 MB / 391.1 MB, free: 236 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003592/0.6555, allocations: 127.4 kB / 391.3 MB, free: 108 kB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/0.6555, allocations: 3.938 kB / 391.3 MB, free: 104 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.752/3.407, allocations: 6.697 MB / 398 MB, free: 9.418 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat