Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 1.047/1.047, allocations: 111.1 MB / 127.3 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002622/0.0002624, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05263/0.05292, allocations: 25.16 MB / 184 MB, free: 6.027 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2174/0.2704, allocations: 37.47 MB / 221.5 MB, free: 5.703 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.2706, allocations: 70.77 kB / 221.6 MB, free: 5.691 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0616/0.3322, allocations: 12.83 MB / 234.4 MB, free: 13.64 MB / 186.7 MB Notification: Performance of FrontEnd: time 4.708e-06/0.3323, allocations: 4 kB / 234.4 MB, free: 13.63 MB / 186.7 MB Notification: Performance of Transformations before backend: time 3.599e-05/0.3324, allocations: 8 kB / 234.4 MB, free: 13.62 MB / 186.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.005058/0.3374, allocations: 1.212 MB / 235.6 MB, free: 12.39 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.3375, allocations: 8.031 kB / 235.6 MB, free: 12.38 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000598/0.3381, allocations: 87.08 kB / 235.7 MB, free: 12.3 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001862/0.34, allocations: 0.5739 MB / 236.3 MB, free: 11.75 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.3401, allocations: 33.06 kB / 236.3 MB, free: 11.73 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003912/0.3406, allocations: 40.75 kB / 236.4 MB, free: 11.7 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004629/0.3452, allocations: 1.523 MB / 237.9 MB, free: 10.45 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.969e-05/0.3453, allocations: 0 / 237.9 MB, free: 10.45 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001892/0.3455, allocations: 26.81 kB / 237.9 MB, free: 10.43 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.3455, allocations: 8 kB / 237.9 MB, free: 10.42 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006832/0.3523, allocations: 2.319 MB / 240.2 MB, free: 8.52 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01103/0.3634, allocations: 3.103 MB / 243.3 MB, free: 5.852 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003887/0.3674, allocations: 1.121 MB / 244.5 MB, free: 4.934 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000155/0.3676, allocations: 8.453 kB / 244.5 MB, free: 4.93 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003985/0.3716, allocations: 1.284 MB / 245.8 MB, free: 3.812 MB / 186.7 MB Notification: Performance of pre-optimization done (n=44): time 5.12e-06/0.3716, allocations: 0 / 245.8 MB, free: 3.812 MB / 186.7 MB Notification: Performance of matching and sorting (n=46): time 0.0297/0.4013, allocations: 7.962 MB / 253.7 MB, free: 12.62 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.4015, allocations: 140.5 kB / 253.9 MB, free: 12.45 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002067/0.4036, allocations: 0.8672 MB / 254.7 MB, free: 11.57 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003941/0.404, allocations: 53.7 kB / 254.8 MB, free: 11.52 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003095/0.4043, allocations: 314.8 kB / 255.1 MB, free: 11.2 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003692/0.4047, allocations: 169.9 kB / 255.3 MB, free: 11.04 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.4049, allocations: 20 kB / 255.3 MB, free: 11.02 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.4051, allocations: 334.8 kB / 255.6 MB, free: 10.68 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003456/0.4085, allocations: 1.122 MB / 256.7 MB, free: 9.559 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003607/0.4122, allocations: 1.209 MB / 257.9 MB, free: 8.316 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003411/0.4157, allocations: 1.092 MB / 259 MB, free: 7.211 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.4157, allocations: 0 / 259 MB, free: 7.211 MB / 202.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.01116/0.4269, allocations: 3.449 MB / 262.5 MB, free: 3.734 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.999e-05/0.427, allocations: 59.41 kB / 262.5 MB, free: 3.664 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.427, allocations: 0 / 262.5 MB, free: 3.664 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02143/0.4485, allocations: 11.49 MB / 274 MB, free: 8.148 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.4496, allocations: 127.8 kB / 274.1 MB, free: 8.023 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01653/0.4662, allocations: 7.138 MB / 281.3 MB, free: 0.5898 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003084/0.4693, allocations: 303.7 kB / 281.6 MB, free: 300 kB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004579/0.4698, allocations: 112 kB / 281.7 MB, free: 188 kB / 218.7 MB 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 () * Number of clocked 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.0009412/0.4708, allocations: 315.4 kB / 282 MB, free: 15.85 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003391/0.4711, allocations: 79.16 kB / 282.1 MB, free: 15.77 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003172/0.4714, allocations: 98.17 kB / 282.2 MB, free: 15.68 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/0.4715, allocations: 15.98 kB / 282.2 MB, free: 15.66 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.4715, allocations: 0 / 282.2 MB, free: 15.66 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.4715, allocations: 0 / 282.2 MB, free: 15.66 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01465/0.4862, allocations: 4.574 MB / 286.8 MB, free: 11.01 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.408e-05/0.4862, allocations: 4.25 kB / 286.8 MB, free: 11.01 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009407/0.4872, allocations: 87.88 kB / 286.8 MB, free: 10.92 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1897/0.6769, allocations: 11.37 MB / 298.2 MB, free: 78.66 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003172/0.6773, allocations: 47.61 kB / 298.3 MB, free: 78.66 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01327/0.6906, allocations: 6.85 MB / 305.1 MB, free: 75.67 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.6906, allocations: 1.281 kB / 305.1 MB, free: 75.67 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01404/0.7047, allocations: 4.481 MB / 309.6 MB, free: 75 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001348/0.7061, allocations: 408.4 kB / 310 MB, free: 74.84 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003758/0.7065, allocations: 25.17 kB / 310 MB, free: 74.84 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002927/0.7094, allocations: 317.5 kB / 310.3 MB, free: 74.82 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002857/0.7123, allocations: 0.6593 MB / 311 MB, free: 74.74 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000318/0.7127, allocations: 103.7 kB / 311.1 MB, free: 74.72 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001057/0.7137, allocations: 0.6253 MB / 311.7 MB, free: 74.47 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.7138, allocations: 1.781 kB / 311.7 MB, free: 74.47 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001133/0.7149, allocations: 215.8 kB / 311.9 MB, free: 74.45 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) * Number of clocked states: 0 () * 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.0003461/0.7153, allocations: 153.1 kB / 312.1 MB, free: 74.36 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.004306/0.7196, allocations: 1.923 MB / 314 MB, free: 73.68 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.7196, allocations: 0 / 314 MB, free: 73.68 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002362/0.722, allocations: 1.095 MB / 315.1 MB, free: 73.17 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007443/0.7228, allocations: 63.23 kB / 315.2 MB, free: 73.14 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006798/0.7296, allocations: 2.271 MB / 317.4 MB, free: 72.18 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005248/0.7302, allocations: 0.9333 MB / 318.4 MB, free: 71.46 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003445/0.7305, allocations: 51.14 kB / 318.4 MB, free: 71.44 MB / 234.7 MB Notification: Performance of SimCode: time 1.173e-06/0.7306, allocations: 0 / 318.4 MB, free: 71.44 MB / 234.7 MB Notification: Performance of Templates: time 0.02334/0.7539, allocations: 12.95 MB / 331.4 MB, free: 59.78 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:fixed2.flange.f,fixed2.flange.s,fixed2.s0,force.f,force.flange.f,force.flange.s,force.s,force2.f,force2.flange.f,force2.flange.s,force2.s,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.sa,supportFriction.startBackward,supportFriction.startForward,supportFriction.v,supportFriction.v_relfric,supportFriction.v_small,time