Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001553/0.001553, allocations: 115.1 kB / 18.46 MB, free: 4.543 MB / 14.72 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.001956/0.001956, allocations: 215.2 kB / 21.42 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.635/1.635, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 47.94 kB / 374.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1112, allocations: 53.33 MB / 427.5 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005469/0.1167, allocations: 3.189 MB / 430.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.1191, allocations: 1.13 MB / 431.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003677/0.1195, allocations: 7.938 kB / 431.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004152/0.1199, allocations: 91.16 kB / 431.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000605/0.1205, allocations: 182.7 kB / 432.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005132/0.121, allocations: 207.6 kB / 432.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007933/0.1218, allocations: 0.6629 MB / 432.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002332/0.122, allocations: 104.3 kB / 433 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004388/0.1225, allocations: 307 kB / 433.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004083/0.1229, allocations: 318.8 kB / 433.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.161e-05/0.123, allocations: 52 kB / 433.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002224/0.1232, allocations: 108 kB / 433.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001845/0.1234, allocations: 139.5 kB / 433.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002671/0.1236, allocations: 274.6 kB / 434.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000798/0.1244, allocations: 0.6459 MB / 434.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1244, allocations: 3.938 kB / 434.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1244, allocations: 0 / 434.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.1245, allocations: 0 / 434.9 MB, free: 12.88 MB / 366.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.001626/0.1261, allocations: 0.8373 MB / 435.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1261, allocations: 8.031 kB / 435.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002419/0.1264, allocations: 64.56 kB / 435.8 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005773/0.1269, allocations: 355.4 kB / 436.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.786e-05/0.127, allocations: 33.38 kB / 436.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.803e-05/0.1271, allocations: 52.31 kB / 436.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000952/0.128, allocations: 474.5 kB / 436.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.1281, allocations: 4 kB / 436.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.146e-05/0.1281, allocations: 20 kB / 436.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.1281, allocations: 8 kB / 436.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/0.1291, allocations: 463.7 kB / 437.2 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002238/0.1314, allocations: 1.137 MB / 438.3 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.1324, allocations: 404.8 kB / 438.7 MB, free: 8.898 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005562/0.1329, allocations: 242.4 kB / 438.9 MB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.973e-05/0.133, allocations: 8.547 kB / 438.9 MB, free: 8.652 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.133, allocations: 43.12 kB / 439 MB, free: 8.602 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 1.844e-06/0.133, allocations: 4 kB / 439 MB, free: 8.598 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.005871/0.1389, allocations: 2.321 MB / 441.3 MB, free: 6.148 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.139, allocations: 63.97 kB / 441.4 MB, free: 6.074 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004008/0.1394, allocations: 308.5 kB / 441.7 MB, free: 5.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.574e-05/0.1394, allocations: 45.69 kB / 441.7 MB, free: 5.719 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.1396, allocations: 185.6 kB / 441.9 MB, free: 5.531 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000204/0.1398, allocations: 226.2 kB / 442.1 MB, free: 5.309 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002054/0.14, allocations: 110.2 kB / 442.2 MB, free: 5.191 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.1402, allocations: 346.8 kB / 442.6 MB, free: 4.844 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005079/0.1407, allocations: 233.2 kB / 442.8 MB, free: 4.617 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005487/0.1412, allocations: 276.8 kB / 443.1 MB, free: 4.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008016/0.142, allocations: 386.4 kB / 443.4 MB, free: 3.961 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.142, allocations: 0 / 443.4 MB, free: 3.961 MB / 366.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001728/0.1438, allocations: 0.7483 MB / 444.2 MB, free: 3.199 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.1438, allocations: 8 kB / 444.2 MB, free: 3.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.1438, allocations: 0 / 444.2 MB, free: 3.191 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009228/0.1447, allocations: 377.5 kB / 444.6 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003406/0.1451, allocations: 83.89 kB / 444.6 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001559/0.1466, allocations: 1.401 MB / 446 MB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005253/0.1471, allocations: 71.94 kB / 446.1 MB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.977e-05/0.1472, allocations: 23.98 kB / 446.1 MB, free: 1.188 MB / 366.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.0002671/0.1475, allocations: 173.8 kB / 446.3 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.1476, allocations: 55.64 kB / 446.4 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001747/0.1477, allocations: 60.52 kB / 446.4 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.1478, allocations: 4 kB / 446.4 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.1478, allocations: 0 / 446.4 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.1478, allocations: 3.984 kB / 446.4 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2161/0.3639, allocations: 1.435 MB / 447.9 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.3639, allocations: 3.688 kB / 447.9 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004044/0.3643, allocations: 86.62 kB / 447.9 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007952/0.3651, allocations: 343.4 kB / 448.3 MB, free: 24.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.373e-05/0.3651, allocations: 23.03 kB / 448.3 MB, free: 24.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.3662, allocations: 1.361 MB / 449.7 MB, free: 23.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.3662, allocations: 5.312 kB / 449.7 MB, free: 23.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.3681, allocations: 1.047 MB / 450.7 MB, free: 23.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002294/0.3683, allocations: 171.1 kB / 450.9 MB, free: 23.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.302e-05/0.3684, allocations: 25.34 kB / 450.9 MB, free: 23.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004512/0.3689, allocations: 57.09 kB / 451 MB, free: 23.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002276/0.3691, allocations: 104.8 kB / 451.1 MB, free: 23.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.926e-05/0.3692, allocations: 25.03 kB / 451.1 MB, free: 23.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002382/0.3694, allocations: 223.7 kB / 451.3 MB, free: 23.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3694, allocations: 0 / 451.3 MB, free: 23.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005049/0.3699, allocations: 134.1 kB / 451.4 MB, free: 23.19 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.001324/0.3712, allocations: 390.7 kB / 451.8 MB, free: 23.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.3726, allocations: 0.5455 MB / 452.4 MB, free: 22.9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3726, allocations: 0 / 452.4 MB, free: 22.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007086/0.3733, allocations: 326.5 kB / 452.7 MB, free: 22.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006638/0.3739, allocations: 85.03 kB / 452.8 MB, free: 22.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003875/0.3778, allocations: 1.526 MB / 454.3 MB, free: 22.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.3781, allocations: 0.8312 MB / 455.1 MB, free: 21.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.3783, allocations: 43.69 kB / 455.2 MB, free: 21.3 MB / 366.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3783, allocations: 5.5 kB / 455.2 MB, free: 21.3 MB / 366.1 MB Notification: Performance of Templates: time 0.01464/0.3929, allocations: 9.133 MB / 464.3 MB, free: 19.37 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 8.927753027994186]