Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001848/0.001848, allocations: 180.8 kB / 23.71 MB, free: 4.695 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_4.0.0_Modelica.Mechanics.Translational.Examples.Friction")
translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_4.0.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 51.91 kB / 370.9 MB, free: 9.379 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2675, allocations: 52.17 MB / 423.1 MB, free: 14.71 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004622/0.2722, allocations: 3.047 MB / 426.1 MB, free: 11.64 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0021/0.2743, allocations: 1.173 MB / 427.3 MB, free: 10.47 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.2744, allocations: 7.938 kB / 427.3 MB, free: 10.46 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003788/0.2748, allocations: 83.23 kB / 427.4 MB, free: 10.38 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002102/0.275, allocations: 115 kB / 427.5 MB, free: 10.27 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0008416/0.2759, allocations: 414 kB / 427.9 MB, free: 9.863 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0008058/0.2767, allocations: 0.7995 MB / 428.7 MB, free: 9.059 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/0.2768, allocations: 65.75 kB / 428.8 MB, free: 8.988 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004912/0.2773, allocations: 375.1 kB / 429.2 MB, free: 8.621 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001576/0.2789, allocations: 1.346 MB / 430.5 MB, free: 7.27 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001422/0.2791, allocations: 68 kB / 430.6 MB, free: 7.203 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002382/0.2793, allocations: 116 kB / 430.7 MB, free: 7.09 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002481/0.2795, allocations: 231.8 kB / 430.9 MB, free: 6.863 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003418/0.2799, allocations: 350.1 kB / 431.2 MB, free: 6.52 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0009574/0.2808, allocations: 0.8807 MB / 432.1 MB, free: 5.645 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.2808, allocations: 4 kB / 432.1 MB, free: 5.641 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.382e-06/0.2808, allocations: 4 kB / 432.1 MB, free: 5.637 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 8.345e-06/0.2809, allocations: 0 / 432.1 MB, free: 5.637 MB / 334.1 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.004095/0.2849, allocations: 1.412 MB / 433.5 MB, free: 4.18 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.285, allocations: 8.031 kB / 433.6 MB, free: 4.172 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.2852, allocations: 92.34 kB / 433.6 MB, free: 4.082 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006817/0.2858, allocations: 370.2 kB / 434 MB, free: 3.691 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.283e-05/0.2859, allocations: 29.38 kB / 434 MB, free: 3.664 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 9.864e-05/0.286, allocations: 36.38 kB / 434.1 MB, free: 3.629 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.002078/0.2881, allocations: 1.154 MB / 435.2 MB, free: 2.457 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.2881, allocations: 8 kB / 435.2 MB, free: 2.449 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.401e-05/0.2882, allocations: 16 kB / 435.2 MB, free: 2.434 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.2882, allocations: 11.98 kB / 435.3 MB, free: 2.422 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002956/0.2911, allocations: 1.74 MB / 437 MB, free: 0.6836 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00462/0.2957, allocations: 2.44 MB / 439.4 MB, free: 14.17 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001803/0.2976, allocations: 0.8905 MB / 440.3 MB, free: 13.27 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001207/0.2988, allocations: 0.7006 MB / 441 MB, free: 12.56 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 6.259e-05/0.2988, allocations: 8.484 kB / 441 MB, free: 12.55 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001539/0.3004, allocations: 0.9084 MB / 441.9 MB, free: 11.62 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=47): time 1.943e-06/0.3004, allocations: 0 / 441.9 MB, free: 11.62 MB / 350.1 MB
Notification: Performance of matching and sorting (n=49): time 0.01265/0.313, allocations: 5.41 MB / 447.4 MB, free: 6.145 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.3131, allocations: 89.11 kB / 447.4 MB, free: 6.039 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.3144, allocations: 0.9141 MB / 448.4 MB, free: 5.117 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0001206/0.3145, allocations: 45.69 kB / 448.4 MB, free: 5.066 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0003134/0.3148, allocations: 300.7 kB / 448.7 MB, free: 4.766 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002011/0.315, allocations: 174.7 kB / 448.9 MB, free: 4.594 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002689/0.3153, allocations: 126.2 kB / 449 MB, free: 4.465 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002444/0.3155, allocations: 378.8 kB / 449.4 MB, free: 4.086 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001489/0.317, allocations: 0.8447 MB / 450.2 MB, free: 3.238 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001509/0.3185, allocations: 0.9363 MB / 451.1 MB, free: 2.277 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002342/0.3208, allocations: 1.472 MB / 452.6 MB, free: 0.7773 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3209, allocations: 0 / 452.6 MB, free: 0.7773 MB / 350.1 MB
Notification: Performance of matching and sorting (n=77) (initialization): time 0.004227/0.3251, allocations: 2.483 MB / 455.1 MB, free: 14.28 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.89e-05/0.3251, allocations: 8 kB / 455.1 MB, free: 14.27 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.3251, allocations: 4 kB / 455.1 MB, free: 14.27 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.002325/0.3274, allocations: 1.9 MB / 457 MB, free: 12.36 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005618/0.328, allocations: 111.8 kB / 457.1 MB, free: 12.25 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0089/0.3369, allocations: 6.494 MB / 463.6 MB, free: 5.496 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/0.3386, allocations: 231.6 kB / 463.8 MB, free: 5.27 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.3387, allocations: 23.98 kB / 463.9 MB, free: 5.246 MB / 366.1 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,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1)
 * 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 (not torn): 0
 * Torn equation systems: 3
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 3 systems
   {(1,6), (1,5), (1,5)}
Notification: Performance of prepare postOptimizeDAE: time 0.0004796/0.3392, allocations: 256.3 kB / 464.1 MB, free: 4.988 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002294/0.3394, allocations: 75.53 kB / 464.2 MB, free: 4.914 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002304/0.3396, allocations: 102.2 kB / 464.3 MB, free: 4.809 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.3397, allocations: 4 kB / 464.3 MB, free: 4.805 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.3397, allocations: 11.92 kB / 464.3 MB, free: 4.793 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3397, allocations: 0 / 464.3 MB, free: 4.793 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004761/0.3444, allocations: 3.062 MB / 467.4 MB, free: 1.668 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.3444, allocations: 0 / 467.4 MB, free: 1.668 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005338/0.345, allocations: 87.94 kB / 467.5 MB, free: 1.582 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.002192/0.3472, allocations: 1.865 MB / 469.3 MB, free: 15.7 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.982e-05/0.3472, allocations: 27.95 kB / 469.3 MB, free: 15.68 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008171/0.3554, allocations: 6.124 MB / 475.5 MB, free: 9.293 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.3554, allocations: 3.938 kB / 475.5 MB, free: 9.289 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005597/0.361, allocations: 3.233 MB / 478.7 MB, free: 6.027 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0003986/0.3614, allocations: 127.4 kB / 478.8 MB, free: 5.902 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.3616, allocations: 27.98 kB / 478.9 MB, free: 5.875 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001884/0.3634, allocations: 263.6 kB / 479.1 MB, free: 5.617 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001471/0.3649, allocations: 0.581 MB / 479.7 MB, free: 5.035 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.83e-05/0.365, allocations: 31.97 kB / 479.7 MB, free: 5.004 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.0008035/0.3658, allocations: 0.6748 MB / 480.4 MB, free: 4.336 MB / 382.1 MB
Notification: Performance of sort global known variables: time 1.3e-07/0.3658, allocations: 4 kB / 480.4 MB, free: 4.332 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0008482/0.3666, allocations: 180 kB / 480.6 MB, free: 4.156 MB / 382.1 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 (not torn): 0
 * Torn equation systems: 3
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 3 systems
   {(1,5), (1,5), (1,5)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.000338/0.367, allocations: 155 kB / 480.7 MB, free: 3.996 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.003429/0.3704, allocations: 1.873 MB / 482.6 MB, free: 2.102 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3704, allocations: 0 / 482.6 MB, free: 2.102 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.00196/0.3724, allocations: 1.082 MB / 483.7 MB, free: 0.9961 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006653/0.373, allocations: 66.95 kB / 483.8 MB, free: 0.9297 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004771/0.3778, allocations: 1.993 MB / 485.7 MB, free: 14.89 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000692/0.3785, allocations: 0.926 MB / 486.7 MB, free: 13.95 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0002412/0.3787, allocations: 39.28 kB / 486.7 MB, free: 13.91 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.3789, allocations: 43.42 kB / 486.8 MB, free: 13.87 MB / 398.1 MB
Notification: Performance of SimCode: time 1.032e-06/0.3789, allocations: 0 / 486.8 MB, free: 13.87 MB / 398.1 MB
Notification: Performance of Templates: time 0.04131/0.4202, allocations: 25.03 MB / 0.4998 GB, free: 4.844 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.351782548241317]