Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.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.001791/0.001791, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.002151/0.002151, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 230.3 MB / 258 MB, free: 8.246 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction")
translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002032, allocations: 63.89 kB / 378.8 MB, free: 2.887 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2642, allocations: 53.36 MB / 432.1 MB, free: 7.086 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005219/0.2694, allocations: 3.213 MB / 435.3 MB, free: 3.863 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002294/0.2717, allocations: 1.138 MB / 436.5 MB, free: 2.719 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002945/0.272, allocations: 7.938 kB / 436.5 MB, free: 2.711 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003773/0.2724, allocations: 87.22 kB / 436.6 MB, free: 2.625 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0005785/0.273, allocations: 190.6 kB / 436.7 MB, free: 2.438 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005367/0.2735, allocations: 203.6 kB / 436.9 MB, free: 2.238 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0008839/0.2744, allocations: 0.6667 MB / 437.6 MB, free: 1.57 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002527/0.2746, allocations: 96.69 kB / 437.7 MB, free: 1.469 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0005482/0.2752, allocations: 307 kB / 438 MB, free: 1.168 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0005303/0.2757, allocations: 326.8 kB / 438.3 MB, free: 0.8477 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.2759, allocations: 55.94 kB / 438.4 MB, free: 0.793 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002605/0.2761, allocations: 108 kB / 438.5 MB, free: 0.6875 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001959/0.2763, allocations: 135.6 kB / 438.6 MB, free: 0.5547 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003243/0.2766, allocations: 270.6 kB / 438.9 MB, free: 296 kB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0008646/0.2775, allocations: 0.6476 MB / 439.5 MB, free: 15.64 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2775, allocations: 3.984 kB / 439.5 MB, free: 15.64 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.132e-06/0.2775, allocations: 0 / 439.5 MB, free: 15.64 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 1.633e-05/0.2775, allocations: 0 / 439.5 MB, free: 15.64 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: 102
 * Number of variables: 102
Notification: Performance of Generate backend data structure: time 0.001839/0.2794, allocations: 0.7698 MB / 440.3 MB, free: 14.84 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.2794, allocations: 8.031 kB / 440.3 MB, free: 14.83 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002725/0.2797, allocations: 72.55 kB / 440.4 MB, free: 14.76 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006037/0.2803, allocations: 282.3 kB / 440.7 MB, free: 14.46 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.25e-05/0.2803, allocations: 29.38 kB / 440.7 MB, free: 14.43 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.2804, allocations: 52.31 kB / 440.7 MB, free: 14.38 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.2815, allocations: 478.5 kB / 441.2 MB, free: 13.91 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.2815, allocations: 3.984 kB / 441.2 MB, free: 13.9 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.641e-05/0.2815, allocations: 19.98 kB / 441.2 MB, free: 13.88 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.2815, allocations: 16 kB / 441.2 MB, free: 13.87 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.2827, allocations: 463.7 kB / 441.7 MB, free: 13.42 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002387/0.2851, allocations: 1.099 MB / 442.8 MB, free: 12.27 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.000998/0.2861, allocations: 396.6 kB / 443.2 MB, free: 11.87 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0005905/0.2866, allocations: 246.2 kB / 443.4 MB, free: 11.63 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.677e-05/0.2867, allocations: 16.44 kB / 443.4 MB, free: 11.61 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.2867, allocations: 39.05 kB / 443.5 MB, free: 11.57 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=55): time 2.195e-06/0.2867, allocations: 0 / 443.5 MB, free: 11.57 MB / 350.1 MB
Notification: Performance of matching and sorting (n=61): time 0.005914/0.2926, allocations: 2.022 MB / 445.5 MB, free: 9.492 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.2927, allocations: 59.91 kB / 445.6 MB, free: 9.422 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004012/0.2931, allocations: 300.6 kB / 445.9 MB, free: 9.117 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 7.09e-05/0.2932, allocations: 45.7 kB / 445.9 MB, free: 9.066 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.2933, allocations: 189.6 kB / 446.1 MB, free: 8.875 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.2936, allocations: 214.2 kB / 446.3 MB, free: 8.664 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002593/0.2938, allocations: 114.3 kB / 446.4 MB, free: 8.547 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.000215/0.294, allocations: 350.8 kB / 446.7 MB, free: 8.195 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005637/0.2946, allocations: 229.1 kB / 447 MB, free: 7.973 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005961/0.2952, allocations: 276.8 kB / 447.2 MB, free: 7.695 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0009755/0.2962, allocations: 394.1 kB / 447.6 MB, free: 7.305 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2962, allocations: 0 / 447.6 MB, free: 7.305 MB / 350.1 MB
Notification: Performance of matching and sorting (n=75) (initialization): time 0.002016/0.2982, allocations: 0.7445 MB / 448.4 MB, free: 6.547 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.2982, allocations: 11.94 kB / 448.4 MB, free: 6.535 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.2982, allocations: 3.984 kB / 448.4 MB, free: 6.531 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0009879/0.2992, allocations: 369.4 kB / 448.7 MB, free: 6.164 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003581/0.2996, allocations: 83.89 kB / 448.8 MB, free: 6.082 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/0.3012, allocations: 1.405 MB / 450.2 MB, free: 4.625 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005822/0.3017, allocations: 76.06 kB / 450.3 MB, free: 4.551 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-05/0.3018, allocations: 19.98 kB / 450.3 MB, free: 4.531 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 2
 * Number of states: 0 ()
 * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (55):
 * Single equations (assignments): 53
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 2
 * 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): 2 systems
   {(1,10), (1,10)}
Notification: Performance of prepare postOptimizeDAE: time 0.000285/0.3021, allocations: 170.3 kB / 450.5 MB, free: 4.355 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.3022, allocations: 47.66 kB / 450.5 MB, free: 4.309 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001656/0.3024, allocations: 64.52 kB / 450.6 MB, free: 4.246 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.3024, allocations: 8 kB / 450.6 MB, free: 4.238 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.3024, allocations: 4 kB / 450.6 MB, free: 4.234 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.3024, allocations: 3.984 kB / 450.6 MB, free: 4.23 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003208/0.3056, allocations: 1.41 MB / 452 MB, free: 2.754 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3056, allocations: 0 / 452 MB, free: 2.754 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004313/0.306, allocations: 83.89 kB / 452.1 MB, free: 2.672 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0008561/0.3069, allocations: 345.6 kB / 452.4 MB, free: 2.328 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.26e-05/0.307, allocations: 23.97 kB / 452.5 MB, free: 2.305 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001509/0.3085, allocations: 1.37 MB / 453.8 MB, free: 0.8828 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3085, allocations: 0 / 453.8 MB, free: 0.8828 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/0.3107, allocations: 1.042 MB / 454.9 MB, free: 15.79 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002574/0.311, allocations: 95.69 kB / 455 MB, free: 15.7 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.3111, allocations: 27.92 kB / 455 MB, free: 15.67 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000503/0.3116, allocations: 59.94 kB / 455.1 MB, free: 15.61 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002365/0.3119, allocations: 104.2 kB / 455.2 MB, free: 15.51 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.498e-05/0.3119, allocations: 23.98 kB / 455.2 MB, free: 15.49 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0002739/0.3122, allocations: 215.1 kB / 455.4 MB, free: 15.28 MB / 366.1 MB
Notification: Performance of sort global known variables: time 6.1e-08/0.3122, allocations: 0 / 455.4 MB, free: 15.28 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0005488/0.3127, allocations: 135.9 kB / 455.5 MB, free: 15.14 MB / 366.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 6
 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w)
 * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free)
 * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (43):
 * Single equations (assignments): 41
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 2
 * 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): 2 systems
   {(1,8), (1,10)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.00144/0.3142, allocations: 389.5 kB / 455.9 MB, free: 14.88 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.001493/0.3157, allocations: 0.542 MB / 456.5 MB, free: 14.34 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3157, allocations: 0 / 456.5 MB, free: 14.34 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008743/0.3165, allocations: 330.5 kB / 456.8 MB, free: 14.02 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007584/0.3173, allocations: 96.23 kB / 456.9 MB, free: 13.93 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004531/0.3218, allocations: 1.487 MB / 458.4 MB, free: 12.4 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005559/0.3224, allocations: 0.8323 MB / 459.2 MB, free: 11.54 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0001948/0.3226, allocations: 35.41 kB / 459.2 MB, free: 11.5 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.3227, allocations: 47.41 kB / 459.3 MB, free: 11.45 MB / 366.1 MB
Notification: Performance of SimCode: time 7.91e-07/0.3227, allocations: 0 / 459.3 MB, free: 11.45 MB / 366.1 MB
Notification: Performance of Templates: time 0.01955/0.3423, allocations: 10.6 MB / 469.9 MB, free: 0.8984 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.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: 4.945810545235872]