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_trunk_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 2.294/2.294, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.846e-05/2.839e-05, allocations: 4 kB / 294.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1161, allocations: 50.41 MB / 345 MB, free: 8.98 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004382/0.1205, allocations: 2.538 MB / 347.5 MB, free: 6.418 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002392/0.123, allocations: 0.8339 MB / 348.3 MB, free: 5.582 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004223/0.1234, allocations: 23.94 kB / 348.4 MB, free: 5.559 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002976/0.1238, allocations: 47.56 kB / 348.4 MB, free: 5.512 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005361/0.1243, allocations: 127.5 kB / 348.5 MB, free: 5.387 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000722/0.125, allocations: 163.7 kB / 348.7 MB, free: 5.227 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007292/0.1258, allocations: 304 kB / 349 MB, free: 4.926 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000256/0.1261, allocations: 90.52 kB / 349.1 MB, free: 4.836 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/0.1263, allocations: 131.5 kB / 349.2 MB, free: 4.707 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002875/0.1266, allocations: 163.3 kB / 349.4 MB, free: 4.547 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.345e-05/0.1267, allocations: 12 kB / 349.4 MB, free: 4.535 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.673e-05/0.1268, allocations: 16 kB / 349.4 MB, free: 4.52 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.1269, allocations: 71.69 kB / 349.5 MB, free: 4.449 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.265e-05/0.127, allocations: 28 kB / 349.5 MB, free: 4.422 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005357/0.1276, allocations: 343.4 kB / 349.8 MB, free: 4.086 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1276, allocations: 0 / 349.8 MB, free: 4.086 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1276, allocations: 0 / 349.8 MB, free: 4.086 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.1276, allocations: 0 / 349.8 MB, free: 4.086 MB / 282.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.001766/0.1294, allocations: 0.6786 MB / 350.5 MB, free: 3.359 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.1295, allocations: 12.03 kB / 350.5 MB, free: 3.348 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.1296, allocations: 47.44 kB / 350.6 MB, free: 3.301 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006792/0.1303, allocations: 342.7 kB / 350.9 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.844e-05/0.1304, allocations: 29 kB / 350.9 MB, free: 2.902 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.1305, allocations: 40 kB / 351 MB, free: 2.863 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.132, allocations: 466.3 kB / 351.4 MB, free: 2.383 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.123e-05/0.1321, allocations: 3.906 kB / 351.4 MB, free: 2.379 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.571e-05/0.1321, allocations: 16 kB / 351.4 MB, free: 2.363 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.1322, allocations: 11.95 kB / 351.4 MB, free: 2.352 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001776/0.134, allocations: 419.6 kB / 351.9 MB, free: 1.941 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003313/0.1373, allocations: 1.583 MB / 353.4 MB, free: 276 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.1388, allocations: 338.8 kB / 353.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.165e-05/0.1389, allocations: 4 kB / 353.8 MB, free: 15.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.1389, allocations: 34.56 kB / 353.8 MB, free: 15.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 3.026e-06/0.1389, allocations: 4 kB / 353.8 MB, free: 15.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.005814/0.1447, allocations: 1.522 MB / 355.3 MB, free: 14.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.1449, allocations: 81.11 kB / 355.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005766/0.1454, allocations: 308.8 kB / 355.7 MB, free: 13.85 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.372e-05/0.1455, allocations: 29.7 kB / 355.7 MB, free: 13.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002274/0.1458, allocations: 286.3 kB / 356 MB, free: 13.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.1459, allocations: 126.4 kB / 356.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-05/0.146, allocations: 8 kB / 356.2 MB, free: 13.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1461, allocations: 330.8 kB / 356.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008878/0.147, allocations: 188.7 kB / 356.7 MB, free: 12.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009494/0.148, allocations: 272.8 kB / 356.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008742/0.1489, allocations: 199.9 kB / 357.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1489, allocations: 0 / 357.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00199/0.1509, allocations: 0.4938 MB / 357.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004455/0.1514, allocations: 0.7943 MB / 358.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.1514, allocations: 3.938 kB / 358.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.8e-05/0.1514, allocations: 12 kB / 358.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001889/0.1533, allocations: 259.7 kB / 358.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.1545, allocations: 0.6952 MB / 359.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008259/0.1553, allocations: 51.92 kB / 359.4 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.214e-05/0.1554, allocations: 20.09 kB / 359.4 MB, free: 9.977 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.1554, allocations: 6.969 kB / 359.5 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002269/0.1577, allocations: 443.6 kB / 359.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1578, allocations: 0 / 359.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.1578, allocations: 11.95 kB / 359.9 MB, free: 9.527 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001241/0.1591, allocations: 123.9 kB / 360 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.472e-05/0.1591, allocations: 4 kB / 360 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006428/0.1598, allocations: 48.08 kB / 360.1 MB, free: 9.355 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-05/0.1598, allocations: 19.94 kB / 360.1 MB, free: 9.336 MB / 298.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.0003814/0.1602, allocations: 157.8 kB / 360.2 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.1604, allocations: 35.53 kB / 360.3 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000164/0.1606, allocations: 56.23 kB / 360.3 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.1606, allocations: 7.953 kB / 360.3 MB, free: 9.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.1606, allocations: 0 / 360.3 MB, free: 9.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.1606, allocations: 0 / 360.3 MB, free: 9.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003559/0.1642, allocations: 0.9541 MB / 361.3 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.1643, allocations: 4.125 kB / 361.3 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/0.1654, allocations: 107.8 kB / 361.4 MB, free: 7.945 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-05/0.1654, allocations: 4 kB / 361.4 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.118e-05/0.1655, allocations: 8 kB / 361.4 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.789e-06/0.1655, allocations: 4 kB / 361.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.1655, allocations: 0 / 361.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003795/0.1693, allocations: 0.786 MB / 362.2 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000335/0.1697, allocations: 140.7 kB / 362.3 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001343/0.1699, allocations: 8 kB / 362.4 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008162/0.1707, allocations: 47.91 kB / 362.4 MB, free: 6.879 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.1709, allocations: 23.97 kB / 362.4 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.824e-05/0.1709, allocations: 15.94 kB / 362.4 MB, free: 6.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0042/0.1752, allocations: 247.2 kB / 362.7 MB, free: 6.605 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.1752, allocations: 0 / 362.7 MB, free: 6.605 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001191/0.1764, allocations: 132 kB / 362.8 MB, free: 6.477 MB / 298.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.0002166/0.1766, allocations: 119.1 kB / 362.9 MB, free: 6.352 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.009129/0.1858, allocations: 0.7704 MB / 363.7 MB, free: 5.582 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/0.1858, allocations: 0 / 363.7 MB, free: 5.582 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.1871, allocations: 204.1 kB / 363.9 MB, free: 5.383 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.1883, allocations: 84.7 kB / 364 MB, free: 5.301 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/0.1999, allocations: 1.242 MB / 365.2 MB, free: 4.016 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006738/0.2006, allocations: 0.8314 MB / 366 MB, free: 3.156 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002938/0.2009, allocations: 31.44 kB / 366.1 MB, free: 3.125 MB / 298.7 MB Notification: Performance of SimCode: time 1.152e-06/0.2009, allocations: 0 / 366.1 MB, free: 3.125 MB / 298.7 MB Notification: Performance of Templates: time 0.03484/0.2358, allocations: 5.73 MB / 371.8 MB, free: 13.39 MB / 314.7 MB