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.2_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 2.049/2.049, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.066e-05/2.076e-05, allocations: 0 / 249.6 MB, free: 15.31 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.249, allocations: 44.51 MB / 294.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1166/0.3656, allocations: 75.85 MB / 370 MB, free: 6.133 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.3659, allocations: 75.91 kB / 370 MB, free: 6.059 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03051/0.3964, allocations: 7.405 MB / 377.4 MB, free: 14.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.882e-06/0.3965, allocations: 0 / 377.4 MB, free: 14.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.644e-05/0.3965, allocations: 12 kB / 377.4 MB, free: 14.62 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001268/0.3978, allocations: 0.6547 MB / 378.1 MB, free: 13.92 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.3978, allocations: 8.031 kB / 378.1 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.398, allocations: 51.42 kB / 378.2 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005969/0.3986, allocations: 318.1 kB / 378.5 MB, free: 13.51 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.928e-05/0.3986, allocations: 12 kB / 378.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.536e-05/0.3987, allocations: 24 kB / 378.5 MB, free: 13.47 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006068/0.3993, allocations: 229.5 kB / 378.7 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006957/0.4001, allocations: 294.2 kB / 379 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.4001, allocations: 0 / 379 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.731e-05/0.4001, allocations: 0 / 379 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.4002, allocations: 11.95 kB / 379 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00251/0.4027, allocations: 1.117 MB / 380.1 MB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006917/0.4034, allocations: 242.8 kB / 380.4 MB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002379/0.4037, allocations: 104.8 kB / 380.5 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.369e-05/0.4037, allocations: 4 kB / 380.5 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/0.4038, allocations: 34.52 kB / 380.5 MB, free: 11.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.629e-06/0.4038, allocations: 0 / 380.5 MB, free: 11.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.002111/0.4059, allocations: 0.9123 MB / 381.4 MB, free: 10.35 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.063e-05/0.406, allocations: 81.11 kB / 381.5 MB, free: 10.25 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004075/0.4064, allocations: 253.2 kB / 381.8 MB, free: 9.996 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.879e-05/0.4065, allocations: 25.7 kB / 381.8 MB, free: 9.965 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002017/0.4067, allocations: 266.8 kB / 382 MB, free: 9.703 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.4068, allocations: 110.4 kB / 382.2 MB, free: 9.594 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.967e-05/0.4069, allocations: 0 / 382.2 MB, free: 9.594 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.4071, allocations: 326.8 kB / 382.5 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002529/0.4073, allocations: 100.7 kB / 382.6 MB, free: 9.164 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003091/0.4076, allocations: 157.9 kB / 382.7 MB, free: 8.992 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002861/0.4079, allocations: 108 kB / 382.8 MB, free: 8.887 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.159e-06/0.408, allocations: 0 / 382.8 MB, free: 8.887 MB / 330.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007117/0.4087, allocations: 297.3 kB / 383.1 MB, free: 8.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002652/0.409, allocations: 451.6 kB / 383.6 MB, free: 8.117 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.409, allocations: 0 / 383.6 MB, free: 8.117 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.409, allocations: 11.89 kB / 383.6 MB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/0.4102, allocations: 251.7 kB / 383.8 MB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007231/0.4109, allocations: 0.6601 MB / 384.5 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004342/0.4114, allocations: 48.03 kB / 384.5 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.921e-05/0.4114, allocations: 12 kB / 384.5 MB, free: 7.117 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.4115, allocations: 4 kB / 384.5 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006281/0.4121, allocations: 251.7 kB / 384.8 MB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.343e-06/0.4121, allocations: 3.938 kB / 384.8 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.815e-06/0.4121, allocations: 4 kB / 384.8 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005874/0.4127, allocations: 120 kB / 384.9 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.739e-06/0.4128, allocations: 4 kB / 384.9 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003047/0.4131, allocations: 43.91 kB / 385 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.4131, allocations: 16 kB / 385 MB, free: 6.68 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: PI.addSat.u2:VARIABLE() "Connector of Real input signal 2" type: Real 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): 45 * 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.0001845/0.4133, allocations: 116.7 kB / 385.1 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.4134, allocations: 31.62 kB / 385.1 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001148/0.4136, allocations: 36.3 kB / 385.2 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.824e-06/0.4136, allocations: 3.938 kB / 385.2 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.303e-06/0.4136, allocations: 4 kB / 385.2 MB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.4136, allocations: 7.938 kB / 385.2 MB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001462/0.4151, allocations: 0.7013 MB / 385.9 MB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.164e-06/0.4151, allocations: 4 kB / 385.9 MB, free: 5.711 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000556/0.4157, allocations: 96 kB / 386 MB, free: 5.617 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.803e-06/0.4157, allocations: 4 kB / 386 MB, free: 5.613 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.219e-05/0.4158, allocations: 7.953 kB / 386 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.592e-06/0.4158, allocations: 0 / 386 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.24e-06/0.4158, allocations: 7.938 kB / 386 MB, free: 5.598 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009829/0.4168, allocations: 0.5249 MB / 386.5 MB, free: 5.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002047/0.417, allocations: 128.8 kB / 386.6 MB, free: 4.875 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.252e-05/0.4171, allocations: 4 kB / 386.6 MB, free: 4.871 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004021/0.4175, allocations: 43.95 kB / 386.7 MB, free: 4.828 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.357e-05/0.4176, allocations: 27.86 kB / 386.7 MB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-05/0.4177, allocations: 8 kB / 386.7 MB, free: 4.793 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003116/0.418, allocations: 204.6 kB / 386.9 MB, free: 4.594 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.17e-07/0.418, allocations: 4 kB / 386.9 MB, free: 4.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007135/0.4187, allocations: 111.9 kB / 387 MB, free: 4.48 MB / 330.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.0001734/0.4189, allocations: 111.1 kB / 387.1 MB, free: 4.363 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.4204, allocations: 0.497 MB / 387.6 MB, free: 3.867 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.859e-06/0.4204, allocations: 4 kB / 387.6 MB, free: 3.863 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002758/0.4207, allocations: 115.9 kB / 387.8 MB, free: 3.75 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005839/0.4213, allocations: 71.45 kB / 387.8 MB, free: 3.684 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.4235, allocations: 0.85 MB / 388.7 MB, free: 2.789 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005732/0.4241, allocations: 0.8113 MB / 389.5 MB, free: 1.949 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001475/0.4242, allocations: 27.44 kB / 389.5 MB, free: 1.922 MB / 330.7 MB Notification: Performance of SimCode: time 1.76e-06/0.4242, allocations: 0 / 389.5 MB, free: 1.922 MB / 330.7 MB Notification: Performance of Templates: time 0.009979/0.4342, allocations: 5.134 MB / 394.6 MB, free: 12.8 MB / 346.7 MB