Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction.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.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.058/2.058, allocations: 194.9 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005214/0.0005216, allocations: 12 kB / 264 MB, free: 2.516 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3198, allocations: 44.51 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004591/0.3244, allocations: 2.409 MB / 311 MB, free: 10.24 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002761/0.3272, allocations: 0.9481 MB / 311.9 MB, free: 9.289 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000361/0.3277, allocations: 4 kB / 311.9 MB, free: 9.285 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002035/0.3279, allocations: 43.62 kB / 312 MB, free: 9.242 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005368/0.3284, allocations: 159.5 kB / 312.1 MB, free: 9.086 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008379/0.3293, allocations: 151.7 kB / 312.3 MB, free: 8.938 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001018/0.3303, allocations: 404.3 kB / 312.7 MB, free: 8.539 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003159/0.3307, allocations: 98.23 kB / 312.8 MB, free: 8.438 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005683/0.3313, allocations: 239.2 kB / 313 MB, free: 8.203 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005073/0.3318, allocations: 263 kB / 313.2 MB, free: 7.945 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.195e-05/0.3319, allocations: 24 kB / 313.3 MB, free: 7.922 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002639/0.3322, allocations: 71.91 kB / 313.3 MB, free: 7.852 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000162/0.3324, allocations: 95.67 kB / 313.4 MB, free: 7.758 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001704/0.3325, allocations: 101.5 kB / 313.5 MB, free: 7.652 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000811/0.3334, allocations: 415.9 kB / 313.9 MB, free: 7.246 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3334, allocations: 0 / 313.9 MB, free: 7.246 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.3334, allocations: 0 / 313.9 MB, free: 7.246 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.3334, allocations: 0 / 313.9 MB, free: 7.246 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002363/0.3358, allocations: 0.7289 MB / 314.7 MB, free: 6.469 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.462e-05/0.3359, allocations: 8.031 kB / 314.7 MB, free: 6.461 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002467/0.3361, allocations: 95.41 kB / 314.8 MB, free: 6.355 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.3363, allocations: 55.39 kB / 314.8 MB, free: 6.301 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006606/0.337, allocations: 314.2 kB / 315.1 MB, free: 5.949 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.896e-05/0.3371, allocations: 36.94 kB / 315.2 MB, free: 5.914 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.3372, allocations: 40 kB / 315.2 MB, free: 5.875 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.3388, allocations: 482.3 kB / 315.7 MB, free: 5.398 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.376e-05/0.3389, allocations: 15.84 kB / 315.7 MB, free: 5.383 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.774e-05/0.339, allocations: 16 kB / 315.7 MB, free: 5.367 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/0.339, allocations: 8 kB / 315.7 MB, free: 5.359 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001749/0.3407, allocations: 495.7 kB / 316.2 MB, free: 4.875 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003829/0.3446, allocations: 1.176 MB / 317.4 MB, free: 3.648 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/0.3462, allocations: 389 kB / 317.8 MB, free: 3.262 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.116e-05/0.3463, allocations: 8.422 kB / 317.8 MB, free: 3.254 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/0.3463, allocations: 43 kB / 317.8 MB, free: 3.203 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 3.276e-06/0.3463, allocations: 0 / 317.8 MB, free: 3.203 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.0096/0.356, allocations: 2.429 MB / 320.2 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.818e-05/0.3561, allocations: 59.97 kB / 320.3 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005193/0.3566, allocations: 283.3 kB / 320.6 MB, free: 296 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001402/0.3568, allocations: 41.64 kB / 320.6 MB, free: 248 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002043/0.357, allocations: 197.2 kB / 320.8 MB, free: 48 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003254/0.3573, allocations: 193.5 kB / 321 MB, free: 15.85 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.29e-05/0.3574, allocations: 12 kB / 321 MB, free: 15.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.3576, allocations: 346.8 kB / 321.3 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009021/0.3585, allocations: 245.2 kB / 321.6 MB, free: 15.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009274/0.3594, allocations: 296.8 kB / 321.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007736/0.3602, allocations: 203.2 kB / 322.1 MB, free: 14.76 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.3603, allocations: 4 kB / 322.1 MB, free: 14.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002668/0.3629, allocations: 0.7482 MB / 322.8 MB, free: 13.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/0.363, allocations: 4 kB / 322.8 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.3631, allocations: 12.02 kB / 322.8 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001614/0.3647, allocations: 497.3 kB / 323.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000776/0.3655, allocations: 91.84 kB / 323.4 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002291/0.3678, allocations: 1.398 MB / 324.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.369, allocations: 108 kB / 324.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.3691, allocations: 16 kB / 324.9 MB, free: 11.82 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004011/0.3695, allocations: 177.7 kB / 325.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/0.3697, allocations: 39.53 kB / 325.1 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001985/0.3699, allocations: 59.72 kB / 325.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.3699, allocations: 8 kB / 325.2 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.37, allocations: 0 / 325.2 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.37, allocations: 0 / 325.2 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005072/0.3751, allocations: 1.481 MB / 326.7 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/0.3751, allocations: 0 / 326.7 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000813/0.376, allocations: 87.83 kB / 326.8 MB, free: 9.883 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/0.3775, allocations: 489.5 kB / 327.3 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001388/0.3777, allocations: 19.98 kB / 327.3 MB, free: 9.379 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002156/0.3799, allocations: 1.37 MB / 328.6 MB, free: 7.957 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-05/0.3799, allocations: 8.016 kB / 328.7 MB, free: 7.949 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003893/0.3839, allocations: 1.1 MB / 329.8 MB, free: 6.809 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004759/0.3844, allocations: 168.6 kB / 329.9 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.3846, allocations: 16 kB / 329.9 MB, free: 6.609 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008768/0.3855, allocations: 83.92 kB / 330 MB, free: 6.527 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004038/0.3859, allocations: 112.2 kB / 330.1 MB, free: 6.418 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.467e-05/0.386, allocations: 19.98 kB / 330.1 MB, free: 6.398 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003611/0.3864, allocations: 201.9 kB / 330.3 MB, free: 6.203 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3864, allocations: 0 / 330.3 MB, free: 6.203 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007666/0.3872, allocations: 136 kB / 330.5 MB, free: 6.07 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004394/0.3916, allocations: 1.678 MB / 332.2 MB, free: 4.352 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002514/0.3941, allocations: 0.6006 MB / 332.8 MB, free: 3.754 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/0.3942, allocations: 4 kB / 332.8 MB, free: 3.75 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001476/0.3957, allocations: 346.7 kB / 333.1 MB, free: 3.41 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008663/0.3966, allocations: 60.56 kB / 333.2 MB, free: 3.352 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01387/0.4105, allocations: 3.633 MB / 336.8 MB, free: 15.64 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005824/0.4112, allocations: 0.8323 MB / 337.6 MB, free: 14.78 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003455/0.4115, allocations: 47.19 kB / 337.7 MB, free: 14.73 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003238/0.4119, allocations: 131.4 kB / 337.8 MB, free: 14.61 MB / 282.7 MB Notification: Performance of SimCode: time 1.412e-06/0.4119, allocations: 0 / 337.8 MB, free: 14.61 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05981/0.4717, allocations: 12.46 MB / 350.3 MB, free: 2.168 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003242/0.4721, allocations: 214 kB / 350.5 MB, free: 1.918 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.051/3.523, allocations: 0 / 350.5 MB, free: 1.918 MB / 282.7 MB "" Variables in the reference:time,clutch.phi_rel,clutch.w_rel,inertia3.phi,inertia3.w,spring.phi_rel,spring.w_rel,brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward Variables in the result:brake.a,brake.a_relfric,brake.cgeo,brake.f_normalized,brake.flange_a.phi,brake.flange_a.tau,brake.flange_b.phi,brake.flange_b.tau,brake.fn,brake.fn_max,brake.free,brake.locked,brake.lossPower,brake.mode,brake.mue0,brake.mue_pos[1,1],brake.mue_pos[1,2],brake.peak,brake.phi,brake.phi_support,brake.sa,brake.startBackward,brake.startForward,brake.support.phi,brake.support.tau,brake.tau,brake.tau0,brake.tau0_max,brake.useHeatPort,brake.useSupport,brake.w,brake.w_relfric,brake.w_small,clutch.a_rel,clutch.a_relfric,clutch.cgeo,clutch.f_normalized,clutch.flange_a.phi,clutch.flange_a.tau,clutch.flange_b.phi,clutch.flange_b.tau,clutch.fn,clutch.fn_max,clutch.free,clutch.locked,clutch.lossPower,clutch.mode,clutch.mue0,clutch.mue_pos[1,1],clutch.mue_pos[1,2],clutch.peak,clutch.phi_nominal,clutch.phi_rel,clutch.sa,clutch.startBackward,clutch.startForward,clutch.stateSelect,clutch.tau,clutch.tau0,clutch.tau0_max,clutch.useHeatPort,clutch.w_rel,clutch.w_relfric,clutch.w_small,const.k,const.y,der(brake.phi),der(brake.w),der(clutch.phi_rel),der(clutch.w_rel),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),der(spring.phi_rel),der(spring.w_rel),fixed.flange.phi,fixed.flange.tau,fixed.phi0,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,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,product.u1,product.u2,product.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,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,startTime,step.height,step.offset,step.startTime,step.y,step2.height,step2.offset,step2.startTime,step2.y,tBrake,tClutch,tMotor,tSpring,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport