Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 2.064/2.064, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003573/0.0003575, allocations: 12 kB / 233.8 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08342/0.08381, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4278/0.5117, allocations: 71.04 MB / 343.7 MB, free: 2.371 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.512, allocations: 77.83 kB / 343.7 MB, free: 2.332 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07276/0.5848, allocations: 13.35 MB / 357.1 MB, free: 6.488 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5848, allocations: 0 / 357.1 MB, free: 6.488 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.655e-05/0.5849, allocations: 12 kB / 357.1 MB, free: 6.477 MB / 282.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.005308/0.5902, allocations: 1.209 MB / 358.3 MB, free: 5.254 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.5903, allocations: 8.031 kB / 358.3 MB, free: 5.246 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004793/0.5908, allocations: 87.06 kB / 358.4 MB, free: 5.16 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001737/0.5925, allocations: 0.5875 MB / 359 MB, free: 4.598 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.745e-05/0.5927, allocations: 32.5 kB / 359 MB, free: 4.578 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002917/0.593, allocations: 45.44 kB / 359.1 MB, free: 4.547 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004666/0.5976, allocations: 1.537 MB / 360.6 MB, free: 3.285 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.409e-05/0.5977, allocations: 0 / 360.6 MB, free: 3.285 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002057/0.5979, allocations: 31.12 kB / 360.6 MB, free: 3.266 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.598, allocations: 11.94 kB / 360.6 MB, free: 3.254 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007057/0.6051, allocations: 2.332 MB / 363 MB, free: 1.352 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01467/0.6198, allocations: 3.133 MB / 366.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00644/0.6263, allocations: 1.147 MB / 367.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001944/0.6265, allocations: 4 kB / 367.3 MB, free: 13.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005678/0.6322, allocations: 1.203 MB / 368.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 6.783e-06/0.6323, allocations: 0 / 368.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.03942/0.6717, allocations: 7.887 MB / 376.3 MB, free: 5.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.544e-05/0.6719, allocations: 85.05 kB / 376.4 MB, free: 5.648 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002038/0.6739, allocations: 0.8808 MB / 377.3 MB, free: 4.961 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003993/0.6744, allocations: 52.44 kB / 377.4 MB, free: 4.914 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003201/0.6747, allocations: 292.2 kB / 377.6 MB, free: 4.727 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003973/0.6751, allocations: 174.4 kB / 377.8 MB, free: 4.582 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.6753, allocations: 17.38 kB / 377.8 MB, free: 4.574 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002361/0.6755, allocations: 386.6 kB / 378.2 MB, free: 4.215 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00335/0.6789, allocations: 1.121 MB / 379.3 MB, free: 3.316 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003536/0.6825, allocations: 1.211 MB / 380.5 MB, free: 2.312 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003151/0.6857, allocations: 1.051 MB / 381.6 MB, free: 1.449 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.6857, allocations: 3.953 kB / 381.6 MB, free: 1.445 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01054/0.6963, allocations: 3.467 MB / 385.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.385e-05/0.6964, allocations: 4 kB / 385.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.6964, allocations: 4 kB / 385.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02848/0.7249, allocations: 11.49 MB / 396.6 MB, free: 3.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001606/0.7265, allocations: 127.9 kB / 396.7 MB, free: 2.965 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02275/0.7493, allocations: 7.122 MB / 403.8 MB, free: 11.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004324/0.7537, allocations: 311.7 kB / 404.1 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006286/0.7544, allocations: 112 kB / 404.2 MB, free: 11.13 MB / 330.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.001211/0.7557, allocations: 256.4 kB / 404.5 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004782/0.7562, allocations: 83.16 kB / 404.6 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004151/0.7566, allocations: 106.2 kB / 404.7 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.771e-05/0.7566, allocations: 15.89 kB / 404.7 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.7566, allocations: 0 / 404.7 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.7567, allocations: 3.984 kB / 404.7 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02142/0.7781, allocations: 4.593 MB / 409.3 MB, free: 5.996 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-05/0.7782, allocations: 7.953 kB / 409.3 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009845/0.7792, allocations: 95.94 kB / 409.4 MB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02936/0.8085, allocations: 11.37 MB / 420.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005128/0.8091, allocations: 43.95 kB / 420.8 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02007/0.8292, allocations: 6.859 MB / 427.6 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.106e-05/0.8293, allocations: 7.969 kB / 427.7 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.33/1.159, allocations: 4.488 MB / 432.1 MB, free: 116.8 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002185/1.162, allocations: 405.8 kB / 432.5 MB, free: 116.7 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006302/1.162, allocations: 31 kB / 432.6 MB, free: 116.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004358/1.167, allocations: 313.1 kB / 432.9 MB, free: 116.7 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00454/1.171, allocations: 0.663 MB / 433.5 MB, free: 116.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005805/1.172, allocations: 96.48 kB / 433.6 MB, free: 116.7 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00188/1.174, allocations: 0.634 MB / 434.3 MB, free: 116.6 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.174, allocations: 0 / 434.3 MB, free: 116.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002027/1.176, allocations: 225.8 kB / 434.5 MB, free: 116.6 MB / 346.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: 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 (34): * Single equations (assignments): 31 * 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.0005234/1.176, allocations: 153.3 kB / 434.6 MB, free: 116.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007119/1.184, allocations: 1.828 MB / 436.5 MB, free: 116.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/1.184, allocations: 0 / 436.5 MB, free: 116.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004326/1.188, allocations: 1.042 MB / 437.5 MB, free: 116.1 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/1.189, allocations: 60.69 kB / 437.6 MB, free: 116.1 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/1.2, allocations: 2.281 MB / 439.8 MB, free: 115.4 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008318/1.201, allocations: 0.9323 MB / 440.8 MB, free: 114.7 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007953/1.202, allocations: 68.36 kB / 440.8 MB, free: 114.7 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000436/1.202, allocations: 45.11 kB / 440.9 MB, free: 114.6 MB / 346.7 MB Notification: Performance of SimCode: time 2.114e-06/1.202, allocations: 0 / 440.9 MB, free: 114.6 MB / 346.7 MB Notification: Performance of Templates: time 0.04822/1.25, allocations: 14.92 MB / 455.8 MB, free: 109.1 MB / 346.7 MB