Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.001626/0.001626, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001748/0.001748, allocations: 189.5 kB / 23.72 MB, free: 4.68 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.419/1.419, 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.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches")
translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 47.92 kB / 370.9 MB, free: 9.363 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2706, allocations: 52.19 MB / 423.1 MB, free: 14.7 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004659/0.2753, allocations: 3.138 MB / 426.3 MB, free: 11.54 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002173/0.2775, allocations: 1.044 MB / 427.3 MB, free: 10.49 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.2776, allocations: 7.938 kB / 427.3 MB, free: 10.48 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000262/0.2779, allocations: 79.23 kB / 427.4 MB, free: 10.41 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002982/0.2782, allocations: 162.7 kB / 427.5 MB, free: 10.25 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0006662/0.2789, allocations: 283.5 kB / 427.8 MB, free: 9.969 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0008205/0.2797, allocations: 0.7919 MB / 428.6 MB, free: 9.172 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002214/0.2799, allocations: 97.56 kB / 428.7 MB, free: 9.07 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004755/0.2804, allocations: 366.9 kB / 429.1 MB, free: 8.711 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004948/0.2809, allocations: 398.6 kB / 429.5 MB, free: 8.32 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001036/0.281, allocations: 60 kB / 429.5 MB, free: 8.262 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002308/0.2812, allocations: 111.9 kB / 429.6 MB, free: 8.152 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.2814, allocations: 155.5 kB / 429.8 MB, free: 8 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003227/0.2817, allocations: 302.5 kB / 430.1 MB, free: 7.703 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0008856/0.2826, allocations: 0.7289 MB / 430.8 MB, free: 6.977 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2826, allocations: 0 / 430.8 MB, free: 6.977 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.172e-06/0.2826, allocations: 0 / 430.8 MB, free: 6.977 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 9.588e-06/0.2826, allocations: 0 / 430.8 MB, free: 6.977 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: 106
 * Number of variables: 106
Notification: Performance of Generate backend data structure: time 0.001949/0.2846, allocations: 0.8204 MB / 431.6 MB, free: 6.125 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.2846, allocations: 16.92 kB / 431.6 MB, free: 6.109 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001411/0.2848, allocations: 60.56 kB / 431.7 MB, free: 6.051 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005994/0.2854, allocations: 310.1 kB / 432 MB, free: 5.723 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.2855, allocations: 29.38 kB / 432 MB, free: 5.691 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.2856, allocations: 48.33 kB / 432.1 MB, free: 5.645 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.2869, allocations: 0.6229 MB / 432.7 MB, free: 5.008 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/0.2869, allocations: 8 kB / 432.7 MB, free: 5 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.983e-05/0.287, allocations: 12 kB / 432.7 MB, free: 4.988 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.287, allocations: 12 kB / 432.7 MB, free: 4.977 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.2883, allocations: 0.6012 MB / 433.3 MB, free: 4.375 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002663/0.291, allocations: 1.282 MB / 434.6 MB, free: 3.043 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.292, allocations: 433.1 kB / 435 MB, free: 2.609 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0006166/0.2927, allocations: 294.2 kB / 435.3 MB, free: 2.32 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.984e-05/0.2927, allocations: 4.5 kB / 435.3 MB, free: 2.316 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.295e-05/0.2928, allocations: 39.06 kB / 435.4 MB, free: 2.266 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=58): time 4.108e-06/0.2928, allocations: 7.984 kB / 435.4 MB, free: 2.258 MB / 334.1 MB
Notification: Performance of matching and sorting (n=64): time 0.00688/0.2996, allocations: 2.486 MB / 437.9 MB, free: 15.73 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.2997, allocations: 56.06 kB / 437.9 MB, free: 15.66 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003916/0.3001, allocations: 337.6 kB / 438.2 MB, free: 15.32 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 8.891e-05/0.3002, allocations: 49.69 kB / 438.3 MB, free: 15.27 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.3003, allocations: 201.5 kB / 438.5 MB, free: 15.06 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002185/0.3006, allocations: 234.1 kB / 438.7 MB, free: 14.83 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/0.3008, allocations: 130.6 kB / 438.8 MB, free: 14.7 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001789/0.301, allocations: 366.7 kB / 439.2 MB, free: 14.33 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006794/0.3016, allocations: 317.8 kB / 439.5 MB, free: 14.02 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007625/0.3024, allocations: 381 kB / 439.9 MB, free: 13.64 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.3035, allocations: 0.5067 MB / 440.4 MB, free: 13.13 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3035, allocations: 0 / 440.4 MB, free: 13.13 MB / 350.1 MB
Notification: Performance of matching and sorting (n=85) (initialization): time 0.001912/0.3054, allocations: 0.9156 MB / 441.3 MB, free: 12.2 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.3054, allocations: 4 kB / 441.3 MB, free: 12.2 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.3055, allocations: 0 / 441.3 MB, free: 12.2 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001487/0.3069, allocations: 0.7287 MB / 442 MB, free: 11.47 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004119/0.3074, allocations: 103.8 kB / 442.1 MB, free: 11.37 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.3089, allocations: 1.087 MB / 443.2 MB, free: 10.25 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007276/0.3097, allocations: 111.8 kB / 443.3 MB, free: 10.14 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.113e-05/0.3097, allocations: 23.98 kB / 443.4 MB, free: 10.12 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 24 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (64):
 * Single equations (assignments): 63
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * 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): 1 system
   {(3,19)}
Notification: Performance of prepare postOptimizeDAE: time 0.0003393/0.3101, allocations: 187.8 kB / 443.5 MB, free: 9.93 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.3102, allocations: 51.67 kB / 443.6 MB, free: 9.879 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001754/0.3104, allocations: 68.75 kB / 443.7 MB, free: 9.809 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.3104, allocations: 11.98 kB / 443.7 MB, free: 9.797 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.3104, allocations: 0 / 443.7 MB, free: 9.797 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3104, allocations: 0 / 443.7 MB, free: 9.797 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003048/0.3134, allocations: 1.531 MB / 445.2 MB, free: 8.215 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3134, allocations: 0 / 445.2 MB, free: 8.215 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004761/0.3139, allocations: 87.89 kB / 445.3 MB, free: 8.129 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001439/0.3153, allocations: 0.7125 MB / 446 MB, free: 7.414 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.355e-05/0.3154, allocations: 27.97 kB / 446 MB, free: 7.387 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00161/0.317, allocations: 1.075 MB / 447.1 MB, free: 6.289 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.317, allocations: 0 / 447.1 MB, free: 6.289 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002848/0.3199, allocations: 1.296 MB / 448.4 MB, free: 4.973 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.00031/0.3202, allocations: 111.6 kB / 448.5 MB, free: 4.863 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.3203, allocations: 20 kB / 448.5 MB, free: 4.844 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007153/0.321, allocations: 103.8 kB / 448.6 MB, free: 4.742 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002914/0.3213, allocations: 128.4 kB / 448.8 MB, free: 4.617 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.363e-05/0.3214, allocations: 31.95 kB / 448.8 MB, free: 4.586 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002726/0.3216, allocations: 231.2 kB / 449 MB, free: 4.359 MB / 350.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.3216, allocations: 0 / 449 MB, free: 4.359 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.000608/0.3223, allocations: 163.9 kB / 449.2 MB, free: 4.199 MB / 350.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel)
 * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode)
 * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (43):
 * Single equations (assignments): 42
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * 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): 1 system
   {(3,19)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.000284/0.3225, allocations: 147 kB / 449.3 MB, free: 4.043 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.001775/0.3243, allocations: 0.7303 MB / 450 MB, free: 3.309 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3243, allocations: 0 / 450 MB, free: 3.309 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0009118/0.3252, allocations: 410.1 kB / 450.4 MB, free: 2.914 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007371/0.326, allocations: 97.69 kB / 450.5 MB, free: 2.82 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002923/0.3289, allocations: 1.401 MB / 451.9 MB, free: 1.391 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005146/0.3294, allocations: 0.844 MB / 452.8 MB, free: 0.5195 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0002633/0.3297, allocations: 48.16 kB / 452.8 MB, free: 484 kB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.3298, allocations: 43.42 kB / 452.9 MB, free: 440 kB / 350.1 MB
Notification: Performance of SimCode: time 1.162e-06/0.3298, allocations: 0 / 452.9 MB, free: 440 kB / 350.1 MB
Notification: Performance of Templates: time 0.02437/0.3542, allocations: 14.27 MB / 467.1 MB, free: 2.207 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.015620642341673]