Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00185/0.00185, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001784/0.001784, allocations: 211.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.47/1.47, allocations: 230.5 MB / 258.2 MB, free: 8.004 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 67.88 kB / 379 MB, free: 2.609 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2413, allocations: 53.37 MB / 432.4 MB, free: 6.918 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00453/0.2458, allocations: 3.147 MB / 435.5 MB, free: 3.758 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002244/0.2481, allocations: 1.348 MB / 436.9 MB, free: 2.406 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.2482, allocations: 11.94 kB / 436.9 MB, free: 2.395 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004251/0.2486, allocations: 103.2 kB / 437 MB, free: 2.293 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002239/0.2489, allocations: 118.9 kB / 437.1 MB, free: 2.176 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0008221/0.2497, allocations: 421.8 kB / 437.5 MB, free: 1.766 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0009041/0.2506, allocations: 0.827 MB / 438.4 MB, free: 0.9336 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.2508, allocations: 68.66 kB / 438.4 MB, free: 0.8672 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0005811/0.2514, allocations: 391.1 kB / 438.8 MB, free: 496 kB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001808/0.2532, allocations: 1.467 MB / 440.3 MB, free: 15.01 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001455/0.2533, allocations: 68 kB / 440.3 MB, free: 14.95 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002782/0.2536, allocations: 139.9 kB / 440.5 MB, free: 14.81 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0002531/0.2539, allocations: 231.8 kB / 440.7 MB, free: 14.58 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003694/0.2542, allocations: 354.1 kB / 441 MB, free: 14.23 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001107/0.2553, allocations: 0.922 MB / 442 MB, free: 13.31 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2553, allocations: 0 / 442 MB, free: 13.31 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.613e-06/0.2553, allocations: 3.938 kB / 442 MB, free: 13.31 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 9.638e-06/0.2553, allocations: 0 / 442 MB, free: 13.31 MB / 350.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 90
 * Number of variables: 90
Notification: Performance of Generate backend data structure: time 0.003861/0.2592, allocations: 1.439 MB / 443.4 MB, free: 11.82 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.2593, allocations: 8.031 kB / 443.4 MB, free: 11.82 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005314/0.2598, allocations: 104.4 kB / 443.5 MB, free: 11.71 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006952/0.2605, allocations: 374.2 kB / 443.9 MB, free: 11.32 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.833e-05/0.2605, allocations: 29.38 kB / 443.9 MB, free: 11.3 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.2606, allocations: 36.38 kB / 444 MB, free: 11.26 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.2622, allocations: 0.6419 MB / 444.6 MB, free: 10.61 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.2622, allocations: 7.953 kB / 444.6 MB, free: 10.6 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.762e-05/0.2623, allocations: 16 kB / 444.6 MB, free: 10.58 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.2623, allocations: 8 kB / 444.6 MB, free: 10.57 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002005/0.2643, allocations: 0.6944 MB / 445.3 MB, free: 9.879 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003762/0.268, allocations: 1.635 MB / 447 MB, free: 8.176 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.2695, allocations: 486.1 kB / 447.4 MB, free: 7.684 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0008363/0.2703, allocations: 289.6 kB / 447.7 MB, free: 7.395 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 6.955e-05/0.2704, allocations: 8 kB / 447.7 MB, free: 7.387 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0012/0.2716, allocations: 482.4 kB / 448.2 MB, free: 6.898 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=48): time 2.645e-06/0.2716, allocations: 4 kB / 448.2 MB, free: 6.895 MB / 350.1 MB
Notification: Performance of matching and sorting (n=50): time 0.008957/0.2805, allocations: 2.43 MB / 450.6 MB, free: 4.398 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.811e-05/0.2806, allocations: 89.05 kB / 450.7 MB, free: 4.293 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/0.2817, allocations: 0.9142 MB / 451.6 MB, free: 3.367 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 9.473e-05/0.2818, allocations: 45.69 kB / 451.7 MB, free: 3.316 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002594/0.2821, allocations: 312.6 kB / 452 MB, free: 3.004 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.2822, allocations: 178.6 kB / 452.2 MB, free: 2.828 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002727/0.2825, allocations: 122.2 kB / 452.3 MB, free: 2.703 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001999/0.2827, allocations: 386.7 kB / 452.6 MB, free: 2.316 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000946/0.2836, allocations: 325.1 kB / 453 MB, free: 1.996 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009843/0.2846, allocations: 411 kB / 453.4 MB, free: 1.57 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.2861, allocations: 0.5126 MB / 453.9 MB, free: 1.027 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.2861, allocations: 4 kB / 453.9 MB, free: 1.023 MB / 350.1 MB
Notification: Performance of matching and sorting (n=78) (initialization): time 0.002963/0.2891, allocations: 0.9832 MB / 454.9 MB, free: 28 kB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.2891, allocations: 11.94 kB / 454.9 MB, free: 16 kB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.2891, allocations: 0 / 454.9 MB, free: 16 kB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.2904, allocations: 0.5491 MB / 455.4 MB, free: 15.45 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005448/0.2909, allocations: 111.8 kB / 455.5 MB, free: 15.34 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00702/0.2979, allocations: 4.54 MB / 460.1 MB, free: 10.55 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.2995, allocations: 231.7 kB / 460.3 MB, free: 10.33 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.005e-05/0.2996, allocations: 23.98 kB / 460.3 MB, free: 10.3 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,7), (1,5), (1,5)}
Notification: Performance of prepare postOptimizeDAE: time 0.0004888/0.3, allocations: 262 kB / 460.6 MB, free: 10.04 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.3002, allocations: 79.52 kB / 460.7 MB, free: 9.965 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00021/0.3004, allocations: 102.2 kB / 460.8 MB, free: 9.859 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.3004, allocations: 8 kB / 460.8 MB, free: 9.852 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.3004, allocations: 0 / 460.8 MB, free: 9.852 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.3004, allocations: 3.984 kB / 460.8 MB, free: 9.848 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003197/0.3036, allocations: 1.373 MB / 462.1 MB, free: 8.414 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3036, allocations: 4.062 kB / 462.1 MB, free: 8.41 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004794/0.3041, allocations: 83.88 kB / 462.2 MB, free: 8.328 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/0.3051, allocations: 0.5177 MB / 462.7 MB, free: 7.801 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.069e-05/0.3052, allocations: 19.97 kB / 462.8 MB, free: 7.781 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006254/0.3114, allocations: 4.155 MB / 466.9 MB, free: 3.367 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.275e-06/0.3114, allocations: 7.969 kB / 466.9 MB, free: 3.359 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003886/0.3153, allocations: 1.263 MB / 468.2 MB, free: 2.059 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.000436/0.3158, allocations: 139.5 kB / 468.3 MB, free: 1.922 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.3159, allocations: 20 kB / 468.3 MB, free: 1.902 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001609/0.3175, allocations: 272 kB / 468.6 MB, free: 1.637 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001561/0.319, allocations: 0.5771 MB / 469.2 MB, free: 1.059 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.907e-05/0.3191, allocations: 27.97 kB / 469.2 MB, free: 1.031 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0008599/0.32, allocations: 0.6709 MB / 469.9 MB, free: 376 kB / 366.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.32, allocations: 0 / 469.9 MB, free: 376 kB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0008897/0.3209, allocations: 187.9 kB / 470.1 MB, free: 188 kB / 366.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,6)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.001532/0.3224, allocations: 399.5 kB / 470.5 MB, free: 15.92 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.002566/0.325, allocations: 0.9217 MB / 471.4 MB, free: 14.97 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.325, allocations: 3.984 kB / 471.4 MB, free: 14.97 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001588/0.3266, allocations: 0.6462 MB / 472 MB, free: 14.3 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007117/0.3273, allocations: 85.55 kB / 472.1 MB, free: 14.21 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004478/0.3317, allocations: 1.911 MB / 474 MB, free: 12.26 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000605/0.3324, allocations: 0.9335 MB / 475 MB, free: 11.3 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0002594/0.3326, allocations: 43.28 kB / 475 MB, free: 11.27 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001523/0.3328, allocations: 51.41 kB / 475.1 MB, free: 11.21 MB / 382.1 MB
Notification: Performance of SimCode: time 1.042e-06/0.3328, allocations: 0 / 475.1 MB, free: 11.21 MB / 382.1 MB
Notification: Performance of Templates: time 0.02645/0.3592, allocations: 16.5 MB / 491.6 MB, free: 10.73 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.168342664837837]