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.001392/0.001392, allocations: 107 kB / 19.8 MB, free: 2.5 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.001502/0.001502, allocations: 219.1 kB / 23 MB, free: 5.574 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.46/1.46, allocations: 230.2 MB / 256.2 MB, free: 8.539 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.001822/0.001822, allocations: 59.91 kB / 376.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2609, allocations: 53.34 MB / 429.8 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005103/0.266, allocations: 3.199 MB / 433 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002254/0.2682, allocations: 1.142 MB / 434.1 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.2684, allocations: 7.938 kB / 434.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000351/0.2687, allocations: 87.22 kB / 434.2 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003964/0.2691, allocations: 182.7 kB / 434.4 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003999/0.2695, allocations: 203.6 kB / 434.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007145/0.2703, allocations: 0.6629 MB / 435.3 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002319/0.2705, allocations: 96.28 kB / 435.4 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004576/0.2709, allocations: 307 kB / 435.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004267/0.2714, allocations: 326.8 kB / 436 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.459e-05/0.2715, allocations: 52 kB / 436 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002071/0.2717, allocations: 104 kB / 436.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002004/0.2719, allocations: 147.5 kB / 436.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002749/0.2721, allocations: 262.7 kB / 436.5 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008415/0.273, allocations: 0.6471 MB / 437.2 MB, free: 112 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.273, allocations: 0 / 437.2 MB, free: 112 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.273, allocations: 3.938 kB / 437.2 MB, free: 108 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.609e-05/0.273, allocations: 0 / 437.2 MB, free: 108 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001723/0.2747, allocations: 0.8414 MB / 438 MB, free: 15.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.2748, allocations: 8.031 kB / 438 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002482/0.275, allocations: 68.55 kB / 438.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005597/0.2756, allocations: 351.3 kB / 438.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.512e-05/0.2756, allocations: 37.38 kB / 438.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.879e-05/0.2757, allocations: 44.31 kB / 438.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000955/0.2767, allocations: 474.6 kB / 439 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.15e-05/0.2767, allocations: 7.953 kB / 439 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.948e-05/0.2767, allocations: 15.98 kB / 439 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.2768, allocations: 12 kB / 439 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.2778, allocations: 471.7 kB / 439.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002222/0.28, allocations: 1.129 MB / 440.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009346/0.2809, allocations: 411.8 kB / 441 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000543/0.2815, allocations: 246.4 kB / 441.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.209e-05/0.2815, allocations: 8.547 kB / 441.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.2815, allocations: 39.12 kB / 441.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 1.743e-06/0.2816, allocations: 4 kB / 441.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005388/0.2869, allocations: 2.321 MB / 443.6 MB, free: 9.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.287, allocations: 63.97 kB / 443.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003606/0.2873, allocations: 300.6 kB / 444 MB, free: 9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.599e-05/0.2874, allocations: 49.64 kB / 444 MB, free: 8.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.2876, allocations: 189.6 kB / 444.2 MB, free: 8.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/0.2878, allocations: 218.2 kB / 444.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002107/0.288, allocations: 110.3 kB / 444.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.2882, allocations: 350.8 kB / 444.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004957/0.2887, allocations: 221.2 kB / 445.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005475/0.2892, allocations: 284.8 kB / 445.4 MB, free: 7.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008117/0.29, allocations: 394.3 kB / 445.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.29, allocations: 0 / 445.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001695/0.2917, allocations: 0.7484 MB / 446.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.2918, allocations: 8 kB / 446.5 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.2918, allocations: 0 / 446.5 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008815/0.2926, allocations: 377.4 kB / 446.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003317/0.293, allocations: 87.83 kB / 447 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.2944, allocations: 1.401 MB / 448.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004854/0.2949, allocations: 71.94 kB / 448.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.106e-05/0.295, allocations: 19.98 kB / 448.5 MB, free: 4.41 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.0002408/0.2952, allocations: 169.9 kB / 448.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.2953, allocations: 51.66 kB / 448.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001456/0.2955, allocations: 60.52 kB / 448.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.2955, allocations: 8 kB / 448.8 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.2955, allocations: 0 / 448.8 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.2955, allocations: 3.984 kB / 448.8 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/0.2983, allocations: 1.444 MB / 450.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2983, allocations: 0 / 450.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003723/0.2987, allocations: 83.89 kB / 450.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008078/0.2995, allocations: 357.7 kB / 450.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.764e-05/0.2996, allocations: 19.98 kB / 450.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001493/0.3011, allocations: 1.362 MB / 452 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.3011, allocations: 4.031 kB / 452 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002117/0.3032, allocations: 1.051 MB / 453.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002686/0.3035, allocations: 172.8 kB / 453.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.935e-05/0.3036, allocations: 23.94 kB / 453.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004209/0.304, allocations: 59.92 kB / 453.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/0.3042, allocations: 100.4 kB / 453.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.269e-05/0.3043, allocations: 23.97 kB / 453.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002586/0.3045, allocations: 219.1 kB / 453.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3045, allocations: 0 / 453.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005802/0.3051, allocations: 128 kB / 453.8 MB, free: 14.89 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.001484/0.3066, allocations: 394.2 kB / 454.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.308, allocations: 0.5391 MB / 454.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.308, allocations: 0 / 454.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007654/0.3088, allocations: 327 kB / 455 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006508/0.3094, allocations: 93.27 kB / 455.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003915/0.3133, allocations: 1.49 MB / 456.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/0.3138, allocations: 0.8245 MB / 457.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000191/0.314, allocations: 47.38 kB / 457.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.3141, allocations: 39.42 kB / 457.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3141, allocations: 4 kB / 457.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of Templates: time 0.01789/0.332, allocations: 10.45 MB / 468 MB, free: 0.7969 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/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: 4.712272386066616]