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.001655/0.001655, allocations: 117.9 kB / 18.41 MB, free: 4.688 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.001761/0.001762, allocations: 189.3 kB / 21.35 MB, free: 1.75 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.438/1.438, allocations: 222.9 MB / 247.1 MB, free: 4.207 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 0.00158/0.00158, allocations: 51.92 kB / 358.7 MB, free: 8.379 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09722/0.09881, allocations: 49.43 MB / 408.1 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004348/0.1032, allocations: 3.024 MB / 411.1 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001937/0.1052, allocations: 0.9309 MB / 412.1 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002016/0.1054, allocations: 4 kB / 412.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000261/0.1057, allocations: 67.31 kB / 412.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002618/0.106, allocations: 134.9 kB / 412.3 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005685/0.1066, allocations: 223.6 kB / 412.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006773/0.1072, allocations: 0.6356 MB / 413.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002493/0.1075, allocations: 128.2 kB / 413.2 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003797/0.1079, allocations: 271.1 kB / 413.5 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003883/0.1083, allocations: 302.9 kB / 413.8 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.168e-05/0.1084, allocations: 51.94 kB / 413.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002088/0.1086, allocations: 99.94 kB / 413.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.1087, allocations: 123.6 kB / 414.1 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002609/0.109, allocations: 250.8 kB / 414.3 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006994/0.1097, allocations: 0.5876 MB / 414.9 MB, free: 68 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.1097, allocations: 0 / 414.9 MB, free: 68 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1097, allocations: 4 kB / 414.9 MB, free: 64 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.485e-06/0.1098, allocations: 0 / 414.9 MB, free: 64 kB / 334.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.001527/0.1113, allocations: 0.8026 MB / 415.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.1113, allocations: 8.031 kB / 415.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.1115, allocations: 56.61 kB / 415.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005039/0.112, allocations: 331.5 kB / 416.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.729e-05/0.112, allocations: 29.38 kB / 416.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.704e-05/0.1121, allocations: 44.38 kB / 416.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009094/0.113, allocations: 486.4 kB / 416.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.677e-05/0.1131, allocations: 11.95 kB / 416.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.48e-05/0.1131, allocations: 12 kB / 416.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.1131, allocations: 12 kB / 416.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009487/0.1141, allocations: 475.7 kB / 417.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002028/0.1161, allocations: 1.118 MB / 418.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008451/0.117, allocations: 397.2 kB / 418.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005358/0.1175, allocations: 266 kB / 418.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.549e-05/0.1176, allocations: 4.438 kB / 418.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.1176, allocations: 39 kB / 418.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.164e-06/0.1176, allocations: 0 / 418.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.005337/0.123, allocations: 2.351 MB / 421.3 MB, free: 9.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.1231, allocations: 59.91 kB / 421.4 MB, free: 9.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.1234, allocations: 283.4 kB / 421.6 MB, free: 9.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.616e-05/0.1235, allocations: 45.69 kB / 421.7 MB, free: 8.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1236, allocations: 185.6 kB / 421.9 MB, free: 8.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.1238, allocations: 206.2 kB / 422.1 MB, free: 8.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.124, allocations: 110.3 kB / 422.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.1242, allocations: 346.8 kB / 422.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004901/0.1247, allocations: 241.2 kB / 422.7 MB, free: 7.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005375/0.1252, allocations: 296.8 kB / 423 MB, free: 7.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008042/0.126, allocations: 406.4 kB / 423.4 MB, free: 7.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.126, allocations: 0 / 423.4 MB, free: 7.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001721/0.1278, allocations: 0.7952 MB / 424.2 MB, free: 6.371 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.1278, allocations: 7.984 kB / 424.2 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1278, allocations: 0 / 424.2 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009462/0.1288, allocations: 0.4975 MB / 424.7 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003683/0.1291, allocations: 91.83 kB / 424.8 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001389/0.1305, allocations: 1.401 MB / 426.2 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005163/0.1311, allocations: 80.03 kB / 426.3 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.673e-05/0.1311, allocations: 20 kB / 426.3 MB, free: 4.219 MB / 350.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.0002447/0.1314, allocations: 182.1 kB / 426.5 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.155e-05/0.1315, allocations: 43.72 kB / 426.5 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001322/0.1316, allocations: 59.73 kB / 426.6 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.1316, allocations: 4 kB / 426.6 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.1316, allocations: 0 / 426.6 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.1316, allocations: 3.984 kB / 426.6 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002859/0.1345, allocations: 1.444 MB / 428.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.1345, allocations: 3.938 kB / 428.1 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003766/0.1349, allocations: 87.89 kB / 428.1 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008309/0.1358, allocations: 481.5 kB / 428.6 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.419e-05/0.1358, allocations: 19.97 kB / 428.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/0.1371, allocations: 1.378 MB / 430 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.1372, allocations: 7.969 kB / 430 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2004/0.3375, allocations: 1.087 MB / 431.1 MB, free: 23.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000244/0.3378, allocations: 167.3 kB / 431.3 MB, free: 23.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.495e-05/0.3379, allocations: 21.53 kB / 431.3 MB, free: 23.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004012/0.3383, allocations: 58.56 kB / 431.3 MB, free: 23.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002032/0.3385, allocations: 98.17 kB / 431.4 MB, free: 23.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.483e-05/0.3386, allocations: 31.41 kB / 431.5 MB, free: 23.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000186/0.3388, allocations: 204.3 kB / 431.7 MB, free: 23.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3388, allocations: 0 / 431.7 MB, free: 23.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005215/0.3393, allocations: 130.2 kB / 431.8 MB, free: 23.07 MB / 350.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.0002621/0.3396, allocations: 137.5 kB / 431.9 MB, free: 22.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001271/0.3409, allocations: 0.5916 MB / 432.5 MB, free: 22.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.957e-05/0.3409, allocations: 0.875 kB / 432.5 MB, free: 22.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006511/0.3416, allocations: 336.8 kB / 432.9 MB, free: 22.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006091/0.3422, allocations: 78.78 kB / 432.9 MB, free: 22.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003638/0.3458, allocations: 1.484 MB / 434.4 MB, free: 22.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.3462, allocations: 0.8134 MB / 435.2 MB, free: 21.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.3463, allocations: 39.09 kB / 435.3 MB, free: 21.68 MB / 350.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3464, allocations: 0.625 kB / 435.3 MB, free: 21.68 MB / 350.1 MB Notification: Performance of Templates: time 0.01569/0.362, allocations: 8.583 MB / 443.8 MB, free: 19.97 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 9.046448740060441]