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.00186/0.00186, allocations: 80.67 kB / 20.68 MB, free: 1.035 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.001947/0.001947, allocations: 146.9 kB / 23.93 MB, free: 4.188 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.437/1.437, allocations: 173.3 MB / 200.4 MB, free: 12.91 MB / 190.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.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 2.344e-06/2.344e-06, allocations: 0 / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.294e-05/2.529e-05, allocations: 6.281 kB / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003821/0.003846, allocations: 2.822 MB / 321.7 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.005381, allocations: 0.9103 MB / 322.6 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.005542, allocations: 9.969 kB / 322.7 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000236/0.005779, allocations: 71.55 kB / 322.7 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002545/0.006033, allocations: 140.3 kB / 322.9 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000558/0.006591, allocations: 231.7 kB / 323.1 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005646/0.007156, allocations: 0.6478 MB / 323.7 MB, free: 468 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001937/0.007349, allocations: 92.83 kB / 323.8 MB, free: 412 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004803/0.00783, allocations: 392.4 kB / 324.2 MB, free: 244 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003603/0.00819, allocations: 242.6 kB / 324.5 MB, free: 168 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.479e-05/0.008275, allocations: 49.12 kB / 324.5 MB, free: 168 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002045/0.008479, allocations: 96.23 kB / 324.6 MB, free: 156 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001317/0.008611, allocations: 129.1 kB / 324.7 MB, free: 68 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000229/0.00884, allocations: 179 kB / 324.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008318/0.009672, allocations: 0.6384 MB / 325.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.009675, allocations: 7.781 kB / 325.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.009676, allocations: 4 kB / 325.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.009689, allocations: 0 / 325.5 MB, free: 15.72 MB / 302.1 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.001553/0.01124, allocations: 0.7092 MB / 326.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.01128, allocations: 15.62 kB / 326.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.01139, allocations: 52.8 kB / 326.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004919/0.01188, allocations: 269.3 kB / 326.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/0.01192, allocations: 29.78 kB / 326.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.461e-05/0.01201, allocations: 46.69 kB / 326.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009996/0.01301, allocations: 472 kB / 327.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.637e-05/0.01304, allocations: 10.23 kB / 327.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.365e-05/0.01309, allocations: 16.31 kB / 327.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.0131, allocations: 16.53 kB / 327.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.01413, allocations: 477.7 kB / 327.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.01618, allocations: 0.9076 MB / 328.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008404/0.01702, allocations: 371.6 kB / 328.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005514/0.01757, allocations: 246.7 kB / 329.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.054e-05/0.01761, allocations: 5.781 kB / 329.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.01764, allocations: 37.31 kB / 329.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.744e-06/0.01764, allocations: 0 / 329.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.005477/0.02312, allocations: 2.041 MB / 331.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.02317, allocations: 57.56 kB / 331.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003088/0.02348, allocations: 267.7 kB / 331.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.938e-05/0.02355, allocations: 42.97 kB / 331.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.0237, allocations: 193.1 kB / 331.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001866/0.02389, allocations: 209.4 kB / 332 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002031/0.02409, allocations: 113 kB / 332.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.02427, allocations: 348.1 kB / 332.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005054/0.02477, allocations: 239.4 kB / 332.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005546/0.02533, allocations: 288.5 kB / 332.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008274/0.02615, allocations: 409 kB / 333.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.02616, allocations: 5.375 kB / 333.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001762/0.02792, allocations: 0.7846 MB / 334.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.02794, allocations: 8.5 kB / 334.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.02794, allocations: 1.531 kB / 334.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009488/0.02889, allocations: 0.4914 MB / 334.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003544/0.02925, allocations: 91.2 kB / 334.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/0.03071, allocations: 1.407 MB / 336.1 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005557/0.03127, allocations: 74.19 kB / 336.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.907e-05/0.03133, allocations: 25.25 kB / 336.2 MB, free: 9.402 MB / 302.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 (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.0002727/0.0316, allocations: 168.5 kB / 336.4 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.03171, allocations: 42.08 kB / 336.4 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001485/0.03185, allocations: 54.39 kB / 336.5 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.03186, allocations: 6.312 kB / 336.5 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.03187, allocations: 4 kB / 336.5 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.03188, allocations: 5.047 kB / 336.5 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.03488, allocations: 1.279 MB / 337.8 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.03489, allocations: 2.156 kB / 337.8 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003918/0.03528, allocations: 84.55 kB / 337.9 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008621/0.03614, allocations: 484.8 kB / 338.3 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.475e-05/0.0362, allocations: 23.97 kB / 338.4 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001368/0.03757, allocations: 1.374 MB / 339.7 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.03757, allocations: 0 / 339.7 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00228/0.03985, allocations: 1.092 MB / 340.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002244/0.04007, allocations: 91.69 kB / 340.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.161e-05/0.04016, allocations: 20 kB / 340.9 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000449/0.04061, allocations: 51.92 kB / 341 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002374/0.04085, allocations: 104.2 kB / 341.1 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.103e-05/0.0409, allocations: 23.97 kB / 341.1 MB, free: 5.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002065/0.04111, allocations: 193.2 kB / 341.3 MB, free: 4.879 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.04111, allocations: 0 / 341.3 MB, free: 4.879 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000533/0.04164, allocations: 131.9 kB / 341.4 MB, free: 4.75 MB / 302.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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002887/0.04193, allocations: 150.7 kB / 341.6 MB, free: 4.598 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.04325, allocations: 0.5498 MB / 342.1 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.04326, allocations: 4 kB / 342.1 MB, free: 4.043 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007809/0.04404, allocations: 322.6 kB / 342.4 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006248/0.04466, allocations: 83.28 kB / 342.5 MB, free: 3.652 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003831/0.04849, allocations: 1.307 MB / 343.8 MB, free: 2.301 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.04871, allocations: 216.9 kB / 344 MB, free: 2.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001517/0.04886, allocations: 35.28 kB / 344.1 MB, free: 2.039 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.04898, allocations: 40.42 kB / 344.1 MB, free: 2 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.04898, allocations: 0 / 344.1 MB, free: 2 MB / 302.1 MB Notification: Performance of Templates: time 0.01571/0.06469, allocations: 8.449 MB / 352.6 MB, free: 9.637 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] 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.534458253532648]