Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.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.002518/0.002518, allocations: 95.86 kB / 20.96 MB, free: 3.461 MB / 18.57 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.002888/0.002888, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 18.57 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.572/1.572, allocations: 173.4 MB / 200.8 MB, free: 9.332 MB / 186.7 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.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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.46e-05/2.592e-05, allocations: 5.828 kB / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004974/0.005, allocations: 3.004 MB / 270.3 MB, free: 3.734 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002499/0.007499, allocations: 0.9193 MB / 271.2 MB, free: 2.809 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002635/0.007762, allocations: 11.94 kB / 271.3 MB, free: 2.797 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002915/0.008054, allocations: 63.31 kB / 271.3 MB, free: 2.734 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003455/0.008399, allocations: 150.8 kB / 271.5 MB, free: 2.586 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006951/0.009094, allocations: 223.5 kB / 271.7 MB, free: 2.367 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008077/0.009902, allocations: 0.6508 MB / 272.3 MB, free: 1.715 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002226/0.01012, allocations: 84.7 kB / 272.4 MB, free: 1.629 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00059/0.01071, allocations: 395.2 kB / 272.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004238/0.01114, allocations: 243.4 kB / 273 MB, free: 1.004 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.676e-05/0.01124, allocations: 48 kB / 273.1 MB, free: 0.957 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002229/0.01146, allocations: 99.94 kB / 273.2 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001756/0.01163, allocations: 131.5 kB / 273.3 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002523/0.01189, allocations: 183.5 kB / 273.5 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009735/0.01286, allocations: 0.6425 MB / 274.1 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.01286, allocations: 0 / 274.1 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.01287, allocations: 0 / 274.1 MB, free: 15.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.368e-06/0.01287, allocations: 0 / 274.1 MB, free: 15.91 MB / 266.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.001663/0.01454, allocations: 0.8151 MB / 274.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.01458, allocations: 8.922 kB / 275 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000201/0.01478, allocations: 84.61 kB / 275 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000508/0.01529, allocations: 271.3 kB / 275.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.464e-05/0.01533, allocations: 29.38 kB / 275.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.714e-05/0.01543, allocations: 48.33 kB / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000975/0.01641, allocations: 466.8 kB / 275.8 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.01643, allocations: 4.188 kB / 275.8 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.423e-05/0.01648, allocations: 16.38 kB / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.0165, allocations: 15.94 kB / 275.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.01751, allocations: 447.7 kB / 276.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.01983, allocations: 1.029 MB / 277.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000919/0.02074, allocations: 376.3 kB / 277.7 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005483/0.02129, allocations: 233.1 kB / 277.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.97e-05/0.02135, allocations: 12.5 kB / 277.9 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.0214, allocations: 37.89 kB / 278 MB, free: 11.91 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.454e-06/0.0214, allocations: 0 / 278 MB, free: 11.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.005646/0.02705, allocations: 1.985 MB / 280 MB, free: 9.867 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.02711, allocations: 63.91 kB / 280 MB, free: 9.793 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004221/0.02753, allocations: 352.2 kB / 280.4 MB, free: 9.434 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.203e-05/0.02761, allocations: 49.69 kB / 280.4 MB, free: 9.379 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002087/0.02782, allocations: 236.2 kB / 280.7 MB, free: 9.141 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002259/0.02804, allocations: 218.2 kB / 280.9 MB, free: 8.926 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002381/0.02828, allocations: 127.9 kB / 281 MB, free: 8.793 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003392/0.02862, allocations: 0.5313 MB / 281.5 MB, free: 8.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000507/0.02913, allocations: 229.2 kB / 281.7 MB, free: 8.027 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005933/0.02972, allocations: 302.5 kB / 282 MB, free: 7.723 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008564/0.03058, allocations: 431.7 kB / 282.5 MB, free: 7.293 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.03058, allocations: 0 / 282.5 MB, free: 7.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001932/0.03251, allocations: 0.7969 MB / 283.3 MB, free: 6.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.03254, allocations: 12.03 kB / 283.3 MB, free: 6.469 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.03255, allocations: 0 / 283.3 MB, free: 6.469 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.03362, allocations: 499 kB / 283.8 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003766/0.034, allocations: 83.89 kB / 283.8 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002332/0.03633, allocations: 1.944 MB / 285.8 MB, free: 3.883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004956/0.03683, allocations: 60 kB / 285.8 MB, free: 3.824 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.7e-05/0.03688, allocations: 20 kB / 285.9 MB, free: 3.805 MB / 266.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.0003062/0.03719, allocations: 216.2 kB / 286.1 MB, free: 3.582 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000142/0.03733, allocations: 63.66 kB / 286.1 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001782/0.03751, allocations: 55.62 kB / 286.2 MB, free: 3.465 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.03752, allocations: 7.984 kB / 286.2 MB, free: 3.457 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.03753, allocations: 0 / 286.2 MB, free: 3.457 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.03753, allocations: 4 kB / 286.2 MB, free: 3.453 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003167/0.0407, allocations: 1.382 MB / 287.6 MB, free: 2.004 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.04071, allocations: 3.938 kB / 287.6 MB, free: 2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003821/0.04109, allocations: 83.89 kB / 287.7 MB, free: 1.918 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009282/0.04202, allocations: 471.2 kB / 288.1 MB, free: 1.449 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.318e-05/0.04207, allocations: 19.98 kB / 288.1 MB, free: 1.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1139/0.156, allocations: 1.905 MB / 290.1 MB, free: 31.97 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.156, allocations: 2.375 kB / 290.1 MB, free: 31.97 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002141/0.1582, allocations: 1.151 MB / 291.2 MB, free: 31.7 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002703/0.1584, allocations: 93.53 kB / 291.3 MB, free: 31.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.452e-05/0.1585, allocations: 20.45 kB / 291.3 MB, free: 31.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003668/0.1589, allocations: 41.52 kB / 291.4 MB, free: 31.7 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002451/0.1591, allocations: 105.8 kB / 291.5 MB, free: 31.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.236e-05/0.1592, allocations: 33.84 kB / 291.5 MB, free: 31.7 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001939/0.1594, allocations: 232.2 kB / 291.7 MB, free: 31.58 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1594, allocations: 3.281 kB / 291.7 MB, free: 31.58 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005021/0.1599, allocations: 134.1 kB / 291.9 MB, free: 31.58 MB / 266.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.0002331/0.1601, allocations: 136.8 kB / 292 MB, free: 31.49 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.1614, allocations: 0.5888 MB / 292.6 MB, free: 31.47 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.1614, allocations: 0 / 292.6 MB, free: 31.47 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006294/0.162, allocations: 326.5 kB / 292.9 MB, free: 31.44 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006376/0.1627, allocations: 98.94 kB / 293 MB, free: 31.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002993/0.1657, allocations: 1.265 MB / 294.3 MB, free: 30.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/0.1659, allocations: 217.1 kB / 294.5 MB, free: 30.7 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001611/0.166, allocations: 36.02 kB / 294.5 MB, free: 30.69 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.1661, allocations: 39.06 kB / 294.5 MB, free: 30.68 MB / 266.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1661, allocations: 0 / 294.5 MB, free: 30.68 MB / 266.7 MB Notification: Performance of Templates: time 0.01409/0.1802, allocations: 8.477 MB / 303 MB, free: 27.41 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.875129802036099]