Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008927/0.0008927, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008144/0.0008144, allocations: 162.6 kB / 25.45 MB, free: 9.348 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8447/0.8447, allocations: 158.6 MB / 187.2 MB, free: 3.055 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 299.7 MB, free: 6.926 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.149e-05/2.286e-05, allocations: 6.281 kB / 299.7 MB, free: 6.918 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002701/0.002724, allocations: 2.81 MB / 302.5 MB, free: 4.086 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.003915, allocations: 0.9588 MB / 303.5 MB, free: 3.117 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.004056, allocations: 4 kB / 303.5 MB, free: 3.113 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002289/0.004285, allocations: 67.31 kB / 303.5 MB, free: 3.047 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00018/0.004465, allocations: 142.8 kB / 303.7 MB, free: 2.906 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004548/0.00492, allocations: 231.5 kB / 303.9 MB, free: 2.68 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004502/0.00537, allocations: 0.6547 MB / 304.6 MB, free: 2.023 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/0.005543, allocations: 88.45 kB / 304.6 MB, free: 1.934 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000329/0.005872, allocations: 387.2 kB / 305 MB, free: 1.555 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004844/0.006357, allocations: 247.4 kB / 305.3 MB, free: 1.312 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.117e-05/0.006408, allocations: 51.98 kB / 305.3 MB, free: 1.262 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001328/0.006541, allocations: 95.95 kB / 305.4 MB, free: 1.168 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.517e-05/0.006636, allocations: 123.6 kB / 305.5 MB, free: 1.047 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.00675, allocations: 179.6 kB / 305.7 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004903/0.007241, allocations: 0.6426 MB / 306.3 MB, free: 232 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.007243, allocations: 0 / 306.3 MB, free: 232 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.007244, allocations: 4 kB / 306.3 MB, free: 228 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.00725, allocations: 0 / 306.3 MB, free: 228 kB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0008596/0.008109, allocations: 0.7154 MB / 307.1 MB, free: 15.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.008145, allocations: 15.98 kB / 307.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.669e-05/0.008222, allocations: 52.59 kB / 307.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.008542, allocations: 280.4 kB / 307.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.008566, allocations: 29.38 kB / 307.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.524e-05/0.008621, allocations: 44.36 kB / 307.5 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000536/0.009157, allocations: 474.9 kB / 307.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.00918, allocations: 4.141 kB / 307.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.167e-05/0.009212, allocations: 16.38 kB / 308 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.00922, allocations: 15.94 kB / 308 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000561/0.009781, allocations: 475.7 kB / 308.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.01098, allocations: 0.9277 MB / 309.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000516/0.01149, allocations: 364.5 kB / 309.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003145/0.01181, allocations: 246.2 kB / 310 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.01184, allocations: 8.5 kB / 310 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.01186, allocations: 39 kB / 310 MB, free: 12.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.884e-06/0.01186, allocations: 0 / 310 MB, free: 12.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.002882/0.01474, allocations: 2.041 MB / 312.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.01478, allocations: 59.84 kB / 312.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004367/0.01522, allocations: 269.8 kB / 312.4 MB, free: 10.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.422e-05/0.01525, allocations: 41.69 kB / 312.4 MB, free: 9.961 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.404e-05/0.01534, allocations: 193.5 kB / 312.6 MB, free: 9.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.01544, allocations: 202.4 kB / 312.8 MB, free: 9.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.01555, allocations: 106.3 kB / 312.9 MB, free: 9.461 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.02e-05/0.01564, allocations: 342.8 kB / 313.2 MB, free: 9.117 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002958/0.01594, allocations: 245.2 kB / 313.5 MB, free: 8.875 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.01625, allocations: 284.8 kB / 313.8 MB, free: 8.594 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004648/0.01671, allocations: 414 kB / 314.2 MB, free: 8.184 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.01671, allocations: 4 kB / 314.2 MB, free: 8.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009805/0.0177, allocations: 0.7874 MB / 315 MB, free: 7.379 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.01771, allocations: 8.031 kB / 315 MB, free: 7.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.01772, allocations: 0 / 315 MB, free: 7.371 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000569/0.01829, allocations: 0.4973 MB / 315.5 MB, free: 6.867 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.01846, allocations: 87.89 kB / 315.5 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008227/0.01928, allocations: 1.409 MB / 317 MB, free: 5.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.0195, allocations: 80 kB / 317 MB, free: 5.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.875e-05/0.01953, allocations: 19.98 kB / 317.1 MB, free: 5.223 MB / 298.7 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 (57): * Single equations (assignments): 55 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001389/0.01967, allocations: 161.7 kB / 317.2 MB, free: 5.055 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.876e-05/0.01972, allocations: 47.7 kB / 317.3 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.335e-05/0.01978, allocations: 55.61 kB / 317.3 MB, free: 4.957 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.01979, allocations: 4 kB / 317.3 MB, free: 4.953 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.01979, allocations: 4 kB / 317.3 MB, free: 4.949 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.0198, allocations: 7.984 kB / 317.3 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00155/0.02135, allocations: 1.282 MB / 318.6 MB, free: 3.605 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.02135, allocations: 0 / 318.6 MB, free: 3.605 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001876/0.02154, allocations: 83.83 kB / 318.7 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004616/0.022, allocations: 489.6 kB / 319.2 MB, free: 3.039 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.556e-05/0.02203, allocations: 19.97 kB / 319.2 MB, free: 3.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007823/0.02282, allocations: 1.374 MB / 320.6 MB, free: 1.594 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.02282, allocations: 3.984 kB / 320.6 MB, free: 1.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.02402, allocations: 1.088 MB / 321.7 MB, free: 472 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.02414, allocations: 87.75 kB / 321.7 MB, free: 384 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.606e-05/0.02419, allocations: 16.12 kB / 321.8 MB, free: 368 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.02438, allocations: 59.92 kB / 321.8 MB, free: 308 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.02451, allocations: 104.2 kB / 321.9 MB, free: 204 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.02453, allocations: 27.95 kB / 321.9 MB, free: 176 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001207/0.02466, allocations: 193.3 kB / 322.1 MB, free: 15.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02466, allocations: 0 / 322.1 MB, free: 15.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002848/0.02494, allocations: 135.9 kB / 322.3 MB, free: 15.85 MB / 314.7 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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001982/0.02514, allocations: 135.1 kB / 322.4 MB, free: 15.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007299/0.02587, allocations: 0.5576 MB / 323 MB, free: 15.14 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.02587, allocations: 0 / 323 MB, free: 15.14 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003845/0.02625, allocations: 322.7 kB / 323.3 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003558/0.02661, allocations: 73.28 kB / 323.3 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001961/0.02857, allocations: 1.336 MB / 324.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001317/0.0287, allocations: 216.9 kB / 324.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.788e-05/0.02878, allocations: 40.48 kB / 324.9 MB, free: 13.1 MB / 314.7 MB Notification: Performance of SimCode: time 6.11e-07/0.02878, allocations: 0 / 324.9 MB, free: 13.1 MB / 314.7 MB Notification: Performance of Templates: time 0.007708/0.03649, allocations: 8.724 MB / 333.7 MB, free: 4.363 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.861148303374648]