Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.199/2.199, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.582e-05/3.579e-05, allocations: 6.031 kB / 292.7 MB, free: 8.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 50.42 MB / 343.2 MB, free: 5.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4899/0.6029, allocations: 82.72 MB / 425.9 MB, free: 11.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.6032, allocations: 73.14 kB / 425.9 MB, free: 11.19 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03748/0.6407, allocations: 8.254 MB / 434.2 MB, free: 4.254 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6408, allocations: 0 / 434.2 MB, free: 4.254 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.788e-05/0.6408, allocations: 8 kB / 434.2 MB, free: 4.246 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.001804/0.6426, allocations: 0.6745 MB / 434.9 MB, free: 3.555 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.6427, allocations: 12.03 kB / 434.9 MB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001402/0.6429, allocations: 71.84 kB / 435 MB, free: 3.484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.643, allocations: 54.28 kB / 435 MB, free: 3.434 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007999/0.6438, allocations: 358.3 kB / 435.4 MB, free: 3.078 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.735e-05/0.6439, allocations: 34.34 kB / 435.4 MB, free: 3.055 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.644, allocations: 36.75 kB / 435.4 MB, free: 3.031 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009061/0.6449, allocations: 375.6 kB / 435.8 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.276e-05/0.645, allocations: 11.84 kB / 435.8 MB, free: 2.738 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.445e-05/0.6451, allocations: 18.94 kB / 435.8 MB, free: 2.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.6451, allocations: 11.94 kB / 435.8 MB, free: 2.719 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007457/0.6459, allocations: 266.4 kB / 436.1 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003386/0.6493, allocations: 1.579 MB / 437.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007815/0.6501, allocations: 238.2 kB / 437.9 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002857/0.6504, allocations: 115.5 kB / 438 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.478e-05/0.6505, allocations: 4.5 kB / 438 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.6505, allocations: 34.56 kB / 438.1 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 3.296e-06/0.6505, allocations: 3.938 kB / 438.1 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.002528/0.6531, allocations: 1.009 MB / 439.1 MB, free: 15.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.707e-05/0.6532, allocations: 81.11 kB / 439.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005743/0.6538, allocations: 316.9 kB / 439.5 MB, free: 15.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.551e-05/0.6538, allocations: 32.27 kB / 439.5 MB, free: 15.53 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000204/0.6541, allocations: 234.7 kB / 439.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.6542, allocations: 123.6 kB / 439.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.8e-05/0.6542, allocations: 7 kB / 439.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.6544, allocations: 349.4 kB / 440.2 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003204/0.6547, allocations: 110.7 kB / 440.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004258/0.6552, allocations: 192.8 kB / 440.5 MB, free: 14.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003604/0.6556, allocations: 129.4 kB / 440.6 MB, free: 14.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.6556, allocations: 0 / 440.6 MB, free: 14.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001/0.6566, allocations: 378 kB / 441 MB, free: 14.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003865/0.657, allocations: 0.7966 MB / 441.8 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.657, allocations: 0 / 441.8 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.513e-05/0.6571, allocations: 4 kB / 441.8 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001917/0.659, allocations: 263 kB / 442 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008676/0.6599, allocations: 0.663 MB / 442.7 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000733/0.6607, allocations: 50.98 kB / 442.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.833e-05/0.6608, allocations: 20.03 kB / 442.8 MB, free: 12.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.6608, allocations: 4 kB / 442.8 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000876/0.6617, allocations: 308.4 kB / 443.1 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.6617, allocations: 4 kB / 443.1 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.6617, allocations: 7.984 kB / 443.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.6627, allocations: 131.3 kB / 443.2 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.6628, allocations: 7.984 kB / 443.2 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000603/0.6634, allocations: 43.66 kB / 443.3 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.004e-05/0.6635, allocations: 19.5 kB / 443.3 MB, free: 12.07 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.000211/0.6637, allocations: 127.1 kB / 443.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.6638, allocations: 39.53 kB / 443.5 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001585/0.664, allocations: 46 kB / 443.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.664, allocations: 3.984 kB / 443.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.664, allocations: 0 / 443.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.664, allocations: 4 kB / 443.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001767/0.6658, allocations: 0.8149 MB / 444.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.874e-06/0.6659, allocations: 4 kB / 444.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008834/0.6668, allocations: 96 kB / 444.4 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.929e-06/0.6668, allocations: 0 / 444.4 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.966e-05/0.6668, allocations: 10.62 kB / 444.4 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.391e-05/0.6669, allocations: 11.92 kB / 444.4 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.6669, allocations: 0 / 444.4 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.668, allocations: 0.5633 MB / 445 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.6683, allocations: 134.8 kB / 445.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.973e-05/0.6684, allocations: 10.62 kB / 445.1 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005738/0.669, allocations: 47.2 kB / 445.2 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.6691, allocations: 27.72 kB / 445.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/0.6691, allocations: 10.81 kB / 445.2 MB, free: 10.37 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000419/0.6696, allocations: 244.3 kB / 445.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6696, allocations: 4 kB / 445.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008131/0.6704, allocations: 143 kB / 445.6 MB, free: 10.05 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.001594/0.672, allocations: 1.394 MB / 447 MB, free: 8.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.6742, allocations: 0.562 MB / 447.6 MB, free: 8.305 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.6742, allocations: 0 / 447.6 MB, free: 8.305 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003732/0.6746, allocations: 130.2 kB / 447.7 MB, free: 8.215 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009329/0.6756, allocations: 85.02 kB / 447.8 MB, free: 8.152 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002948/0.6785, allocations: 0.9065 MB / 448.7 MB, free: 7.277 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.6791, allocations: 0.824 MB / 449.5 MB, free: 6.426 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006054/0.6797, allocations: 89.19 kB / 449.6 MB, free: 6.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002896/0.68, allocations: 133.5 kB / 449.7 MB, free: 6.305 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/0.68, allocations: 0 / 449.7 MB, free: 6.305 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03706/0.7171, allocations: 8.388 MB / 458.1 MB, free: 14.04 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003369/0.7175, allocations: 166.1 kB / 458.3 MB, free: 13.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.91/3.628, allocations: 4 kB / 458.3 MB, free: 13.82 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat does not exist to compare? outputFormat=mat