Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001796/0.001796, allocations: 108.6 kB / 21.18 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002076/0.002076, allocations: 189.2 kB / 24.48 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 43.92 kB / 371.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.275, allocations: 52.18 MB / 423.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004616/0.2796, allocations: 3.08 MB / 427 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001995/0.2816, allocations: 0.9349 MB / 427.9 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002118/0.2819, allocations: 11.94 kB / 427.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002672/0.2821, allocations: 63.31 kB / 428 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002807/0.2824, allocations: 142.9 kB / 428.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006008/0.283, allocations: 215.6 kB / 428.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007082/0.2837, allocations: 0.6394 MB / 429 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002169/0.2839, allocations: 88.7 kB / 429 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003872/0.2843, allocations: 291.1 kB / 429.3 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004274/0.2847, allocations: 306.9 kB / 429.6 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.371e-05/0.2848, allocations: 48 kB / 429.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.285, allocations: 103.9 kB / 429.8 MB, free: 8.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.2852, allocations: 123.6 kB / 429.9 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002474/0.2854, allocations: 250.8 kB / 430.1 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006969/0.2861, allocations: 0.6005 MB / 430.7 MB, free: 7.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2861, allocations: 0 / 430.7 MB, free: 7.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2861, allocations: 0 / 430.7 MB, free: 7.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.2861, allocations: 0 / 430.7 MB, free: 7.793 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001391/0.2875, allocations: 0.7155 MB / 431.5 MB, free: 7.047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.2876, allocations: 12.03 kB / 431.5 MB, free: 7.035 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.2877, allocations: 56.61 kB / 431.5 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/0.2882, allocations: 269.2 kB / 431.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.627e-05/0.2882, allocations: 29.38 kB / 431.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.534e-05/0.2883, allocations: 44.38 kB / 431.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008654/0.2892, allocations: 486.4 kB / 432.3 MB, free: 6.141 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.2892, allocations: 7.953 kB / 432.3 MB, free: 6.133 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.095e-05/0.2892, allocations: 12 kB / 432.4 MB, free: 6.121 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.2892, allocations: 16 kB / 432.4 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000911/0.2901, allocations: 479.7 kB / 432.8 MB, free: 5.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.2922, allocations: 1.083 MB / 433.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008156/0.293, allocations: 364.3 kB / 434.3 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005123/0.2935, allocations: 245.4 kB / 434.5 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.342e-05/0.2936, allocations: 12.44 kB / 434.5 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.2936, allocations: 38.98 kB / 434.6 MB, free: 3.836 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 1.974e-06/0.2936, allocations: 0 / 434.6 MB, free: 3.836 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004963/0.2986, allocations: 2.04 MB / 436.6 MB, free: 1.738 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.2986, allocations: 59.84 kB / 436.7 MB, free: 1.668 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003532/0.299, allocations: 288.6 kB / 436.9 MB, free: 1.383 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.529e-05/0.2991, allocations: 37.7 kB / 437 MB, free: 1.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.2992, allocations: 185.6 kB / 437.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.2994, allocations: 210.2 kB / 437.4 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002065/0.2996, allocations: 106.3 kB / 437.5 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002051/0.2998, allocations: 350.8 kB / 437.8 MB, free: 496 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004864/0.3003, allocations: 241.2 kB / 438.1 MB, free: 252 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005374/0.3008, allocations: 292.8 kB / 438.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000797/0.3016, allocations: 410.1 kB / 438.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3016, allocations: 0 / 438.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001734/0.3034, allocations: 0.7874 MB / 439.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.3034, allocations: 4 kB / 439.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.3034, allocations: 0 / 439.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009769/0.3044, allocations: 0.4974 MB / 440 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003645/0.3047, allocations: 91.83 kB / 440.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001496/0.3062, allocations: 1.405 MB / 441.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004676/0.3067, allocations: 72.06 kB / 441.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.023e-05/0.3068, allocations: 27.98 kB / 441.6 MB, free: 12.6 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 (57): * Single equations (assignments): 55 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002729/0.307, allocations: 166.5 kB / 441.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.407e-05/0.3071, allocations: 47.72 kB / 441.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001336/0.3073, allocations: 55.73 kB / 441.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.3073, allocations: 4 kB / 441.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.3073, allocations: 0 / 441.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.3073, allocations: 3.984 kB / 441.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002934/0.3102, allocations: 1.405 MB / 443.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.3102, allocations: 7.938 kB / 443.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003652/0.3106, allocations: 79.89 kB / 443.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008458/0.3114, allocations: 485.5 kB / 443.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.057e-05/0.3115, allocations: 27.92 kB / 443.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/0.3129, allocations: 1.37 MB / 445.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3129, allocations: 8.062 kB / 445.3 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002154/0.315, allocations: 1.083 MB / 446.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002648/0.3153, allocations: 95.67 kB / 446.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.902e-05/0.3154, allocations: 19.94 kB / 446.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004139/0.3158, allocations: 59.88 kB / 446.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/0.316, allocations: 100.2 kB / 446.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.597e-05/0.3161, allocations: 24.09 kB / 446.6 MB, free: 7.402 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002297/0.3163, allocations: 203.1 kB / 446.8 MB, free: 7.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3163, allocations: 0 / 446.8 MB, free: 7.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005074/0.3168, allocations: 136 kB / 447 MB, free: 7.07 MB / 350.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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002559/0.3171, allocations: 135.1 kB / 447.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.3184, allocations: 0.5571 MB / 447.7 MB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3184, allocations: 64 / 447.7 MB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007123/0.3191, allocations: 322.2 kB / 448 MB, free: 6.062 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006257/0.3197, allocations: 95.92 kB / 448.1 MB, free: 5.969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00402/0.3237, allocations: 1.473 MB / 449.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005761/0.3243, allocations: 0.8124 MB / 450.4 MB, free: 3.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001493/0.3244, allocations: 43.42 kB / 450.4 MB, free: 3.562 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3244, allocations: 0 / 450.4 MB, free: 3.562 MB / 350.1 MB Notification: Performance of Templates: time 0.01437/0.3388, allocations: 8.615 MB / 459 MB, free: 10.95 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.868616811931133]