Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Friction.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="der.mass.s.|der.mass.v.|der.stop1.s.|der.stop1.v.|der.stop2.s.|der.stop2.v.|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|time",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 0.9845/0.9845, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.167e-05/2.192e-05, allocations: 4 kB / 148.1 MB, free: 6.238 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05308/0.05313, allocations: 25.18 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1727/0.2259, allocations: 36.72 MB / 210 MB, free: 6.859 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001845/0.2261, allocations: 67.23 kB / 210.1 MB, free: 6.859 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04976/0.2759, allocations: 12.74 MB / 222.8 MB, free: 3.406 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.073e-06/0.2759, allocations: 0 / 222.8 MB, free: 3.406 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.605e-05/0.276, allocations: 11.75 kB / 222.8 MB, free: 3.406 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.003011/0.279, allocations: 1.113 MB / 223.9 MB, free: 2.652 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.279, allocations: 11.62 kB / 224 MB, free: 2.652 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002701/0.2793, allocations: 85.81 kB / 224 MB, free: 2.613 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00103/0.2804, allocations: 0.5663 MB / 224.6 MB, free: 2.293 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.22e-05/0.2804, allocations: 19.55 kB / 224.6 MB, free: 2.285 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002028/0.2806, allocations: 27.09 kB / 224.6 MB, free: 2.285 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003359/0.284, allocations: 2.122 MB / 226.8 MB, free: 1.941 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/0.2863, allocations: 1.381 MB / 228.2 MB, free: 1.57 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.641e-05/0.2863, allocations: 3.906 kB / 228.2 MB, free: 1.566 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001529/0.2865, allocations: 11.5 kB / 228.2 MB, free: 1.566 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.2865, allocations: 11.56 kB / 228.2 MB, free: 1.562 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007365/0.2939, allocations: 3.031 MB / 231.2 MB, free: 144 kB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001905/0.2959, allocations: 0.9865 MB / 232.2 MB, free: 15.36 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/0.2974, allocations: 0.8424 MB / 233 MB, free: 14.69 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.182e-05/0.2975, allocations: 8.172 kB / 233 MB, free: 14.68 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002064/0.2996, allocations: 1.188 MB / 234.2 MB, free: 13.66 MB / 186.7 MB Notification: Performance of pre-optimization done (n=44): time 4.164e-06/0.2996, allocations: 0 / 234.2 MB, free: 13.66 MB / 186.7 MB Notification: Performance of matching and sorting (n=46): time 0.01198/0.3116, allocations: 5.586 MB / 239.8 MB, free: 8.785 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.3117, allocations: 140.5 kB / 240 MB, free: 8.617 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/0.3132, allocations: 0.7534 MB / 240.7 MB, free: 8.039 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001728/0.3134, allocations: 41.64 kB / 240.7 MB, free: 7.996 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.3137, allocations: 313 kB / 241.1 MB, free: 7.77 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002566/0.314, allocations: 162.4 kB / 241.2 MB, free: 7.637 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/0.3141, allocations: 8 kB / 241.2 MB, free: 7.629 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.3143, allocations: 333.2 kB / 241.5 MB, free: 7.305 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001831/0.3161, allocations: 1.019 MB / 242.6 MB, free: 6.508 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001943/0.3181, allocations: 1.11 MB / 243.7 MB, free: 5.598 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001785/0.3199, allocations: 0.9438 MB / 244.6 MB, free: 4.824 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.636e-06/0.3199, allocations: 0 / 244.6 MB, free: 4.824 MB / 186.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.006792/0.3267, allocations: 3.156 MB / 247.8 MB, free: 1.66 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.555e-05/0.3268, allocations: 63.41 kB / 247.8 MB, free: 1.586 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3269, allocations: 0 / 247.8 MB, free: 1.586 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0186/0.3455, allocations: 11.42 MB / 259.3 MB, free: 6.133 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007657/0.3463, allocations: 119.9 kB / 259.4 MB, free: 6.016 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01303/0.3593, allocations: 7.363 MB / 266.7 MB, free: 14.39 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.3613, allocations: 303.7 kB / 267 MB, free: 14.1 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002413/0.3616, allocations: 112 kB / 267.1 MB, free: 13.99 MB / 218.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004438/0.362, allocations: 198.7 kB / 267.3 MB, free: 13.78 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002444/0.3623, allocations: 79.2 kB / 267.4 MB, free: 13.7 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002504/0.3626, allocations: 98.47 kB / 267.5 MB, free: 13.6 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.367e-06/0.3626, allocations: 4 kB / 267.5 MB, free: 13.6 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.85e-06/0.3626, allocations: 0 / 267.5 MB, free: 13.6 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.3626, allocations: 0 / 267.5 MB, free: 13.6 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009753/0.3724, allocations: 4.376 MB / 271.9 MB, free: 9.172 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.3724, allocations: 4 kB / 271.9 MB, free: 9.168 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000634/0.3731, allocations: 92.06 kB / 272 MB, free: 9.078 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0183/0.3914, allocations: 11.32 MB / 283.3 MB, free: 13.73 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002096/0.3916, allocations: 35.97 kB / 283.3 MB, free: 13.7 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01207/0.4037, allocations: 7.034 MB / 290.4 MB, free: 6.406 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.345e-06/0.4038, allocations: 3.953 kB / 290.4 MB, free: 6.402 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008501/0.4123, allocations: 4.162 MB / 294.5 MB, free: 2.188 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.4134, allocations: 408.1 kB / 294.9 MB, free: 1.77 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002491/0.4136, allocations: 24 kB / 295 MB, free: 1.746 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001807/0.4155, allocations: 307.7 kB / 295.3 MB, free: 1.445 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002103/0.4176, allocations: 0.651 MB / 295.9 MB, free: 0.793 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002063/0.4178, allocations: 108 kB / 296 MB, free: 0.6875 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0009625/0.4188, allocations: 0.585 MB / 296.6 MB, free: 108 kB / 234.7 MB Notification: Performance of sort global known variables: time 8.47e-07/0.4188, allocations: 0 / 296.6 MB, free: 108 kB / 234.7 MB Notification: Performance of remove unused functions: time 0.1151/0.5339, allocations: 186.7 kB / 296.8 MB, free: 82.87 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 11 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,$whenCondition2,stop2.mode,stop2.startBackward,stop2.startForward,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003608/0.5343, allocations: 153.6 kB / 296.9 MB, free: 82.78 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002592/0.5369, allocations: 1.697 MB / 298.6 MB, free: 82.45 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.238e-06/0.5369, allocations: 2.031 kB / 298.6 MB, free: 82.45 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001337/0.5383, allocations: 0.9858 MB / 299.6 MB, free: 82.12 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005855/0.5389, allocations: 52.52 kB / 299.7 MB, free: 82.12 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005164/0.5441, allocations: 2.003 MB / 301.7 MB, free: 81.79 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005277/0.5446, allocations: 0.9304 MB / 302.6 MB, free: 81.09 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002585/0.5449, allocations: 46 kB / 302.7 MB, free: 81.08 MB / 234.7 MB Notification: Performance of SimCode: time 1.517e-06/0.5449, allocations: 0 / 302.7 MB, free: 81.08 MB / 234.7 MB Notification: Performance of Templates: time 0.01951/0.5644, allocations: 12.91 MB / 315.6 MB, free: 77.11 MB / 234.7 MB "" Variables in the reference:der(mass.s),der(mass.v),der(stop1.s),der(stop1.v),der(stop2.s),der(stop2.v),mass.s,mass.v,stop1.s,stop1.v,stop2.s,stop2.v,time Variables in the result:_D_whenCondition1,_D_whenCondition2,fixed2.flange.f,fixed2.flange.s,fixed2.s0,force.f,force.flange.f,force.flange.s,force.s,force.s_support,force.useSupport,force2.f,force2.flange.f,force2.flange.s,force2.s,force2.s_support,force2.useSupport,mass.L,mass.a,der(mass.s),der(mass.v),mass.flange_a.f,mass.flange_a.s,mass.flange_b.f,mass.flange_b.s,mass.m,mass.s,mass.stateSelect,mass.v,sineForce.amplitude,sineForce.freqHz,sineForce.offset,sineForce.phase,sineForce.startTime,sineForce.y,spring.c,spring.f,spring.flange_a.f,spring.flange_a.s,spring.flange_b.f,spring.flange_b.s,spring.s_rel,spring.s_rel0,stop1.F_Coulomb,stop1.F_Stribeck,stop1.F_prop,stop1.L,stop1.a,stop1.a_relfric,der(stop1.s),der(stop1.v),stop1.f,stop1.f0,stop1.f0_max,stop1.fexp,stop1.flange_a.f,stop1.flange_a.s,stop1.flange_b.f,stop1.flange_b.s,stop1.free,stop1.locked,stop1.m,stop1.mode,stop1.s,stop1.sa,stop1.smax,stop1.smin,stop1.startBackward,stop1.startForward,stop1.stopped,stop1.v,stop1.v_relfric,stop1.v_small,stop2.F_Coulomb,stop2.F_Stribeck,stop2.F_prop,stop2.L,stop2.a,stop2.a_relfric,der(stop2.s),der(stop2.v),stop2.f,stop2.f0,stop2.f0_max,stop2.fexp,stop2.flange_a.f,stop2.flange_a.s,stop2.flange_b.f,stop2.flange_b.s,stop2.free,stop2.locked,stop2.m,stop2.mode,stop2.s,stop2.sa,stop2.smax,stop2.smin,stop2.startBackward,stop2.startForward,stop2.stopped,stop2.v,stop2.v_relfric,stop2.v_small,supportFriction.a,supportFriction.a_relfric,der(supportFriction.s),der(supportFriction.v),supportFriction.f,supportFriction.f0,supportFriction.f0_max,supportFriction.f_pos[1,1],supportFriction.f_pos[1,2],supportFriction.f_pos[10,1],supportFriction.f_pos[10,2],supportFriction.f_pos[11,1],supportFriction.f_pos[11,2],supportFriction.f_pos[12,1],supportFriction.f_pos[12,2],supportFriction.f_pos[13,1],supportFriction.f_pos[13,2],supportFriction.f_pos[14,1],supportFriction.f_pos[14,2],supportFriction.f_pos[15,1],supportFriction.f_pos[15,2],supportFriction.f_pos[16,1],supportFriction.f_pos[16,2],supportFriction.f_pos[17,1],supportFriction.f_pos[17,2],supportFriction.f_pos[18,1],supportFriction.f_pos[18,2],supportFriction.f_pos[19,1],supportFriction.f_pos[19,2],supportFriction.f_pos[2,1],supportFriction.f_pos[2,2],supportFriction.f_pos[20,1],supportFriction.f_pos[20,2],supportFriction.f_pos[21,1],supportFriction.f_pos[21,2],supportFriction.f_pos[22,1],supportFriction.f_pos[22,2],supportFriction.f_pos[23,1],supportFriction.f_pos[23,2],supportFriction.f_pos[24,1],supportFriction.f_pos[24,2],supportFriction.f_pos[25,1],supportFriction.f_pos[25,2],supportFriction.f_pos[26,1],supportFriction.f_pos[26,2],supportFriction.f_pos[27,1],supportFriction.f_pos[27,2],supportFriction.f_pos[28,1],supportFriction.f_pos[28,2],supportFriction.f_pos[29,1],supportFriction.f_pos[29,2],supportFriction.f_pos[3,1],supportFriction.f_pos[3,2],supportFriction.f_pos[30,1],supportFriction.f_pos[30,2],supportFriction.f_pos[31,1],supportFriction.f_pos[31,2],supportFriction.f_pos[32,1],supportFriction.f_pos[32,2],supportFriction.f_pos[33,1],supportFriction.f_pos[33,2],supportFriction.f_pos[34,1],supportFriction.f_pos[34,2],supportFriction.f_pos[35,1],supportFriction.f_pos[35,2],supportFriction.f_pos[36,1],supportFriction.f_pos[36,2],supportFriction.f_pos[37,1],supportFriction.f_pos[37,2],supportFriction.f_pos[38,1],supportFriction.f_pos[38,2],supportFriction.f_pos[39,1],supportFriction.f_pos[39,2],supportFriction.f_pos[4,1],supportFriction.f_pos[4,2],supportFriction.f_pos[40,1],supportFriction.f_pos[40,2],supportFriction.f_pos[41,1],supportFriction.f_pos[41,2],supportFriction.f_pos[42,1],supportFriction.f_pos[42,2],supportFriction.f_pos[43,1],supportFriction.f_pos[43,2],supportFriction.f_pos[44,1],supportFriction.f_pos[44,2],supportFriction.f_pos[45,1],supportFriction.f_pos[45,2],supportFriction.f_pos[46,1],supportFriction.f_pos[46,2],supportFriction.f_pos[47,1],supportFriction.f_pos[47,2],supportFriction.f_pos[48,1],supportFriction.f_pos[48,2],supportFriction.f_pos[49,1],supportFriction.f_pos[49,2],supportFriction.f_pos[5,1],supportFriction.f_pos[5,2],supportFriction.f_pos[50,1],supportFriction.f_pos[50,2],supportFriction.f_pos[6,1],supportFriction.f_pos[6,2],supportFriction.f_pos[7,1],supportFriction.f_pos[7,2],supportFriction.f_pos[8,1],supportFriction.f_pos[8,2],supportFriction.f_pos[9,1],supportFriction.f_pos[9,2],supportFriction.flange_a.f,supportFriction.flange_a.s,supportFriction.flange_b.f,supportFriction.flange_b.s,supportFriction.free,supportFriction.locked,supportFriction.mode,supportFriction.peak,supportFriction.s,supportFriction.s_a,supportFriction.s_b,supportFriction.s_support,supportFriction.sa,supportFriction.startBackward,supportFriction.startForward,supportFriction.useSupport,supportFriction.v,supportFriction.v_relfric,supportFriction.v_small,time