Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 2.014/2.014, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.702e-05/2.719e-05, allocations: 4 kB / 292.1 MB, free: 8.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09209/0.09214, allocations: 50.41 MB / 342.5 MB, free: 5.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3699/0.4621, allocations: 82.69 MB / 425.2 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.4623, allocations: 71.22 kB / 425.3 MB, free: 11.58 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03329/0.4956, allocations: 8.263 MB / 433.6 MB, free: 4.629 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.486e-06/0.4957, allocations: 0 / 433.6 MB, free: 4.629 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.078e-05/0.4957, allocations: 12 kB / 433.6 MB, free: 4.617 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.001348/0.4971, allocations: 0.6722 MB / 434.3 MB, free: 3.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.4972, allocations: 12.02 kB / 434.3 MB, free: 3.918 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.4973, allocations: 51.34 kB / 434.3 MB, free: 3.867 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006638/0.498, allocations: 355.5 kB / 434.7 MB, free: 3.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/0.498, allocations: 27.19 kB / 434.7 MB, free: 3.504 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.811e-05/0.4981, allocations: 41.77 kB / 434.7 MB, free: 3.477 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000807/0.499, allocations: 377.9 kB / 435.1 MB, free: 3.191 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.091e-05/0.499, allocations: 7.891 kB / 435.1 MB, free: 3.184 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.789e-05/0.4991, allocations: 18.62 kB / 435.1 MB, free: 3.176 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.4991, allocations: 8 kB / 435.1 MB, free: 3.168 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006739/0.4998, allocations: 263.5 kB / 435.4 MB, free: 2.992 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003018/0.5028, allocations: 1.58 MB / 437 MB, free: 1.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007212/0.5036, allocations: 248.6 kB / 437.2 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000266/0.5039, allocations: 119.6 kB / 437.3 MB, free: 1.336 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.493e-05/0.5039, allocations: 4.5 kB / 437.3 MB, free: 1.332 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.504, allocations: 41.81 kB / 437.4 MB, free: 1.285 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 3.549e-06/0.504, allocations: 0 / 437.4 MB, free: 1.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.002229/0.5062, allocations: 1.015 MB / 438.4 MB, free: 360 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.514e-05/0.5063, allocations: 81.11 kB / 438.5 MB, free: 260 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005029/0.5068, allocations: 313.8 kB / 438.8 MB, free: 0 / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.285e-05/0.5069, allocations: 33.62 kB / 438.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002009/0.5071, allocations: 239.7 kB / 439 MB, free: 15.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001376/0.5073, allocations: 117.1 kB / 439.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.801e-05/0.5073, allocations: 11.31 kB / 439.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001995/0.5075, allocations: 349 kB / 439.5 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002858/0.5078, allocations: 109.3 kB / 439.6 MB, free: 15.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003556/0.5082, allocations: 190.7 kB / 439.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000322/0.5085, allocations: 130 kB / 439.9 MB, free: 15.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.292e-06/0.5086, allocations: 0 / 439.9 MB, free: 15.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008846/0.5095, allocations: 381.2 kB / 440.3 MB, free: 14.74 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004417/0.5099, allocations: 0.7919 MB / 441.1 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.5099, allocations: 0 / 441.1 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.393e-05/0.51, allocations: 8 kB / 441.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/0.5112, allocations: 262.7 kB / 441.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000752/0.512, allocations: 0.6591 MB / 442 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004889/0.5125, allocations: 47.77 kB / 442.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.5126, allocations: 19.97 kB / 442.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.5126, allocations: 7.938 kB / 442.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007373/0.5134, allocations: 308.1 kB / 442.4 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.324e-06/0.5134, allocations: 0 / 442.4 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.5134, allocations: 4 kB / 442.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006725/0.5141, allocations: 131.8 kB / 442.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.5141, allocations: 4 kB / 442.5 MB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004066/0.5145, allocations: 47.2 kB / 442.6 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.962e-05/0.5146, allocations: 14.81 kB / 442.6 MB, free: 12.51 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.0001734/0.5148, allocations: 131.9 kB / 442.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.5149, allocations: 35.53 kB / 442.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001352/0.515, allocations: 45.88 kB / 442.8 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.407e-06/0.5151, allocations: 4 kB / 442.8 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.845e-06/0.5151, allocations: 3.938 kB / 442.8 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.893e-06/0.5151, allocations: 3.984 kB / 442.8 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00166/0.5168, allocations: 0.8183 MB / 443.6 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.5168, allocations: 0 / 443.6 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006072/0.5174, allocations: 98.94 kB / 443.7 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.125e-05/0.5174, allocations: 4 kB / 443.7 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.668e-05/0.5175, allocations: 6.125 kB / 443.7 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.115e-06/0.5175, allocations: 0 / 443.7 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.965e-06/0.5175, allocations: 4 kB / 443.7 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.5186, allocations: 0.5716 MB / 444.3 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002199/0.5188, allocations: 138.6 kB / 444.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.201e-05/0.5189, allocations: 11.31 kB / 444.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004233/0.5193, allocations: 43.78 kB / 444.5 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.739e-05/0.5194, allocations: 23.27 kB / 444.5 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.122e-05/0.5195, allocations: 11.94 kB / 444.5 MB, free: 10.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003949/0.5199, allocations: 248.3 kB / 444.8 MB, free: 10.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.4e-07/0.5199, allocations: 3.938 kB / 444.8 MB, free: 10.6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007969/0.5207, allocations: 141.1 kB / 444.9 MB, free: 10.48 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.0001916/0.5209, allocations: 119.8 kB / 445 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.5225, allocations: 0.5664 MB / 445.6 MB, free: 9.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.634e-06/0.5225, allocations: 0 / 445.6 MB, free: 9.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003094/0.5229, allocations: 127.9 kB / 445.7 MB, free: 9.844 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006783/0.5235, allocations: 92.72 kB / 445.8 MB, free: 9.773 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002105/0.5257, allocations: 0.8025 MB / 446.6 MB, free: 9.004 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005978/0.5263, allocations: 0.8279 MB / 447.4 MB, free: 8.148 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005097/0.5268, allocations: 81.22 kB / 447.5 MB, free: 8.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.527, allocations: 27.44 kB / 447.6 MB, free: 8.043 MB / 362.7 MB Notification: Performance of SimCode: time 2.041e-06/0.527, allocations: 0 / 447.6 MB, free: 8.043 MB / 362.7 MB Notification: Performance of Templates: time 0.01423/0.5412, allocations: 4.753 MB / 452.3 MB, free: 3.324 MB / 362.7 MB