Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001451/0.001451, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.00165/0.00165, allocations: 213.1 kB / 24.5 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 230.5 MB / 258.1 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002132/0.002132, allocations: 67.84 kB / 379 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2827, allocations: 53.41 MB / 432.4 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005085/0.2878, allocations: 3.207 MB / 435.6 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.2901, allocations: 1.145 MB / 436.8 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/0.2903, allocations: 7.938 kB / 436.8 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003621/0.2907, allocations: 87.23 kB / 436.9 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004334/0.2911, allocations: 186.6 kB / 437.1 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004879/0.2916, allocations: 199.7 kB / 437.3 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008122/0.2924, allocations: 0.6667 MB / 437.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.2926, allocations: 100.7 kB / 438 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005035/0.2931, allocations: 319 kB / 438.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000471/0.2936, allocations: 318.8 kB / 438.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.22e-05/0.2937, allocations: 48 kB / 438.7 MB, free: 496 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002384/0.2939, allocations: 112 kB / 438.8 MB, free: 384 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001971/0.2941, allocations: 139.6 kB / 438.9 MB, free: 244 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003034/0.2944, allocations: 266.8 kB / 439.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008478/0.2953, allocations: 0.6471 MB / 439.8 MB, free: 15.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2953, allocations: 0 / 439.8 MB, free: 15.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2953, allocations: 0 / 439.8 MB, free: 15.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.2953, allocations: 4 kB / 439.9 MB, free: 15.32 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.001578/0.2969, allocations: 0.7659 MB / 440.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.2969, allocations: 16.03 kB / 440.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002508/0.2972, allocations: 68.55 kB / 440.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005586/0.2977, allocations: 286.2 kB / 441 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.214e-05/0.2978, allocations: 33.38 kB / 441 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.694e-05/0.2979, allocations: 48.27 kB / 441.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009325/0.2988, allocations: 474.6 kB / 441.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.612e-05/0.2988, allocations: 7.984 kB / 441.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.043e-05/0.2989, allocations: 20 kB / 441.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.2989, allocations: 8 kB / 441.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.2999, allocations: 463.7 kB / 442 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002296/0.3022, allocations: 1.102 MB / 443.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000984/0.3032, allocations: 396.2 kB / 443.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005955/0.3038, allocations: 254.1 kB / 443.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.726e-05/0.3039, allocations: 8.484 kB / 443.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.88e-05/0.3039, allocations: 39.06 kB / 443.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.444e-06/0.3039, allocations: 0 / 443.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005459/0.3094, allocations: 2.026 MB / 445.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.3094, allocations: 55.91 kB / 445.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004028/0.3098, allocations: 304.6 kB / 446.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.269e-05/0.3099, allocations: 49.64 kB / 446.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.3101, allocations: 181.6 kB / 446.4 MB, free: 8.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000208/0.3103, allocations: 222.2 kB / 446.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.3105, allocations: 110.3 kB / 446.7 MB, free: 8.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.3107, allocations: 358.8 kB / 447.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005016/0.3112, allocations: 221.2 kB / 447.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005543/0.3117, allocations: 280.8 kB / 447.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008404/0.3125, allocations: 398.1 kB / 448 MB, free: 6.984 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3125, allocations: 0 / 448 MB, free: 6.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001703/0.3143, allocations: 0.7445 MB / 448.7 MB, free: 6.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.3143, allocations: 4 kB / 448.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.3143, allocations: 0 / 448.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009233/0.3152, allocations: 381.4 kB / 449.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003623/0.3156, allocations: 91.83 kB / 449.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001549/0.3171, allocations: 1.397 MB / 450.6 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005127/0.3176, allocations: 72.03 kB / 450.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-05/0.3177, allocations: 20 kB / 450.6 MB, free: 4.215 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.0002872/0.318, allocations: 170.4 kB / 450.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.3181, allocations: 47.66 kB / 450.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001528/0.3182, allocations: 68.52 kB / 450.9 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.3182, allocations: 8 kB / 450.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.3182, allocations: 0 / 450.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.3182, allocations: 3.984 kB / 450.9 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002972/0.3212, allocations: 1.402 MB / 452.3 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.3212, allocations: 7.984 kB / 452.4 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003876/0.3216, allocations: 88.05 kB / 452.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000839/0.3225, allocations: 341.4 kB / 452.8 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.01e-05/0.3225, allocations: 19.97 kB / 452.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001484/0.324, allocations: 1.366 MB / 454.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.324, allocations: 0 / 454.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00216/0.3262, allocations: 1.045 MB / 455.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002599/0.3264, allocations: 95.62 kB / 455.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.3265, allocations: 28.06 kB / 455.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004352/0.3269, allocations: 63.92 kB / 455.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002422/0.3272, allocations: 100.3 kB / 455.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.936e-05/0.3272, allocations: 23.97 kB / 455.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002682/0.3275, allocations: 219.1 kB / 455.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3275, allocations: 0 / 455.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004994/0.328, allocations: 127.9 kB / 455.8 MB, free: 14.84 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.001426/0.3294, allocations: 397.8 kB / 456.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001368/0.3308, allocations: 0.542 MB / 456.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3308, allocations: 0 / 456.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007493/0.3316, allocations: 326.9 kB / 457.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000688/0.3322, allocations: 92.86 kB / 457.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003974/0.3362, allocations: 1.511 MB / 458.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005122/0.3367, allocations: 0.8323 MB / 459.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.3369, allocations: 43.42 kB / 459.6 MB, free: 11.15 MB / 366.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3369, allocations: 0 / 459.6 MB, free: 11.15 MB / 366.1 MB Notification: Performance of Templates: time 0.01407/0.3509, allocations: 9.149 MB / 468.7 MB, free: 2.012 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.076456050155684]