Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_1_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.139/1.139, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.042e-05/3.052e-05, allocations: 0 / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1735/0.1736, allocations: 25.15 MB / 176.6 MB, free: 15.89 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06963/0.2433, allocations: 38.01 MB / 214.6 MB, free: 11.34 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/0.2436, allocations: 63.97 kB / 214.7 MB, free: 11.27 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0382/0.2818, allocations: 7.891 MB / 222.6 MB, free: 3.352 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.2819, allocations: 0 / 222.6 MB, free: 3.352 MB / 186.7 MB Notification: Performance of Transformations before backend: time 4.803e-05/0.2819, allocations: 12 kB / 222.6 MB, free: 3.34 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001713/0.2837, allocations: 0.6466 MB / 223.3 MB, free: 2.648 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.2837, allocations: 8.031 kB / 223.3 MB, free: 2.641 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.2838, allocations: 70.53 kB / 223.3 MB, free: 2.562 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.284, allocations: 43.44 kB / 223.4 MB, free: 2.52 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009386/0.2849, allocations: 339 kB / 223.7 MB, free: 2.152 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.322e-05/0.2851, allocations: 58.83 kB / 223.8 MB, free: 2.09 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.211e-05/0.2852, allocations: 31.95 kB / 223.8 MB, free: 2.059 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009151/0.2861, allocations: 335.1 kB / 224.1 MB, free: 1.711 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.2861, allocations: 3.938 kB / 224.1 MB, free: 1.707 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.981e-05/0.2862, allocations: 16 kB / 224.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.102e-05/0.2862, allocations: 8 kB / 224.2 MB, free: 1.684 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006915/0.2869, allocations: 229.5 kB / 224.4 MB, free: 1.461 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003121/0.2901, allocations: 1.148 MB / 225.5 MB, free: 252 kB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008997/0.291, allocations: 246.7 kB / 225.8 MB, free: 15.99 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000266/0.2913, allocations: 92.86 kB / 225.9 MB, free: 15.9 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.42e-05/0.2914, allocations: 4 kB / 225.9 MB, free: 15.89 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.2914, allocations: 35 kB / 225.9 MB, free: 15.85 MB / 202.7 MB Notification: Performance of pre-optimization done (n=26): time 2.946e-06/0.2914, allocations: 0 / 225.9 MB, free: 15.85 MB / 202.7 MB Notification: Performance of matching and sorting (n=28): time 0.002319/0.2938, allocations: 0.9388 MB / 226.8 MB, free: 14.82 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.234e-05/0.2939, allocations: 106.8 kB / 226.9 MB, free: 14.69 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000513/0.2944, allocations: 274.7 kB / 227.2 MB, free: 14.42 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.2945, allocations: 33.64 kB / 227.2 MB, free: 14.38 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001924/0.2947, allocations: 262.6 kB / 227.5 MB, free: 14.12 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.2948, allocations: 98.55 kB / 227.6 MB, free: 14.02 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.91e-05/0.2949, allocations: 8 kB / 227.6 MB, free: 14.02 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.295, allocations: 331.4 kB / 227.9 MB, free: 13.68 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002986/0.2953, allocations: 101.1 kB / 228 MB, free: 13.59 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003778/0.2957, allocations: 165.9 kB / 228.2 MB, free: 13.4 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000334/0.2961, allocations: 112 kB / 228.3 MB, free: 13.29 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.2961, allocations: 0 / 228.3 MB, free: 13.29 MB / 202.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008233/0.2969, allocations: 305.3 kB / 228.6 MB, free: 12.99 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.297, allocations: 4 kB / 228.6 MB, free: 12.98 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.297, allocations: 0 / 228.6 MB, free: 12.98 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.297, allocations: 7.938 kB / 228.6 MB, free: 12.98 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.2982, allocations: 151.9 kB / 228.7 MB, free: 12.83 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.703e-05/0.2982, allocations: 4 kB / 228.8 MB, free: 12.82 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000578/0.2988, allocations: 43.97 kB / 228.8 MB, free: 12.78 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.681e-05/0.2989, allocations: 8 kB / 228.8 MB, free: 12.77 MB / 202.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 (43): * Single equations (assignments): 43 * 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.0001861/0.2991, allocations: 132.9 kB / 228.9 MB, free: 12.64 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.2992, allocations: 31.62 kB / 229 MB, free: 12.61 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001344/0.2993, allocations: 39.77 kB / 229 MB, free: 12.56 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-06/0.2994, allocations: 4 kB / 229 MB, free: 12.56 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.2994, allocations: 7.938 kB / 229 MB, free: 12.55 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.2994, allocations: 0 / 229 MB, free: 12.55 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.3011, allocations: 0.7695 MB / 229.8 MB, free: 11.71 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3011, allocations: 0 / 229.8 MB, free: 11.71 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009179/0.3021, allocations: 99.98 kB / 229.9 MB, free: 11.62 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.47e-05/0.3021, allocations: 4 kB / 229.9 MB, free: 11.61 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.498e-05/0.3021, allocations: 4 kB / 229.9 MB, free: 11.61 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.265e-06/0.3022, allocations: 4 kB / 229.9 MB, free: 11.61 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.3022, allocations: 3.953 kB / 229.9 MB, free: 11.6 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.3033, allocations: 0.5373 MB / 230.4 MB, free: 11.01 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001519/0.3035, allocations: 108.8 kB / 230.5 MB, free: 10.89 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.007e-05/0.3036, allocations: 8 kB / 230.5 MB, free: 10.88 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006875/0.3043, allocations: 59.94 kB / 230.6 MB, free: 10.82 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.3044, allocations: 23.83 kB / 230.6 MB, free: 10.8 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.61e-05/0.3045, allocations: 8 kB / 230.6 MB, free: 10.79 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0004507/0.3049, allocations: 214.2 kB / 230.8 MB, free: 10.58 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.305, allocations: 0 / 230.8 MB, free: 10.58 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0005964/0.3056, allocations: 79.95 kB / 230.9 MB, free: 10.5 MB / 202.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 (28): * Single equations (assignments): 28 * 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.001649/0.3072, allocations: 1.35 MB / 232.3 MB, free: 9.098 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.0007246/0.308, allocations: 232 kB / 232.5 MB, free: 8.871 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.308, allocations: 0 / 232.5 MB, free: 8.871 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000325/0.3084, allocations: 115.9 kB / 232.6 MB, free: 8.758 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007939/0.3092, allocations: 70.62 kB / 232.7 MB, free: 8.691 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003712/0.3129, allocations: 1.01 MB / 233.7 MB, free: 7.629 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004934/0.3134, allocations: 0.8035 MB / 234.5 MB, free: 6.797 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003235/0.3138, allocations: 123.4 kB / 234.6 MB, free: 6.676 MB / 202.7 MB Notification: Performance of SimCode: time 1.072e-06/0.3138, allocations: 0 / 234.6 MB, free: 6.676 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.581/2.895, allocations: 5.96 MB / 240.6 MB, free: 0.7266 MB / 202.7 MB