Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 2.345/2.345, allocations: 194.8 MB / 212.3 MB, free: 3.02 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.0003539, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09578/0.09616, allocations: 44.51 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4888/0.585, allocations: 76.34 MB / 385.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/0.5853, allocations: 74.59 kB / 385.4 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06758/0.6529, allocations: 13.58 MB / 399 MB, free: 13.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.653, allocations: 3.781 kB / 399 MB, free: 13.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.266e-05/0.653, allocations: 11.38 kB / 399 MB, free: 13.62 MB / 314.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.004701/0.6577, allocations: 1.176 MB / 400.2 MB, free: 12.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.6578, allocations: 11.53 kB / 400.2 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003861/0.6582, allocations: 80.58 kB / 400.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001164/0.6594, allocations: 497.6 kB / 400.7 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.598e-05/0.6595, allocations: 38.2 kB / 400.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002108/0.6597, allocations: 33.59 kB / 400.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003235/0.6629, allocations: 0.962 MB / 401.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.319e-05/0.6631, allocations: 7.781 kB / 401.8 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001587/0.6632, allocations: 17.67 kB / 401.8 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.6633, allocations: 7.625 kB / 401.8 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005678/0.6689, allocations: 1.2 MB / 403 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01346/0.6825, allocations: 2.416 MB / 405.4 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004389/0.6869, allocations: 0.7506 MB / 406.2 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002767/0.6873, allocations: 15.27 kB / 406.2 MB, free: 10.72 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004134/0.6914, allocations: 0.8204 MB / 407 MB, free: 10.44 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 4.429e-06/0.6915, allocations: 4 kB / 407 MB, free: 10.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.02194/0.7134, allocations: 5.121 MB / 412.1 MB, free: 8.625 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.7135, allocations: 88.8 kB / 412.2 MB, free: 8.527 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009533/0.7145, allocations: 0.6128 MB / 412.8 MB, free: 8.297 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003851/0.7149, allocations: 51.19 kB / 412.9 MB, free: 8.262 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002377/0.7152, allocations: 310.1 kB / 413.2 MB, free: 8.062 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003388/0.7155, allocations: 168.8 kB / 413.3 MB, free: 7.949 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.7156, allocations: 15.53 kB / 413.4 MB, free: 7.949 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.065e-05/0.7157, allocations: 333.5 kB / 413.7 MB, free: 7.629 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00219/0.7179, allocations: 0.5942 MB / 414.3 MB, free: 7.531 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002246/0.7202, allocations: 0.6849 MB / 415 MB, free: 7.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001937/0.7222, allocations: 0.5125 MB / 415.5 MB, free: 7.254 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.7222, allocations: 0 / 415.5 MB, free: 7.254 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006718/0.729, allocations: 1.818 MB / 417.3 MB, free: 6.879 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.002e-05/0.729, allocations: 7.875 kB / 417.3 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.336e-05/0.7291, allocations: 11.72 kB / 417.3 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007553/0.7367, allocations: 4.184 MB / 421.5 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.7377, allocations: 121.7 kB / 421.6 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/0.7487, allocations: 5.417 MB / 427 MB, free: 1.449 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00293/0.7517, allocations: 305 kB / 427.3 MB, free: 1.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004369/0.7522, allocations: 100.5 kB / 427.4 MB, free: 1.344 MB / 314.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): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0009774/0.7532, allocations: 253.7 kB / 427.7 MB, free: 1.203 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003542/0.7535, allocations: 74.02 kB / 427.7 MB, free: 1.164 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007445/0.761, allocations: 1.571 MB / 429.3 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/0.7611, allocations: 7.922 kB / 429.3 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.7611, allocations: 0 / 429.3 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.785e-05/0.7611, allocations: 0 / 429.3 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01237/0.7735, allocations: 2.629 MB / 432 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.689e-05/0.7736, allocations: 3.875 kB / 432 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/0.7748, allocations: 90.06 kB / 432 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01256/0.7874, allocations: 4.211 MB / 436.3 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002903/0.7878, allocations: 35.72 kB / 436.3 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01513/0.8029, allocations: 5.147 MB / 441.4 MB, free: 7.672 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-05/0.803, allocations: 11.97 kB / 441.5 MB, free: 7.66 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01353/0.8165, allocations: 2.445 MB / 443.9 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/0.818, allocations: 312.6 kB / 444.2 MB, free: 5.473 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004635/0.8185, allocations: 32.7 kB / 444.2 MB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004057/0.8226, allocations: 301.1 kB / 444.5 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00394/0.8266, allocations: 0.6541 MB / 445.2 MB, free: 4.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004972/0.8271, allocations: 95.95 kB / 445.3 MB, free: 4.426 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00149/0.8286, allocations: 0.5185 MB / 445.8 MB, free: 3.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.72e-07/0.8287, allocations: 0 / 445.8 MB, free: 3.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002224/0.8309, allocations: 243.9 kB / 446 MB, free: 3.672 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * 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 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007058/0.8316, allocations: 155.8 kB / 446.2 MB, free: 3.508 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007235/0.8389, allocations: 1.525 MB / 447.7 MB, free: 1.953 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.585e-05/0.839, allocations: 4.375 kB / 447.7 MB, free: 1.949 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004313/0.8433, allocations: 0.8813 MB / 448.6 MB, free: 1.047 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.8446, allocations: 54.97 kB / 448.6 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01137/0.856, allocations: 2.267 MB / 450.9 MB, free: 14.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001/0.8571, allocations: 0.9378 MB / 451.9 MB, free: 13.71 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004212/0.8576, allocations: 31.42 kB / 451.9 MB, free: 13.68 MB / 346.7 MB Notification: Performance of SimCode: time 1.332e-06/0.8576, allocations: 3.938 kB / 451.9 MB, free: 13.68 MB / 346.7 MB Notification: Performance of Templates: time 0.04711/0.9047, allocations: 14.96 MB / 466.9 MB, free: 14.67 MB / 362.7 MB