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.001278/0.001278, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.00168/0.00168, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.394/1.394, allocations: 230.6 MB / 258.3 MB, free: 7.996 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.001906/0.001906, allocations: 47.94 kB / 379 MB, free: 2.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2567, allocations: 53.36 MB / 432.4 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00527/0.262, allocations: 3.205 MB / 435.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002075/0.2641, allocations: 1.146 MB / 436.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001615/0.2642, allocations: 11.88 kB / 436.8 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003166/0.2646, allocations: 83.23 kB / 436.8 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003902/0.2649, allocations: 182.7 kB / 437 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004064/0.2653, allocations: 211.6 kB / 437.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000755/0.2661, allocations: 0.6628 MB / 437.9 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.2663, allocations: 97.31 kB / 438 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004482/0.2668, allocations: 311 kB / 438.3 MB, free: 1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00046/0.2672, allocations: 326.8 kB / 438.6 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.62e-05/0.2673, allocations: 52 kB / 438.6 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002172/0.2675, allocations: 108 kB / 438.8 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001784/0.2677, allocations: 143.5 kB / 438.9 MB, free: 392 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000268/0.268, allocations: 266.7 kB / 439.2 MB, free: 124 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008153/0.2688, allocations: 0.6471 MB / 439.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2688, allocations: 0 / 439.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2688, allocations: 0 / 439.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.532e-05/0.2688, allocations: 0 / 439.8 MB, free: 15.48 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.001563/0.2704, allocations: 0.7737 MB / 440.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.2704, allocations: 12.02 kB / 440.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002203/0.2706, allocations: 64.56 kB / 440.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.2712, allocations: 290.2 kB / 440.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.371e-05/0.2712, allocations: 33.38 kB / 441 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.2713, allocations: 48.31 kB / 441 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009007/0.2722, allocations: 470.6 kB / 441.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.2723, allocations: 3.984 kB / 441.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.692e-05/0.2723, allocations: 16 kB / 441.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.2723, allocations: 12 kB / 441.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009964/0.2733, allocations: 471.7 kB / 442 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002156/0.2755, allocations: 1.099 MB / 443.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009128/0.2764, allocations: 402.5 kB / 443.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005282/0.2769, allocations: 250.2 kB / 443.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.175e-05/0.277, allocations: 8.484 kB / 443.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.277, allocations: 39.06 kB / 443.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 1.683e-06/0.277, allocations: 4 kB / 443.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005124/0.2821, allocations: 2.018 MB / 445.8 MB, free: 9.328 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.2822, allocations: 67.91 kB / 445.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000374/0.2826, allocations: 300.6 kB / 446.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.067e-05/0.2826, allocations: 45.69 kB / 446.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.2828, allocations: 185.6 kB / 446.4 MB, free: 8.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000195/0.283, allocations: 218.2 kB / 446.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/0.2832, allocations: 110.3 kB / 446.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.2833, allocations: 346.8 kB / 447 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004832/0.2838, allocations: 237.2 kB / 447.2 MB, free: 7.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005151/0.2843, allocations: 272.8 kB / 447.5 MB, free: 7.527 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007833/0.2851, allocations: 386.1 kB / 447.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2851, allocations: 7.875 kB / 447.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001638/0.2868, allocations: 0.7445 MB / 448.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.2868, allocations: 8 kB / 448.6 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2868, allocations: 4.031 kB / 448.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008837/0.2877, allocations: 381.3 kB / 449 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003322/0.288, allocations: 87.89 kB / 449.1 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001491/0.2895, allocations: 1.394 MB / 450.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004663/0.29, allocations: 75.94 kB / 450.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.433e-05/0.29, allocations: 24.11 kB / 450.6 MB, free: 4.359 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.0002396/0.2902, allocations: 170.3 kB / 450.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.2903, allocations: 51.66 kB / 450.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001544/0.2905, allocations: 60.52 kB / 450.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.2905, allocations: 4 kB / 450.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.2905, allocations: 7.922 kB / 450.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.2905, allocations: 0 / 450.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002886/0.2934, allocations: 1.41 MB / 452.3 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2934, allocations: 0 / 452.3 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000378/0.2938, allocations: 83.89 kB / 452.4 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007635/0.2945, allocations: 349.6 kB / 452.7 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.924e-05/0.2946, allocations: 27.97 kB / 452.8 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001391/0.296, allocations: 1.354 MB / 454.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/0.296, allocations: 8.016 kB / 454.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00205/0.2981, allocations: 1.049 MB / 455.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002229/0.2983, allocations: 91.67 kB / 455.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.901e-05/0.2984, allocations: 23.94 kB / 455.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004344/0.2988, allocations: 55.94 kB / 455.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002172/0.299, allocations: 108.3 kB / 455.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.65e-05/0.2991, allocations: 24.11 kB / 455.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002468/0.2993, allocations: 219.1 kB / 455.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2993, allocations: 0 / 455.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004795/0.2998, allocations: 136 kB / 455.8 MB, free: 14.97 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.00137/0.3012, allocations: 389.5 kB / 456.2 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.3025, allocations: 0.5459 MB / 456.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3025, allocations: 0 / 456.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007436/0.3032, allocations: 322.6 kB / 457 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006209/0.3039, allocations: 92.16 kB / 457.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003948/0.3078, allocations: 1.516 MB / 458.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005076/0.3083, allocations: 0.8245 MB / 459.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.3085, allocations: 51.36 kB / 459.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3085, allocations: 3.938 kB / 459.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of Templates: time 0.01396/0.3224, allocations: 9.147 MB / 468.7 MB, free: 2.164 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.279256897978485]