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_3.2.1_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 1.908/1.908, allocations: 171.1 MB / 186.3 MB, free: 1.414 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.261e-05/3.265e-05, allocations: 4 kB / 228.1 MB, free: 8.012 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09291/0.09296, allocations: 38.78 MB / 266.9 MB, free: 1.148 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00444/0.09747, allocations: 2.37 MB / 269.3 MB, free: 14.75 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002441/0.09997, allocations: 0.7991 MB / 270.1 MB, free: 13.95 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003386/0.1004, allocations: 23.88 kB / 270.1 MB, free: 13.92 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002831/0.1007, allocations: 39.62 kB / 270.1 MB, free: 13.88 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005033/0.1012, allocations: 119.6 kB / 270.2 MB, free: 13.77 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009236/0.1021, allocations: 227.5 kB / 270.5 MB, free: 13.54 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005764/0.1027, allocations: 256 kB / 270.7 MB, free: 13.29 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002836/0.103, allocations: 82.67 kB / 270.8 MB, free: 13.21 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002837/0.1033, allocations: 147.6 kB / 270.9 MB, free: 13.07 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003042/0.1036, allocations: 139.4 kB / 271.1 MB, free: 12.93 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.713e-05/0.1037, allocations: 12 kB / 271.1 MB, free: 12.92 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.039e-05/0.1038, allocations: 16 kB / 271.1 MB, free: 12.91 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.1039, allocations: 67.69 kB / 271.2 MB, free: 12.84 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.104, allocations: 28 kB / 271.2 MB, free: 12.81 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005226/0.1046, allocations: 331.4 kB / 271.5 MB, free: 12.49 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1046, allocations: 0 / 271.5 MB, free: 12.49 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.1046, allocations: 0 / 271.5 MB, free: 12.49 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.459e-05/0.1046, allocations: 0 / 271.5 MB, free: 12.49 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001785/0.1064, allocations: 0.6355 MB / 272.1 MB, free: 11.8 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.1065, allocations: 12.03 kB / 272.2 MB, free: 11.79 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.1067, allocations: 47.38 kB / 272.2 MB, free: 11.75 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006773/0.1074, allocations: 334.1 kB / 272.5 MB, free: 11.38 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/0.1075, allocations: 54.36 kB / 272.6 MB, free: 11.32 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.786e-05/0.1076, allocations: 36 kB / 272.6 MB, free: 11.29 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.109, allocations: 405.8 kB / 273 MB, free: 10.87 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/0.1091, allocations: 7.906 kB / 273 MB, free: 10.86 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.889e-05/0.1091, allocations: 12 kB / 273 MB, free: 10.85 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.1092, allocations: 8 kB / 273 MB, free: 10.84 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00177/0.1109, allocations: 398.3 kB / 273.4 MB, free: 10.46 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003175/0.1141, allocations: 1.171 MB / 274.6 MB, free: 9.219 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.1157, allocations: 334.7 kB / 274.9 MB, free: 8.883 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.968e-05/0.1157, allocations: 8.5 kB / 274.9 MB, free: 8.875 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.827e-05/0.1158, allocations: 38.55 kB / 275 MB, free: 8.828 MB / 234.7 MB Notification: Performance of pre-optimization done (n=29): time 3.517e-06/0.1158, allocations: 0 / 275 MB, free: 8.828 MB / 234.7 MB Notification: Performance of matching and sorting (n=31): time 0.005659/0.1214, allocations: 1.475 MB / 276.4 MB, free: 7.262 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.139e-05/0.1216, allocations: 85.11 kB / 276.5 MB, free: 7.16 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005091/0.1221, allocations: 275.7 kB / 276.8 MB, free: 6.887 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.795e-05/0.1221, allocations: 29.7 kB / 276.8 MB, free: 6.852 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002378/0.1224, allocations: 262.5 kB / 277.1 MB, free: 6.59 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.1226, allocations: 122.3 kB / 277.2 MB, free: 6.469 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.739e-05/0.1226, allocations: 4 kB / 277.2 MB, free: 6.465 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.1228, allocations: 326.8 kB / 277.5 MB, free: 6.137 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007508/0.1236, allocations: 172.5 kB / 277.7 MB, free: 5.965 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008072/0.1244, allocations: 222.3 kB / 277.9 MB, free: 5.73 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007724/0.1252, allocations: 168 kB / 278.1 MB, free: 5.566 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.1252, allocations: 4 kB / 278.1 MB, free: 5.562 MB / 234.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001791/0.127, allocations: 445.4 kB / 278.5 MB, free: 5.121 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.1271, allocations: 4.094 kB / 278.5 MB, free: 5.117 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.1271, allocations: 7.984 kB / 278.5 MB, free: 5.109 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/0.1271, allocations: 4 kB / 278.5 MB, free: 5.105 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.1283, allocations: 151.8 kB / 278.7 MB, free: 4.957 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.1283, allocations: 4 kB / 278.7 MB, free: 4.953 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005438/0.1288, allocations: 39.97 kB / 278.7 MB, free: 4.914 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.694e-05/0.1289, allocations: 15.95 kB / 278.7 MB, free: 4.898 MB / 234.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 (46): * Single equations (assignments): 46 * 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.0003002/0.1292, allocations: 169.6 kB / 278.9 MB, free: 4.723 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.1293, allocations: 31.62 kB / 278.9 MB, free: 4.691 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001249/0.1295, allocations: 39.95 kB / 279 MB, free: 4.652 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.1295, allocations: 4 kB / 279 MB, free: 4.648 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.1295, allocations: 0 / 279 MB, free: 4.648 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.1295, allocations: 0 / 279 MB, free: 4.648 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002801/0.1323, allocations: 0.9419 MB / 279.9 MB, free: 3.641 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.1324, allocations: 0 / 279.9 MB, free: 3.641 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008784/0.1332, allocations: 104 kB / 280 MB, free: 3.539 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.15e-05/0.1333, allocations: 4 kB / 280 MB, free: 3.535 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.59e-05/0.1333, allocations: 7.984 kB / 280 MB, free: 3.527 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.027e-05/0.1333, allocations: 7.953 kB / 280 MB, free: 3.52 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.1333, allocations: 0 / 280 MB, free: 3.52 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002696/0.136, allocations: 0.7704 MB / 280.8 MB, free: 2.695 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002395/0.1363, allocations: 128.8 kB / 280.9 MB, free: 2.551 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.674e-05/0.1364, allocations: 12 kB / 280.9 MB, free: 2.539 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006445/0.1371, allocations: 51.95 kB / 281 MB, free: 2.488 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.1372, allocations: 23.97 kB / 281 MB, free: 2.465 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.796e-05/0.1372, allocations: 11.95 kB / 281 MB, free: 2.453 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0003789/0.1376, allocations: 219 kB / 281.2 MB, free: 2.238 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1376, allocations: 4 kB / 281.3 MB, free: 2.234 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0005015/0.1382, allocations: 72 kB / 281.3 MB, free: 2.164 MB / 234.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 (31): * Single equations (assignments): 31 * 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.0001848/0.1384, allocations: 115.1 kB / 281.4 MB, free: 2.043 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0017/0.1401, allocations: 383.7 kB / 281.8 MB, free: 1.668 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.1401, allocations: 0 / 281.8 MB, free: 1.668 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008574/0.141, allocations: 208.3 kB / 282 MB, free: 1.465 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007719/0.1417, allocations: 81.3 kB / 282.1 MB, free: 1.387 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003308/0.1451, allocations: 1.229 MB / 283.3 MB, free: 112 kB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005506/0.1457, allocations: 0.8187 MB / 284.1 MB, free: 15.26 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002057/0.1459, allocations: 27.44 kB / 284.2 MB, free: 15.23 MB / 250.7 MB Notification: Performance of SimCode: time 1.152e-06/0.1459, allocations: 4 kB / 284.2 MB, free: 15.23 MB / 250.7 MB Notification: Performance of Templates: time 0.01186/0.1578, allocations: 4.599 MB / 288.8 MB, free: 10.64 MB / 250.7 MB