Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Blocks_Examples_PID_Controller",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.392/2.392, allocations: 195 MB / 202.9 MB, free: 6.711 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.911e-05/2.929e-05, allocations: 2.75 kB / 249.7 MB, free: 5.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1027, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4848/0.5876, allocations: 75.86 MB / 370.1 MB, free: 6.957 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003771/0.588, allocations: 69.97 kB / 370.2 MB, free: 6.957 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05345/0.6415, allocations: 7.422 MB / 377.6 MB, free: 21.89 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.6416, allocations: 0 / 377.6 MB, free: 21.89 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.98e-05/0.6416, allocations: 7.75 kB / 377.6 MB, free: 21.89 MB / 314.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.001817/0.6434, allocations: 0.6522 MB / 378.3 MB, free: 21.37 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/0.6435, allocations: 11.62 kB / 378.3 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001223/0.6437, allocations: 56.09 kB / 378.3 MB, free: 21.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001473/0.6438, allocations: 46.73 kB / 378.4 MB, free: 21.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006538/0.6445, allocations: 323.4 kB / 378.7 MB, free: 21.03 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.573e-05/0.6445, allocations: 23.17 kB / 378.7 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-05/0.6446, allocations: 23.3 kB / 378.7 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007185/0.6454, allocations: 230.2 kB / 379 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007546/0.6461, allocations: 290.4 kB / 379.2 MB, free: 20.9 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.001e-05/0.6462, allocations: 0 / 379.2 MB, free: 20.9 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.421e-05/0.6463, allocations: 3.953 kB / 379.3 MB, free: 20.89 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.6463, allocations: 7.844 kB / 379.3 MB, free: 20.89 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003046/0.6493, allocations: 1.121 MB / 380.4 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008153/0.6502, allocations: 232.9 kB / 380.6 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002516/0.6505, allocations: 96.73 kB / 380.7 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.649e-05/0.6505, allocations: 7.828 kB / 380.7 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.6506, allocations: 42.14 kB / 380.8 MB, free: 20.12 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.567e-06/0.6506, allocations: 4 kB / 380.8 MB, free: 20.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.002268/0.6529, allocations: 0.9065 MB / 381.7 MB, free: 19.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.823e-05/0.653, allocations: 81.02 kB / 381.7 MB, free: 19.44 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004233/0.6534, allocations: 253.4 kB / 382 MB, free: 19.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.614e-05/0.6535, allocations: 29.7 kB / 382 MB, free: 19.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001683/0.6537, allocations: 219.3 kB / 382.2 MB, free: 19.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.6538, allocations: 111 kB / 382.3 MB, free: 19.06 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.6538, allocations: 3.938 kB / 382.3 MB, free: 19.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.654, allocations: 344.1 kB / 382.7 MB, free: 18.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/0.6543, allocations: 95.25 kB / 382.8 MB, free: 18.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003206/0.6546, allocations: 158 kB / 382.9 MB, free: 18.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.6549, allocations: 104.6 kB / 383 MB, free: 18.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.6549, allocations: 3.875 kB / 383 MB, free: 18.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008517/0.6558, allocations: 312.7 kB / 383.3 MB, free: 18.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002098/0.656, allocations: 456.3 kB / 383.8 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.6561, allocations: 3.906 kB / 383.8 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.781e-05/0.6561, allocations: 7.797 kB / 383.8 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/0.6581, allocations: 254 kB / 384 MB, free: 18.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009677/0.6591, allocations: 0.6608 MB / 384.7 MB, free: 17.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007567/0.6599, allocations: 46.42 kB / 384.7 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.486e-05/0.66, allocations: 7.781 kB / 384.8 MB, free: 17.4 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.66, allocations: 3.844 kB / 384.8 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007161/0.6607, allocations: 247.5 kB / 385 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.6608, allocations: 0 / 385 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.6608, allocations: 3.875 kB / 385 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.6618, allocations: 125 kB / 385.1 MB, free: 17.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.6618, allocations: 7.828 kB / 385.1 MB, free: 17.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006037/0.6625, allocations: 38.72 kB / 385.2 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.257e-05/0.6625, allocations: 22.72 kB / 385.2 MB, free: 17.31 MB / 314.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.0002498/0.6628, allocations: 108.7 kB / 385.3 MB, free: 17.2 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.6629, allocations: 31.16 kB / 385.3 MB, free: 17.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001458/0.6631, allocations: 37.08 kB / 385.4 MB, free: 17.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.6631, allocations: 3.969 kB / 385.4 MB, free: 17.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.6631, allocations: 0 / 385.4 MB, free: 17.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.6631, allocations: 3.953 kB / 385.4 MB, free: 17.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00168/0.6648, allocations: 0.7244 MB / 386.1 MB, free: 16.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.6649, allocations: 3.719 kB / 386.1 MB, free: 16.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009634/0.6658, allocations: 97.64 kB / 386.2 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-05/0.6659, allocations: 3.906 kB / 386.2 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-05/0.6659, allocations: 10.55 kB / 386.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.6659, allocations: 0 / 386.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.6659, allocations: 7.844 kB / 386.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.667, allocations: 0.5177 MB / 386.7 MB, free: 16.42 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000257/0.6673, allocations: 134.4 kB / 386.9 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.6674, allocations: 0 / 386.9 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006447/0.6681, allocations: 43.36 kB / 386.9 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.6682, allocations: 27.27 kB / 386.9 MB, free: 16.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.489e-05/0.6683, allocations: 11.56 kB / 387 MB, free: 16.27 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003326/0.6686, allocations: 198.8 kB / 387.1 MB, free: 16.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.6687, allocations: 0 / 387.1 MB, free: 16.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000857/0.6695, allocations: 116.4 kB / 387.3 MB, free: 16.17 MB / 314.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.001531/0.6711, allocations: 1.346 MB / 388.6 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002076/0.6732, allocations: 0.5163 MB / 389.1 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.6732, allocations: 0 / 389.1 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003398/0.6736, allocations: 119.3 kB / 389.2 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009087/0.6745, allocations: 71.69 kB / 389.3 MB, free: 14.99 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003299/0.6778, allocations: 0.8996 MB / 390.2 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004974/0.6784, allocations: 0.8124 MB / 391 MB, free: 13.66 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006182/0.679, allocations: 70 kB / 391.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003139/0.6793, allocations: 123.1 kB / 391.2 MB, free: 13.61 MB / 314.7 MB Notification: Performance of SimCode: time 1.443e-06/0.6793, allocations: 0 / 391.2 MB, free: 13.61 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06822/0.7476, allocations: 7.153 MB / 398.4 MB, free: 10.25 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003441/0.748, allocations: 130.1 kB / 398.5 MB, free: 10.06 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.205/3.953, allocations: 3.906 kB / 398.5 MB, free: 10.06 MB / 314.7 MB "" Variables in the reference:time,PI.I.y,inertia1.phi,inertia1.w,integrator.y,spring.phi_rel,spring.w_rel Variables in the result:PI.Dzero.k,PI.Dzero.y,PI.I.initType,PI.I.k,PI.I.u,PI.I.y,PI.I.y_start,PI.Nd,PI.Ni,PI.P.k,PI.P.u,PI.P.y,PI.Td,PI.Ti,PI.addI.k1,PI.addI.k2,PI.addI.k3,PI.addI.u1,PI.addI.u2,PI.addI.u3,PI.addI.y,PI.addP.k1,PI.addP.k2,PI.addP.u1,PI.addP.u2,PI.addP.y,PI.addPID.k1,PI.addPID.k2,PI.addPID.k3,PI.addPID.u1,PI.addPID.u2,PI.addPID.u3,PI.addPID.y,PI.addSat.k1,PI.addSat.k2,PI.addSat.u1,PI.addSat.u2,PI.addSat.y,PI.controlError,PI.controllerType,PI.gainPID.k,PI.gainPID.u,PI.gainPID.y,PI.gainTrack.k,PI.gainTrack.u,PI.gainTrack.y,PI.initType,PI.k,PI.limiter.limitsAtInit,PI.limiter.strict,PI.limiter.u,PI.limiter.uMax,PI.limiter.uMin,PI.limiter.y,PI.limitsAtInit,PI.strict,PI.u_m,PI.u_s,PI.wd,PI.with_D,PI.with_I,PI.wp,PI.xd_start,PI.xi_start,PI.y,PI.yMax,PI.yMin,PI.y_start,der(PI.I.y),der(inertia1.phi),der(inertia1.w),der(inertia2.w),der(integrator.y),der(loadTorque.phi),der(spring.phi_rel),der(spring.w_rel),driveAngle,inertia1.J,inertia1.a,inertia1.flange_a.phi,inertia1.flange_a.tau,inertia1.flange_b.phi,inertia1.flange_b.tau,inertia1.phi,inertia1.stateSelect,inertia1.w,inertia2.J,inertia2.a,inertia2.flange_a.phi,inertia2.flange_a.tau,inertia2.flange_b.phi,inertia2.flange_b.tau,inertia2.phi,inertia2.stateSelect,inertia2.w,integrator.initType,integrator.k,integrator.u,integrator.y,integrator.y_start,kinematicPTP.Ta1,kinematicPTP.Ta2,kinematicPTP.Te,kinematicPTP.Tv,kinematicPTP.aux1[1],kinematicPTP.aux2[1],kinematicPTP.deltaq[1],kinematicPTP.noWphase,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.sd_max,kinematicPTP.sdd,kinematicPTP.sdd_max,kinematicPTP.startTime,kinematicPTP.y[1],loadTorque.flange.phi,loadTorque.flange.tau,loadTorque.phi,loadTorque.phi_support,loadTorque.tau,loadTorque.tau_constant,loadTorque.useSupport,loadTorque.w,speedSensor.flange.phi,speedSensor.flange.tau,speedSensor.w,spring.a_rel,spring.c,spring.d,spring.flange_a.phi,spring.flange_a.tau,spring.flange_b.phi,spring.flange_b.tau,spring.lossPower,spring.phi_nominal,spring.phi_rel,spring.phi_rel0,spring.stateSelect,spring.tau,spring.tau_c,spring.tau_d,spring.useHeatPort,spring.w_rel,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.tau,torque.useSupport