Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.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: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 2.004/2.004, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003328/0.000333, allocations: 11.94 kB / 264.6 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09066/0.09101, allocations: 44.5 MB / 309.1 MB, free: 348 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003889/0.09495, allocations: 2.376 MB / 311.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002696/0.09769, allocations: 1.147 MB / 312.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002393/0.09797, allocations: 7.938 kB / 312.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003523/0.09834, allocations: 59.66 kB / 312.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003535/0.09871, allocations: 139.6 kB / 312.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.09998, allocations: 335.2 kB / 313.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008634/0.1009, allocations: 460.2 kB / 313.6 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002209/0.1011, allocations: 77.47 kB / 313.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000584/0.1017, allocations: 315.1 kB / 313.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002134/0.1038, allocations: 1.408 MB / 315.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001906/0.1041, allocations: 36 kB / 315.4 MB, free: 9.977 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003003/0.1044, allocations: 75.94 kB / 315.5 MB, free: 9.902 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002837/0.1047, allocations: 195.4 kB / 315.7 MB, free: 9.711 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001792/0.1049, allocations: 129.3 kB / 315.8 MB, free: 9.578 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009277/0.1058, allocations: 0.5964 MB / 316.4 MB, free: 8.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.1058, allocations: 0 / 316.4 MB, free: 8.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1058, allocations: 0 / 316.4 MB, free: 8.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.1058, allocations: 4 kB / 316.4 MB, free: 8.977 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.005929/0.1118, allocations: 1.313 MB / 317.7 MB, free: 7.613 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.1118, allocations: 8.031 kB / 317.7 MB, free: 7.605 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002692/0.1121, allocations: 87.02 kB / 317.8 MB, free: 7.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007508/0.1129, allocations: 398.7 kB / 318.2 MB, free: 7.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.489e-05/0.113, allocations: 29 kB / 318.2 MB, free: 7.059 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.1131, allocations: 36 kB / 318.2 MB, free: 7.023 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002986/0.1161, allocations: 1.169 MB / 319.4 MB, free: 5.848 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.551e-05/0.1162, allocations: 3.906 kB / 319.4 MB, free: 5.844 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/0.1163, allocations: 16 kB / 319.4 MB, free: 5.828 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.1163, allocations: 8 kB / 319.4 MB, free: 5.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004486/0.1208, allocations: 1.779 MB / 321.2 MB, free: 4.039 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006808/0.1276, allocations: 2.549 MB / 323.8 MB, free: 1.414 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002802/0.1305, allocations: 0.938 MB / 324.7 MB, free: 468 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001069/0.1306, allocations: 11.98 kB / 324.7 MB, free: 456 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002383/0.133, allocations: 0.9123 MB / 325.6 MB, free: 15.51 MB / 282.7 MB Notification: Performance of pre-optimization done (n=47): time 3.346e-06/0.133, allocations: 0 / 325.6 MB, free: 15.51 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.01961/0.1526, allocations: 6.022 MB / 331.6 MB, free: 9.328 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.1528, allocations: 93.03 kB / 331.7 MB, free: 9.219 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001755/0.1545, allocations: 0.9025 MB / 332.6 MB, free: 8.305 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002096/0.1548, allocations: 49.69 kB / 332.7 MB, free: 8.25 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003397/0.1551, allocations: 296.3 kB / 333 MB, free: 7.957 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002435/0.1554, allocations: 165.9 kB / 333.1 MB, free: 7.793 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.858e-05/0.1555, allocations: 16 kB / 333.2 MB, free: 7.777 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002053/0.1557, allocations: 382.7 kB / 333.5 MB, free: 7.395 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00216/0.1578, allocations: 0.8564 MB / 334.4 MB, free: 6.535 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002209/0.1601, allocations: 0.9557 MB / 335.3 MB, free: 5.551 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001885/0.162, allocations: 0.7731 MB / 336.1 MB, free: 4.777 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.162, allocations: 0 / 336.1 MB, free: 4.777 MB / 282.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006233/0.1682, allocations: 2.498 MB / 338.6 MB, free: 2.262 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/0.1683, allocations: 8 kB / 338.6 MB, free: 2.254 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.1683, allocations: 3.953 kB / 338.6 MB, free: 2.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003218/0.1716, allocations: 1.9 MB / 340.5 MB, free: 348 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.1726, allocations: 123.8 kB / 340.6 MB, free: 224 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/0.1844, allocations: 6.463 MB / 347.1 MB, free: 9.453 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002686/0.1872, allocations: 299.7 kB / 347.4 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.1873, allocations: 23.98 kB / 347.4 MB, free: 9.137 MB / 298.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 (61): * Single equations (assignments): 58 * 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: 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.0005467/0.1879, allocations: 260.3 kB / 347.7 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002118/0.1881, allocations: 75.36 kB / 347.8 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002755/0.1884, allocations: 102.2 kB / 347.9 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.1884, allocations: 3.984 kB / 347.9 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.1884, allocations: 8 kB / 347.9 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004425/0.1889, allocations: 208.1 kB / 348.1 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/0.1891, allocations: 23.98 kB / 348.1 MB, free: 8.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003217/0.1923, allocations: 363.6 kB / 348.4 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006962/0.193, allocations: 203.6 kB / 348.6 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007644/0.2007, allocations: 2.379 MB / 351 MB, free: 5.48 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.006428/0.2072, allocations: 2.717 MB / 353.7 MB, free: 2.746 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002047/0.2092, allocations: 0.7262 MB / 354.5 MB, free: 2.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001078/0.2103, allocations: 0.6748 MB / 355.1 MB, free: 1.348 MB / 298.7 MB Notification: Performance of Backend: time 8.52e-07/0.2104, allocations: 4 kB / 355.1 MB, free: 1.344 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003597/0.214, allocations: 1.339 MB / 356.5 MB, free: 15.97 MB / 314.7 MB Notification: Performance of SimCode: time 0.003569/0.2176, allocations: 2.173 MB / 358.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of Templates: time 0.323/0.5406, allocations: 17.93 MB / 376.6 MB, free: 65.81 MB / 314.7 MB "" Variables in the reference:time,mass.s,mass.v,stop1.s,stop1.v,stop2.s,stop2.v,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward,supportFriction.mode,supportFriction.startBackward,supportFriction.startForward Variables in the result:fixed2.flange.s,fixed2.s0,mass.L,mass.m,mass.s,mass.stateSelect,mass.v,sineForce.amplitude,sineForce.freqHz,sineForce.offset,sineForce.phase,sineForce.startTime,spring.c,spring.flange_a.s,spring.s_rel0,stop1.F_Coulomb,stop1.F_Stribeck,stop1.F_prop,stop1.L,stop1.fexp,stop1.m,stop1.mode,stop1.s,stop1.smax,stop1.smin,stop1.startBackward,stop1.startForward,stop1.v,stop1.v_small,stop2.F_Coulomb,stop2.F_Stribeck,stop2.F_prop,stop2.L,stop2.fexp,stop2.m,stop2.mode,stop2.s,stop2.smax,stop2.smin,stop2.startBackward,stop2.startForward,stop2.v,stop2.v_small,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.mode,supportFriction.peak,supportFriction.startBackward,supportFriction.startForward,supportFriction.v_small,time