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.CoupledClutches.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.CoupledClutches,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.037/2.037, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005703/0.0005703, allocations: 12 kB / 264.1 MB, free: 3.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3379, allocations: 44.5 MB / 308.5 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004458/0.3424, allocations: 2.459 MB / 311 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002921/0.3454, allocations: 1.053 MB / 312.1 MB, free: 9.242 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004176/0.3459, allocations: 15.94 kB / 312.1 MB, free: 9.227 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002234/0.3461, allocations: 51.61 kB / 312.1 MB, free: 9.176 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00058/0.3467, allocations: 163.5 kB / 312.3 MB, free: 9.016 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009735/0.3477, allocations: 215.6 kB / 312.5 MB, free: 8.805 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001233/0.349, allocations: 496.7 kB / 313 MB, free: 8.316 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003378/0.3494, allocations: 99.12 kB / 313.1 MB, free: 8.219 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007769/0.3502, allocations: 307 kB / 313.4 MB, free: 7.918 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007479/0.351, allocations: 338.8 kB / 313.7 MB, free: 7.586 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001662/0.3511, allocations: 32 kB / 313.7 MB, free: 7.555 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003211/0.3515, allocations: 75.95 kB / 313.8 MB, free: 7.48 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.3517, allocations: 123.5 kB / 313.9 MB, free: 7.359 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001907/0.3519, allocations: 109.5 kB / 314 MB, free: 7.246 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009028/0.3528, allocations: 499.7 kB / 314.5 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3529, allocations: 0 / 314.5 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3529, allocations: 0 / 314.5 MB, free: 6.758 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.49e-05/0.3529, allocations: 0 / 314.5 MB, free: 6.758 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002873/0.3558, allocations: 0.8261 MB / 315.4 MB, free: 5.883 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.3558, allocations: 11.97 kB / 315.4 MB, free: 5.871 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002499/0.3561, allocations: 82.52 kB / 315.4 MB, free: 5.781 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.3563, allocations: 55.34 kB / 315.5 MB, free: 5.727 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007717/0.3571, allocations: 350.6 kB / 315.8 MB, free: 5.344 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.411e-05/0.3572, allocations: 33 kB / 315.9 MB, free: 5.309 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001616/0.3573, allocations: 43.91 kB / 315.9 MB, free: 5.266 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002073/0.3594, allocations: 0.6229 MB / 316.5 MB, free: 4.633 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.8e-05/0.3595, allocations: 4 kB / 316.5 MB, free: 4.629 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-05/0.3596, allocations: 16 kB / 316.6 MB, free: 4.613 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.813e-05/0.3597, allocations: 12 kB / 316.6 MB, free: 4.602 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002419/0.3621, allocations: 0.6167 MB / 317.2 MB, free: 3.98 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004442/0.3666, allocations: 1.375 MB / 318.6 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.3685, allocations: 473.2 kB / 319 MB, free: 2.074 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001144/0.3686, allocations: 8.562 kB / 319 MB, free: 2.066 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.3687, allocations: 39.12 kB / 319.1 MB, free: 2.02 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 7.584e-06/0.3687, allocations: 0 / 319.1 MB, free: 2.02 MB / 250.7 MB Notification: Performance of matching and sorting (n=64): time 0.01237/0.3811, allocations: 3.018 MB / 322.1 MB, free: 14.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.378e-05/0.3812, allocations: 63.86 kB / 322.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005778/0.3818, allocations: 329.6 kB / 322.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002057/0.382, allocations: 53.69 kB / 322.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.3822, allocations: 197.3 kB / 322.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003552/0.3826, allocations: 221 kB / 322.9 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.871e-05/0.3827, allocations: 16 kB / 323 MB, free: 13.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.3829, allocations: 346.8 kB / 323.3 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.3842, allocations: 337.8 kB / 323.6 MB, free: 13.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00137/0.3856, allocations: 381 kB / 324 MB, free: 12.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.3867, allocations: 259.2 kB / 324.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.3868, allocations: 0 / 324.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003425/0.3902, allocations: 0.9394 MB / 325.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.3903, allocations: 4 kB / 325.2 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.3903, allocations: 0 / 325.2 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002358/0.3927, allocations: 0.7346 MB / 325.9 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009161/0.3937, allocations: 107.8 kB / 326 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002599/0.3963, allocations: 1.099 MB / 327.1 MB, free: 9.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.3979, allocations: 143.9 kB / 327.3 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001566/0.3981, allocations: 31.98 kB / 327.3 MB, free: 9.566 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.000461/0.3986, allocations: 175.9 kB / 327.5 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000199/0.3988, allocations: 55.39 kB / 327.5 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000232/0.399, allocations: 68.75 kB / 327.6 MB, free: 9.258 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.3991, allocations: 8 kB / 327.6 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.88e-05/0.3991, allocations: 3.984 kB / 327.6 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.3991, allocations: 0 / 327.6 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005159/0.4043, allocations: 1.586 MB / 329.2 MB, free: 7.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/0.4043, allocations: 4 kB / 329.2 MB, free: 7.594 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009771/0.4053, allocations: 91.88 kB / 329.3 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002271/0.4076, allocations: 0.7035 MB / 330 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001757/0.4079, allocations: 23.97 kB / 330 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00241/0.4103, allocations: 1.066 MB / 331.1 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.4104, allocations: 0 / 331.1 MB, free: 5.684 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004782/0.4152, allocations: 1.327 MB / 332.4 MB, free: 4.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005593/0.4158, allocations: 188.4 kB / 332.6 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001973/0.416, allocations: 28 kB / 332.6 MB, free: 4.109 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/0.4174, allocations: 143.9 kB / 332.8 MB, free: 3.969 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005705/0.418, allocations: 144.2 kB / 332.9 MB, free: 3.824 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.4181, allocations: 35.91 kB / 332.9 MB, free: 3.789 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004223/0.4186, allocations: 231.2 kB / 333.2 MB, free: 3.566 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.4186, allocations: 0 / 333.2 MB, free: 3.566 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009241/0.4195, allocations: 164 kB / 333.3 MB, free: 3.406 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.005571/0.4251, allocations: 1.904 MB / 335.2 MB, free: 1.469 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003253/0.4284, allocations: 0.788 MB / 336 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.4285, allocations: 3.938 kB / 336 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001763/0.4303, allocations: 433.9 kB / 336.4 MB, free: 264 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.4314, allocations: 88.41 kB / 336.5 MB, free: 180 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01249/0.4439, allocations: 3.903 MB / 340.4 MB, free: 12.21 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005863/0.4446, allocations: 0.852 MB / 341.3 MB, free: 11.33 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000453/0.445, allocations: 52.16 kB / 341.3 MB, free: 11.28 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003889/0.4454, allocations: 147.4 kB / 341.5 MB, free: 11.14 MB / 282.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4455, allocations: 0 / 341.5 MB, free: 11.14 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07702/0.5225, allocations: 16.15 MB / 357.6 MB, free: 11 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003415/0.5229, allocations: 210 kB / 357.8 MB, free: 10.76 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.376/3.899, allocations: 4 kB / 357.8 MB, free: 10.75 MB / 298.7 MB "" Variables in the reference:time,J1.phi,J1.w,clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,clutch3.phi_rel,clutch3.w_rel,clutch1.mode,clutch1.startBackward,clutch1.startForward,clutch2.mode,clutch2.startBackward,clutch2.startForward,clutch3.mode,clutch3.startBackward,clutch3.startForward Variables in the result:J1.J,J1.a,J1.flange_a.phi,J1.flange_a.tau,J1.flange_b.phi,J1.flange_b.tau,J1.phi,J1.stateSelect,J1.w,J2.J,J2.a,J2.flange_a.phi,J2.flange_a.tau,J2.flange_b.phi,J2.flange_b.tau,J2.phi,J2.stateSelect,J2.w,J3.J,J3.a,J3.flange_a.phi,J3.flange_a.tau,J3.flange_b.phi,J3.flange_b.tau,J3.phi,J3.stateSelect,J3.w,J4.J,J4.a,J4.flange_a.phi,J4.flange_a.tau,J4.flange_b.phi,J4.flange_b.tau,J4.phi,J4.stateSelect,J4.w,T2,T3,clutch1.a_rel,clutch1.a_relfric,clutch1.cgeo,clutch1.f_normalized,clutch1.flange_a.phi,clutch1.flange_a.tau,clutch1.flange_b.phi,clutch1.flange_b.tau,clutch1.fn,clutch1.fn_max,clutch1.free,clutch1.locked,clutch1.lossPower,clutch1.mode,clutch1.mue0,clutch1.mue_pos[1,1],clutch1.mue_pos[1,2],clutch1.peak,clutch1.phi_nominal,clutch1.phi_rel,clutch1.sa,clutch1.startBackward,clutch1.startForward,clutch1.stateSelect,clutch1.tau,clutch1.tau0,clutch1.tau0_max,clutch1.useHeatPort,clutch1.w_rel,clutch1.w_relfric,clutch1.w_small,clutch2.a_rel,clutch2.a_relfric,clutch2.cgeo,clutch2.f_normalized,clutch2.flange_a.phi,clutch2.flange_a.tau,clutch2.flange_b.phi,clutch2.flange_b.tau,clutch2.fn,clutch2.fn_max,clutch2.free,clutch2.locked,clutch2.lossPower,clutch2.mode,clutch2.mue0,clutch2.mue_pos[1,1],clutch2.mue_pos[1,2],clutch2.peak,clutch2.phi_nominal,clutch2.phi_rel,clutch2.sa,clutch2.startBackward,clutch2.startForward,clutch2.stateSelect,clutch2.tau,clutch2.tau0,clutch2.tau0_max,clutch2.useHeatPort,clutch2.w_rel,clutch2.w_relfric,clutch2.w_small,clutch3.a_rel,clutch3.a_relfric,clutch3.cgeo,clutch3.f_normalized,clutch3.flange_a.phi,clutch3.flange_a.tau,clutch3.flange_b.phi,clutch3.flange_b.tau,clutch3.fn,clutch3.fn_max,clutch3.free,clutch3.locked,clutch3.lossPower,clutch3.mode,clutch3.mue0,clutch3.mue_pos[1,1],clutch3.mue_pos[1,2],clutch3.peak,clutch3.phi_nominal,clutch3.phi_rel,clutch3.sa,clutch3.startBackward,clutch3.startForward,clutch3.stateSelect,clutch3.tau,clutch3.tau0,clutch3.tau0_max,clutch3.useHeatPort,clutch3.w_rel,clutch3.w_relfric,clutch3.w_small,der(J1.phi),der(J1.w),der(J2.phi),der(J2.w),der(J3.phi),der(J3.w),der(J4.phi),der(J4.w),der(clutch1.phi_rel),der(clutch1.w_rel),der(clutch2.phi_rel),der(clutch2.w_rel),der(clutch3.phi_rel),der(clutch3.w_rel),fixed.flange.phi,fixed.flange.tau,fixed.phi0,freqHz,sin1.amplitude,sin1.freqHz,sin1.offset,sin1.phase,sin1.startTime,sin1.y,sin2.amplitude,sin2.freqHz,sin2.offset,sin2.phase,sin2.startTime,sin2.y,step1.height,step1.offset,step1.startTime,step1.y,step2.height,step2.offset,step2.startTime,step2.y,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport