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.005639/0.005639, allocations: 110.7 kB / 21.98 MB, free: 5.18 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.001446/0.001446, allocations: 220.6 kB / 25.29 MB, free: 3.203 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.5/1.5, allocations: 230.6 MB / 259 MB, free: 8.008 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.001969/0.001969, allocations: 68.55 kB / 379.8 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.273, allocations: 53.36 MB / 433.2 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00515/0.2781, allocations: 3.212 MB / 436.4 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.2804, allocations: 1.146 MB / 437.5 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002569/0.2807, allocations: 11.94 kB / 437.5 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003662/0.2811, allocations: 83.23 kB / 437.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004903/0.2816, allocations: 190.6 kB / 437.8 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000502/0.2821, allocations: 199.7 kB / 438 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007955/0.2829, allocations: 0.6667 MB / 438.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.2831, allocations: 100.7 kB / 438.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005132/0.2836, allocations: 315 kB / 439.1 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004734/0.2841, allocations: 322.8 kB / 439.4 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.455e-05/0.2842, allocations: 48 kB / 439.4 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002504/0.2844, allocations: 112 kB / 439.5 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001854/0.2846, allocations: 139.6 kB / 439.7 MB, free: 428 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000285/0.2849, allocations: 266.7 kB / 439.9 MB, free: 160 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008668/0.2857, allocations: 0.6472 MB / 440.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2858, allocations: 0 / 440.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2858, allocations: 4 kB / 440.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.2858, allocations: 0 / 440.6 MB, free: 15.51 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.001612/0.2874, allocations: 0.7659 MB / 441.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.2874, allocations: 16.03 kB / 441.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002391/0.2877, allocations: 68.55 kB / 441.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005853/0.2882, allocations: 290.2 kB / 441.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.074e-05/0.2883, allocations: 33.38 kB / 441.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.759e-05/0.2884, allocations: 44.31 kB / 441.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009465/0.2893, allocations: 470.6 kB / 442.3 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.626e-05/0.2894, allocations: 11.95 kB / 442.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.906e-05/0.2894, allocations: 20 kB / 442.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.2894, allocations: 8 kB / 442.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/0.2904, allocations: 463.7 kB / 442.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002211/0.2927, allocations: 1.099 MB / 443.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009172/0.2936, allocations: 396.6 kB / 444.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005456/0.2941, allocations: 250.2 kB / 444.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.996e-05/0.2942, allocations: 12.48 kB / 444.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.2942, allocations: 39.06 kB / 444.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.545e-06/0.2942, allocations: 0 / 444.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.00529/0.2995, allocations: 2.018 MB / 446.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.2996, allocations: 55.91 kB / 446.6 MB, free: 9.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003993/0.3, allocations: 304.5 kB / 446.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.203e-05/0.3, allocations: 45.7 kB / 446.9 MB, free: 8.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.3002, allocations: 185.6 kB / 447.1 MB, free: 8.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.3004, allocations: 222.2 kB / 447.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001885/0.3006, allocations: 114.2 kB / 447.5 MB, free: 8.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.3007, allocations: 350.8 kB / 447.8 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005363/0.3013, allocations: 229.2 kB / 448 MB, free: 7.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005468/0.3018, allocations: 280.8 kB / 448.3 MB, free: 7.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008324/0.3027, allocations: 398.1 kB / 448.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3027, allocations: 0 / 448.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001744/0.3044, allocations: 0.7406 MB / 449.4 MB, free: 6.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.3044, allocations: 4 kB / 449.4 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3044, allocations: 4 kB / 449.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009324/0.3054, allocations: 385.4 kB / 449.8 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003368/0.3057, allocations: 79.91 kB / 449.9 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/0.3072, allocations: 1.401 MB / 451.3 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005226/0.3078, allocations: 80.03 kB / 451.4 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.232e-05/0.3078, allocations: 19.94 kB / 451.4 MB, free: 4.395 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.0002773/0.3081, allocations: 170.4 kB / 451.6 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.3082, allocations: 47.66 kB / 451.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001525/0.3083, allocations: 68.52 kB / 451.7 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.3084, allocations: 8 kB / 451.7 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.3084, allocations: 0 / 451.7 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.3084, allocations: 3.984 kB / 451.7 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002909/0.3113, allocations: 1.402 MB / 453.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.3113, allocations: 4 kB / 453.1 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000371/0.3117, allocations: 84.05 kB / 453.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007894/0.3124, allocations: 345.4 kB / 453.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.11e-05/0.3125, allocations: 23.97 kB / 453.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001425/0.3139, allocations: 1.366 MB / 454.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3139, allocations: 0 / 454.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002093/0.316, allocations: 1.045 MB / 455.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000254/0.3163, allocations: 95.69 kB / 456 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.52e-05/0.3164, allocations: 23.94 kB / 456.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004113/0.3168, allocations: 60.02 kB / 456.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002253/0.317, allocations: 100.2 kB / 456.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-05/0.3171, allocations: 27.97 kB / 456.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002477/0.3173, allocations: 219.1 kB / 456.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3173, allocations: 0 / 456.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004934/0.3178, allocations: 131.9 kB / 456.6 MB, free: 15.02 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.001449/0.3192, allocations: 388.5 kB / 457 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.3207, allocations: 0.5498 MB / 457.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3207, allocations: 0 / 457.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007852/0.3215, allocations: 323 kB / 457.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006838/0.3222, allocations: 97.91 kB / 457.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003949/0.3262, allocations: 1.508 MB / 459.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004995/0.3267, allocations: 0.84 MB / 460.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.3268, allocations: 43.42 kB / 460.3 MB, free: 11.35 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3268, allocations: 0 / 460.3 MB, free: 11.35 MB / 366.1 MB Notification: Performance of Templates: time 0.01351/0.3403, allocations: 9.147 MB / 469.5 MB, free: 2.203 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/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-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.810023703845218]