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.205/2.205, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.419e-05/3.43e-05, allocations: 4 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09901/0.09908, allocations: 44.51 MB / 300 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4324/0.5316, allocations: 76.52 MB / 376.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/0.5319, allocations: 73.08 kB / 376.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03467/0.5666, allocations: 7.459 MB / 384 MB, free: 12.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.5667, allocations: 0 / 384 MB, free: 12.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.129e-05/0.5667, allocations: 7.938 kB / 384 MB, free: 12.07 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.001709/0.5685, allocations: 0.6579 MB / 384.7 MB, free: 11.6 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/0.5685, allocations: 10.09 kB / 384.7 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001294/0.5687, allocations: 73.66 kB / 384.8 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/0.5688, allocations: 45.45 kB / 384.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000661/0.5695, allocations: 323.1 kB / 385.1 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.941e-05/0.5696, allocations: 26.03 kB / 385.1 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.153e-05/0.5697, allocations: 31.62 kB / 385.2 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008299/0.5705, allocations: 338 kB / 385.5 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.04e-05/0.5706, allocations: 5.188 kB / 385.5 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.178e-05/0.5706, allocations: 12.59 kB / 385.5 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/0.5706, allocations: 11.52 kB / 385.5 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007001/0.5714, allocations: 240.1 kB / 385.8 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003041/0.5744, allocations: 1.181 MB / 386.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008543/0.5753, allocations: 259.6 kB / 387.2 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003173/0.5757, allocations: 112.7 kB / 387.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.364e-05/0.5757, allocations: 2.656 kB / 387.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.5758, allocations: 35.53 kB / 387.3 MB, free: 10.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.407e-06/0.5758, allocations: 0 / 387.3 MB, free: 10.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.002352/0.5781, allocations: 0.9666 MB / 388.3 MB, free: 10.08 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.5782, allocations: 85.55 kB / 388.4 MB, free: 9.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004732/0.5787, allocations: 287.4 kB / 388.7 MB, free: 9.867 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.5788, allocations: 28.83 kB / 388.7 MB, free: 9.836 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.5789, allocations: 259.3 kB / 389 MB, free: 9.645 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.579, allocations: 118.9 kB / 389.1 MB, free: 9.566 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.751e-05/0.5791, allocations: 15.53 kB / 389.1 MB, free: 9.562 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.684e-05/0.5792, allocations: 326.9 kB / 389.4 MB, free: 9.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002769/0.5794, allocations: 98.91 kB / 389.5 MB, free: 9.246 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000321/0.5798, allocations: 164.8 kB / 389.7 MB, free: 9.191 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003071/0.5801, allocations: 120.6 kB / 389.8 MB, free: 9.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.5801, allocations: 3.812 kB / 389.8 MB, free: 9.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007391/0.5809, allocations: 317.6 kB / 390.1 MB, free: 9.129 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.581, allocations: 450.7 kB / 390.5 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.581, allocations: 0 / 390.5 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.5811, allocations: 3.906 kB / 390.5 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001787/0.5829, allocations: 258.5 kB / 390.8 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007454/0.5836, allocations: 0.6599 MB / 391.5 MB, free: 8.059 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006923/0.5844, allocations: 44.84 kB / 391.5 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/0.5844, allocations: 14.36 kB / 391.5 MB, free: 8.055 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.5844, allocations: 3.875 kB / 391.5 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000687/0.5851, allocations: 279.8 kB / 391.8 MB, free: 8.043 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.5852, allocations: 3.906 kB / 391.8 MB, free: 8.043 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.5852, allocations: 3.953 kB / 391.8 MB, free: 8.039 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008606/0.5861, allocations: 121.9 kB / 391.9 MB, free: 8.031 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.5861, allocations: 3.719 kB / 391.9 MB, free: 8.031 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004514/0.5866, allocations: 39.62 kB / 392 MB, free: 8.031 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.153e-05/0.5866, allocations: 22.11 kB / 392 MB, free: 8.023 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.0001608/0.5868, allocations: 120.2 kB / 392.1 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.5869, allocations: 30.91 kB / 392.1 MB, free: 7.898 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001497/0.5871, allocations: 45.33 kB / 392.2 MB, free: 7.891 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.5871, allocations: 7.828 kB / 392.2 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.5871, allocations: 0 / 392.2 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.5871, allocations: 2.578 kB / 392.2 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/0.5888, allocations: 0.7976 MB / 393 MB, free: 7.523 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.5888, allocations: 0 / 393 MB, free: 7.523 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008464/0.5897, allocations: 100.4 kB / 393.1 MB, free: 7.516 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/0.5897, allocations: 3.938 kB / 393.1 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.66e-05/0.5897, allocations: 10.52 kB / 393.1 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.832e-06/0.5898, allocations: 3.875 kB / 393.1 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.5898, allocations: 0 / 393.1 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00098/0.5908, allocations: 0.5399 MB / 393.6 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.591, allocations: 137.2 kB / 393.8 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.486e-05/0.5911, allocations: 10.27 kB / 393.8 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006883/0.5918, allocations: 45.48 kB / 393.8 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/0.592, allocations: 29.97 kB / 393.9 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.38e-05/0.5921, allocations: 7.531 kB / 393.9 MB, free: 7.133 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000852/0.5929, allocations: 222 kB / 394.1 MB, free: 7.051 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5929, allocations: 0 / 394.1 MB, free: 7.051 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001025/0.594, allocations: 131.1 kB / 394.2 MB, free: 7.047 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.001287/0.5953, allocations: 1.379 MB / 395.6 MB, free: 5.984 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001888/0.5972, allocations: 0.5204 MB / 396.1 MB, free: 5.961 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.5972, allocations: 0 / 396.1 MB, free: 5.961 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003256/0.5976, allocations: 127.1 kB / 396.2 MB, free: 5.949 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008144/0.5984, allocations: 80.39 kB / 396.3 MB, free: 5.938 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003104/0.6015, allocations: 0.95 MB / 397.3 MB, free: 5.449 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007005/0.6023, allocations: 0.8091 MB / 398.1 MB, free: 20.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003517/0.6027, allocations: 129.6 kB / 398.2 MB, free: 20.74 MB / 330.7 MB Notification: Performance of SimCode: time 1.343e-06/0.6027, allocations: 0 / 398.2 MB, free: 20.74 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.755/3.358, allocations: 6.772 MB / 405 MB, free: 19.9 MB / 330.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