Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_2_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.895/1.895, allocations: 194.8 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003566, allocations: 16 kB / 264 MB, free: 3.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2852, allocations: 44.51 MB / 308.6 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004158/0.2894, allocations: 2.425 MB / 311 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002088/0.2915, allocations: 0.8739 MB / 311.8 MB, free: 9.445 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002308/0.2917, allocations: 11.94 kB / 311.9 MB, free: 9.434 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002566/0.292, allocations: 43.62 kB / 311.9 MB, free: 9.391 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004591/0.2925, allocations: 123.6 kB / 312 MB, free: 9.27 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006074/0.2931, allocations: 155.7 kB / 312.2 MB, free: 9.117 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006112/0.2937, allocations: 327.8 kB / 312.5 MB, free: 8.793 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002942/0.2941, allocations: 115.8 kB / 312.6 MB, free: 8.676 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002518/0.2943, allocations: 139.4 kB / 312.7 MB, free: 8.539 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002864/0.2946, allocations: 159.2 kB / 312.9 MB, free: 8.383 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.83e-05/0.2947, allocations: 16 kB / 312.9 MB, free: 8.367 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.655e-05/0.2948, allocations: 16 kB / 312.9 MB, free: 8.352 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.2949, allocations: 63.73 kB / 313 MB, free: 8.289 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.295, allocations: 93.45 kB / 313.1 MB, free: 8.191 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004601/0.2955, allocations: 308.1 kB / 313.4 MB, free: 7.891 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.2955, allocations: 3.938 kB / 313.4 MB, free: 7.887 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2955, allocations: 0 / 313.4 MB, free: 7.887 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.2955, allocations: 0 / 313.4 MB, free: 7.887 MB / 250.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.001772/0.2973, allocations: 0.6857 MB / 314.1 MB, free: 7.148 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.2974, allocations: 8.031 kB / 314.1 MB, free: 7.141 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000147/0.2975, allocations: 70.53 kB / 314.2 MB, free: 7.062 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.2976, allocations: 47.39 kB / 314.2 MB, free: 7.016 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005562/0.2982, allocations: 314.2 kB / 314.5 MB, free: 6.668 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.287e-05/0.2983, allocations: 28.66 kB / 314.5 MB, free: 6.641 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.955e-05/0.2984, allocations: 32 kB / 314.6 MB, free: 6.609 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.2997, allocations: 413.8 kB / 315 MB, free: 6.191 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/0.2998, allocations: 7.906 kB / 315 MB, free: 6.184 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.906e-05/0.2998, allocations: 12 kB / 315 MB, free: 6.172 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.2999, allocations: 8 kB / 315 MB, free: 6.164 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.3016, allocations: 398.3 kB / 315.4 MB, free: 5.77 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002781/0.3044, allocations: 1.193 MB / 316.6 MB, free: 4.5 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.3058, allocations: 338.7 kB / 316.9 MB, free: 4.16 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.752e-05/0.3059, allocations: 4 kB / 316.9 MB, free: 4.156 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.3059, allocations: 30.56 kB / 316.9 MB, free: 4.117 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 2.365e-06/0.306, allocations: 0 / 316.9 MB, free: 4.117 MB / 250.7 MB Notification: Performance of matching and sorting (n=31): time 0.005517/0.3115, allocations: 1.483 MB / 318.4 MB, free: 2.543 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.3116, allocations: 81.11 kB / 318.5 MB, free: 2.445 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004886/0.3121, allocations: 312.4 kB / 318.8 MB, free: 2.137 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/0.3121, allocations: 41.58 kB / 318.9 MB, free: 2.09 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002004/0.3123, allocations: 212.1 kB / 319.1 MB, free: 1.879 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.3125, allocations: 114.3 kB / 319.2 MB, free: 1.766 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.082e-05/0.3125, allocations: 16 kB / 319.2 MB, free: 1.75 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.3127, allocations: 342.8 kB / 319.5 MB, free: 1.406 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008341/0.3136, allocations: 180.6 kB / 319.7 MB, free: 1.227 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008915/0.3145, allocations: 234.3 kB / 319.9 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000836/0.3153, allocations: 192.2 kB / 320.1 MB, free: 0.793 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.3153, allocations: 4 kB / 320.1 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001886/0.3172, allocations: 485 kB / 320.6 MB, free: 316 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.584e-05/0.3173, allocations: 128.3 kB / 320.7 MB, free: 168 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3174, allocations: 4.031 kB / 320.7 MB, free: 164 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.3174, allocations: 4 kB / 320.7 MB, free: 160 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/0.3192, allocations: 251.7 kB / 321 MB, free: 15.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002715/0.3219, allocations: 1.552 MB / 322.5 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005709/0.3225, allocations: 52.14 kB / 322.6 MB, free: 14.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.864e-05/0.3226, allocations: 12 kB / 322.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.306e-06/0.3226, allocations: 4 kB / 322.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001615/0.3242, allocations: 408.1 kB / 323 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3242, allocations: 4 kB / 323 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.273e-06/0.3243, allocations: 4 kB / 323 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008924/0.3252, allocations: 123.8 kB / 323.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.3252, allocations: 3.953 kB / 323.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/0.3257, allocations: 43.97 kB / 323.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/0.3257, allocations: 12 kB / 323.2 MB, free: 13.57 MB / 266.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 () * Number of clocked 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.0002871/0.326, allocations: 229.3 kB / 323.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.537e-05/0.3261, allocations: 43.52 kB / 323.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000109/0.3262, allocations: 39.95 kB / 323.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.3263, allocations: 3.938 kB / 323.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.3263, allocations: 7.953 kB / 323.5 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.3263, allocations: 3.984 kB / 323.5 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002634/0.3289, allocations: 0.9302 MB / 324.4 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.329, allocations: 4 kB / 324.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008443/0.3298, allocations: 99.95 kB / 324.5 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.525e-06/0.3298, allocations: 4 kB / 324.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.127e-05/0.3299, allocations: 4 kB / 324.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.085e-06/0.3299, allocations: 7.984 kB / 324.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.3299, allocations: 3.938 kB / 324.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002556/0.3325, allocations: 0.7132 MB / 325.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001862/0.3327, allocations: 132.7 kB / 325.4 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.835e-05/0.3327, allocations: 7.953 kB / 325.4 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005385/0.3333, allocations: 55.95 kB / 325.5 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.378e-05/0.3334, allocations: 27.84 kB / 325.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.787e-05/0.3334, allocations: 8 kB / 325.5 MB, free: 11.13 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003488/0.3338, allocations: 219 kB / 325.7 MB, free: 10.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3338, allocations: 0 / 325.7 MB, free: 10.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000696/0.3345, allocations: 128 kB / 325.8 MB, free: 10.79 MB / 266.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 () * Number of clocked 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.002874/0.3374, allocations: 1.254 MB / 327.1 MB, free: 9.496 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003517/0.3409, allocations: 0.7696 MB / 327.8 MB, free: 8.727 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.341, allocations: 0 / 327.8 MB, free: 8.727 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008636/0.3418, allocations: 200.1 kB / 328 MB, free: 8.531 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007516/0.3426, allocations: 71.86 kB / 328.1 MB, free: 8.465 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007274/0.3499, allocations: 2.653 MB / 330.8 MB, free: 5.746 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004901/0.3504, allocations: 0.8152 MB / 331.6 MB, free: 4.902 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004033/0.3508, allocations: 55.23 kB / 331.6 MB, free: 4.844 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002815/0.3511, allocations: 119.4 kB / 331.8 MB, free: 4.727 MB / 266.7 MB Notification: Performance of SimCode: time 8.52e-07/0.3511, allocations: 0 / 331.8 MB, free: 4.727 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03286/0.384, allocations: 7.208 MB / 339 MB, free: 13.56 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002859/0.3844, allocations: 192.8 kB / 339.1 MB, free: 13.32 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.532/2.916, allocations: 4 kB / 339.2 MB, free: 13.32 MB / 282.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