Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001301/0.001301, allocations: 115.5 kB / 21.18 MB, free: 0.5898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001486/0.001486, allocations: 210.9 kB / 24.47 MB, free: 3.996 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.432/1.432, allocations: 230.4 MB / 258.1 MB, free: 8.141 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 71.83 kB / 378.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2756, allocations: 53.32 MB / 432 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005179/0.2807, allocations: 3.215 MB / 435.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002226/0.283, allocations: 1.134 MB / 436.4 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.2831, allocations: 15.88 kB / 436.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003402/0.2835, allocations: 83.23 kB / 436.5 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004175/0.2839, allocations: 186.6 kB / 436.7 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004071/0.2843, allocations: 199.6 kB / 436.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007659/0.2851, allocations: 0.6707 MB / 437.5 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000223/0.2853, allocations: 100.8 kB / 437.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004568/0.2858, allocations: 299.1 kB / 437.9 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005393/0.2863, allocations: 326.7 kB / 438.2 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.855e-05/0.2864, allocations: 48 kB / 438.3 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002269/0.2866, allocations: 112 kB / 438.4 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002066/0.2868, allocations: 139.5 kB / 438.5 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002897/0.2871, allocations: 266.7 kB / 438.8 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008288/0.2879, allocations: 0.644 MB / 439.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2879, allocations: 0 / 439.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2879, allocations: 0 / 439.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.288, allocations: 0 / 439.4 MB, free: 15.94 MB / 350.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.001739/0.2897, allocations: 0.8411 MB / 440.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.2897, allocations: 15.97 kB / 440.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002729/0.29, allocations: 68.55 kB / 440.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007478/0.2908, allocations: 351.4 kB / 440.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.776e-05/0.2908, allocations: 33.38 kB / 440.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.2909, allocations: 48.31 kB / 440.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000964/0.2919, allocations: 466.6 kB / 441.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.474e-05/0.2919, allocations: 11.98 kB / 441.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.523e-05/0.292, allocations: 20 kB / 441.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.292, allocations: 8 kB / 441.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.293, allocations: 463.7 kB / 441.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002258/0.2953, allocations: 1.141 MB / 442.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009147/0.2962, allocations: 403.5 kB / 443.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005475/0.2967, allocations: 250.4 kB / 443.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.168e-05/0.2968, allocations: 8.562 kB / 443.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.2968, allocations: 35.12 kB / 443.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 1.593e-06/0.2968, allocations: 0 / 443.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005467/0.3023, allocations: 2.329 MB / 445.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/0.3023, allocations: 59.97 kB / 445.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003732/0.3027, allocations: 304.6 kB / 446.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.131e-05/0.3028, allocations: 41.7 kB / 446.3 MB, free: 8.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.3029, allocations: 193.5 kB / 446.5 MB, free: 8.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002005/0.3031, allocations: 218.2 kB / 446.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001884/0.3033, allocations: 114.3 kB / 446.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.3035, allocations: 346.8 kB / 447.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004848/0.304, allocations: 233.2 kB / 447.4 MB, free: 7.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005341/0.3045, allocations: 272.8 kB / 447.6 MB, free: 7.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008025/0.3053, allocations: 394.4 kB / 448 MB, free: 7.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3053, allocations: 0 / 448 MB, free: 7.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001678/0.307, allocations: 0.7523 MB / 448.8 MB, free: 6.254 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.307, allocations: 4 kB / 448.8 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.307, allocations: 0 / 448.8 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009052/0.3079, allocations: 381.4 kB / 449.1 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003314/0.3082, allocations: 79.89 kB / 449.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.3098, allocations: 1.394 MB / 450.6 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005406/0.3103, allocations: 80.06 kB / 450.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.8e-05/0.3103, allocations: 23.98 kB / 450.7 MB, free: 4.246 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 (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.0002609/0.3106, allocations: 178.3 kB / 450.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.3107, allocations: 51.66 kB / 450.9 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001369/0.3108, allocations: 64.52 kB / 451 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3109, allocations: 4 kB / 451 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.3109, allocations: 0 / 451 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3109, allocations: 3.984 kB / 451 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002939/0.3138, allocations: 1.444 MB / 452.5 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/0.3138, allocations: 4 kB / 452.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003967/0.3142, allocations: 88.05 kB / 452.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008049/0.315, allocations: 341.4 kB / 452.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.973e-05/0.3151, allocations: 19.97 kB / 452.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001459/0.3165, allocations: 1.363 MB / 454.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3165, allocations: 4 kB / 454.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002122/0.3186, allocations: 1.047 MB / 455.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002746/0.3189, allocations: 168.9 kB / 455.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.319, allocations: 31.86 kB / 455.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004608/0.3195, allocations: 59.94 kB / 455.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002159/0.3197, allocations: 96.41 kB / 455.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.872e-05/0.3197, allocations: 27.97 kB / 455.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002626/0.32, allocations: 215.1 kB / 455.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.32, allocations: 0 / 455.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005101/0.3205, allocations: 139.9 kB / 456 MB, free: 14.72 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.001345/0.3219, allocations: 386.2 kB / 456.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.3232, allocations: 0.539 MB / 457 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3232, allocations: 0 / 457 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007171/0.3239, allocations: 319.5 kB / 457.3 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006398/0.3246, allocations: 100.8 kB / 457.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004025/0.3286, allocations: 1.519 MB / 458.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004898/0.3291, allocations: 0.84 MB / 459.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.3292, allocations: 43.42 kB / 459.8 MB, free: 11.05 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3292, allocations: 7.938 kB / 459.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of Templates: time 0.0132/0.3424, allocations: 9.142 MB / 468.9 MB, free: 1.914 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.164173601195216]