Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.963/1.963, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.102e-05/3.112e-05, allocations: 0 / 292.2 MB, free: 8.758 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1069, allocations: 50.42 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4397/0.5467, allocations: 82.78 MB / 425.4 MB, free: 11.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/0.547, allocations: 72.41 kB / 425.5 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03829/0.5853, allocations: 8.262 MB / 433.7 MB, free: 4.066 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5854, allocations: 0 / 433.7 MB, free: 4.066 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.93e-05/0.5854, allocations: 8 kB / 433.7 MB, free: 4.059 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001769/0.5872, allocations: 0.6745 MB / 434.4 MB, free: 3.367 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.727e-05/0.5873, allocations: 16.03 kB / 434.4 MB, free: 3.352 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001233/0.5874, allocations: 70.16 kB / 434.5 MB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.5876, allocations: 54.91 kB / 434.6 MB, free: 3.242 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007555/0.5883, allocations: 358.2 kB / 434.9 MB, free: 2.887 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.851e-05/0.5884, allocations: 31.3 kB / 434.9 MB, free: 2.867 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.756e-05/0.5885, allocations: 36.94 kB / 435 MB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009173/0.5894, allocations: 372.8 kB / 435.3 MB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.628e-05/0.5895, allocations: 11.84 kB / 435.3 MB, free: 2.551 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.531e-05/0.5896, allocations: 19.88 kB / 435.4 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.953e-05/0.5896, allocations: 11.98 kB / 435.4 MB, free: 2.531 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007491/0.5904, allocations: 260 kB / 435.6 MB, free: 2.359 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00341/0.5938, allocations: 1.579 MB / 437.2 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007964/0.5946, allocations: 246.5 kB / 437.4 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.5949, allocations: 112 kB / 437.6 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.237e-05/0.595, allocations: 4.5 kB / 437.6 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.595, allocations: 42.23 kB / 437.6 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 3.216e-06/0.595, allocations: 0 / 437.6 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.00241/0.5975, allocations: 1.008 MB / 438.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.363e-05/0.5976, allocations: 85.09 kB / 438.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005465/0.5981, allocations: 308.8 kB / 439 MB, free: 15.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.842e-05/0.5982, allocations: 37.02 kB / 439 MB, free: 15.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001986/0.5984, allocations: 284 kB / 439.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.5985, allocations: 119.7 kB / 439.4 MB, free: 15.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.5986, allocations: 7 kB / 439.4 MB, free: 15.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.5987, allocations: 326.4 kB / 439.8 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003378/0.5991, allocations: 115.6 kB / 439.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003865/0.5995, allocations: 189.1 kB / 440.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003577/0.5998, allocations: 123.8 kB / 440.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.5999, allocations: 7.938 kB / 440.2 MB, free: 14.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008997/0.6008, allocations: 355.9 kB / 440.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003282/0.6011, allocations: 0.7988 MB / 441.3 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.6011, allocations: 0 / 441.3 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.664e-05/0.6012, allocations: 4 kB / 441.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001917/0.6031, allocations: 258.7 kB / 441.6 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008327/0.6039, allocations: 0.662 MB / 442.2 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000662/0.6046, allocations: 54.55 kB / 442.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.6047, allocations: 15.31 kB / 442.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.6047, allocations: 4 kB / 442.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007861/0.6055, allocations: 307.7 kB / 442.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.6055, allocations: 4 kB / 442.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.6055, allocations: 8.219 kB / 442.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009803/0.6065, allocations: 127 kB / 442.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.6066, allocations: 4 kB / 442.8 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004754/0.6071, allocations: 46.58 kB / 442.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.748e-05/0.6071, allocations: 15.38 kB / 442.8 MB, free: 11.87 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.0001568/0.6073, allocations: 131.9 kB / 442.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.6074, allocations: 35.53 kB / 443 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001561/0.6076, allocations: 49.56 kB / 443 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.6076, allocations: 4 kB / 443 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.427e-06/0.6076, allocations: 8 kB / 443 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.6076, allocations: 3.984 kB / 443 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001713/0.6093, allocations: 0.8147 MB / 443.9 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/0.6094, allocations: 4 kB / 443.9 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008956/0.6103, allocations: 99.38 kB / 444 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.27e-05/0.6103, allocations: 4 kB / 444 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.808e-05/0.6104, allocations: 3.312 kB / 444 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-05/0.6104, allocations: 7.938 kB / 444 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.6104, allocations: 0 / 444 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.6116, allocations: 0.5694 MB / 444.5 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000237/0.6119, allocations: 143.2 kB / 444.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.799e-05/0.612, allocations: 3.625 kB / 444.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005827/0.6126, allocations: 49.39 kB / 444.7 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.6127, allocations: 23.47 kB / 444.8 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/0.6127, allocations: 19.75 kB / 444.8 MB, free: 10.15 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000414/0.6131, allocations: 243.5 kB / 445 MB, free: 9.953 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6132, allocations: 0 / 445 MB, free: 9.953 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008435/0.614, allocations: 137.2 kB / 445.2 MB, free: 9.836 MB / 362.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 (32): * Single equations (assignments): 32 * 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.001577/0.6156, allocations: 1.395 MB / 446.5 MB, free: 8.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002082/0.6177, allocations: 0.5468 MB / 447.1 MB, free: 8.102 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.6178, allocations: 448 / 447.1 MB, free: 8.102 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003464/0.6181, allocations: 138.8 kB / 447.2 MB, free: 8.004 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008728/0.619, allocations: 79.94 kB / 447.3 MB, free: 7.949 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002901/0.6219, allocations: 0.9336 MB / 448.2 MB, free: 7.043 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004556/0.6224, allocations: 0.8308 MB / 449.1 MB, free: 6.188 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003481/0.6228, allocations: 142.3 kB / 449.2 MB, free: 6.145 MB / 362.7 MB Notification: Performance of SimCode: time 1.263e-06/0.6228, allocations: 0 / 449.2 MB, free: 6.145 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.59/3.212, allocations: 7.437 MB / 456.6 MB, free: 14.8 MB / 378.7 MB