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.001932/0.001932, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.002264/0.002264, allocations: 184 kB / 23.72 MB, free: 4.711 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.421/1.421, allocations: 225.6 MB / 252.5 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.001549/0.001549, allocations: 51.91 kB / 370.9 MB, free: 9.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2595, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004764/0.2643, allocations: 3.065 MB / 426.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.2662, allocations: 0.9465 MB / 427.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002845/0.2665, allocations: 11.94 kB / 427.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002948/0.2668, allocations: 67.31 kB / 427.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003497/0.2671, allocations: 138.8 kB / 427.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006264/0.2678, allocations: 223.6 kB / 427.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007682/0.2685, allocations: 0.6355 MB / 428.2 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002075/0.2687, allocations: 88.7 kB / 428.3 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004168/0.2692, allocations: 291.1 kB / 428.6 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004426/0.2696, allocations: 310.8 kB / 428.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001/0.2697, allocations: 48 kB / 428.9 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002284/0.2699, allocations: 95.95 kB / 429 MB, free: 8.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001576/0.2701, allocations: 123.6 kB / 429.1 MB, free: 8.648 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002843/0.2704, allocations: 254.8 kB / 429.4 MB, free: 8.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007858/0.2712, allocations: 0.5966 MB / 430 MB, free: 7.805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2712, allocations: 4 kB / 430 MB, free: 7.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2712, allocations: 0 / 430 MB, free: 7.801 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.2712, allocations: 0 / 430 MB, free: 7.801 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.001655/0.2728, allocations: 0.7194 MB / 430.7 MB, free: 7.051 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2729, allocations: 12.03 kB / 430.7 MB, free: 7.039 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.273, allocations: 60.59 kB / 430.8 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005106/0.2735, allocations: 257.2 kB / 431 MB, free: 6.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.947e-05/0.2736, allocations: 33.38 kB / 431.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.54e-05/0.2737, allocations: 44.36 kB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.2747, allocations: 474.6 kB / 431.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/0.2747, allocations: 3.953 kB / 431.6 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.205e-05/0.2748, allocations: 23.98 kB / 431.6 MB, free: 6.133 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.2748, allocations: 16 kB / 431.6 MB, free: 6.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.2758, allocations: 475.7 kB / 432.1 MB, free: 5.652 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002211/0.278, allocations: 1.079 MB / 433.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008718/0.2789, allocations: 364.3 kB / 433.5 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005502/0.2794, allocations: 246 kB / 433.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.862e-05/0.2795, allocations: 20.41 kB / 433.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.2795, allocations: 39 kB / 433.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.084e-06/0.2795, allocations: 0 / 433.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.005368/0.2849, allocations: 2.033 MB / 435.8 MB, free: 1.754 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.2849, allocations: 63.84 kB / 435.9 MB, free: 1.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.2852, allocations: 284.6 kB / 436.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.611e-05/0.2853, allocations: 37.7 kB / 436.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.2855, allocations: 193.6 kB / 436.4 MB, free: 1.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/0.2856, allocations: 206.3 kB / 436.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002065/0.2858, allocations: 110.3 kB / 436.7 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.286, allocations: 350.8 kB / 437.1 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000523/0.2865, allocations: 241.2 kB / 437.3 MB, free: 260 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005463/0.2871, allocations: 288.8 kB / 437.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008175/0.2879, allocations: 410.1 kB / 438 MB, free: 15.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2879, allocations: 0 / 438 MB, free: 15.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001728/0.2896, allocations: 0.7874 MB / 438.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.2896, allocations: 11.94 kB / 438.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2897, allocations: 0 / 438.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009507/0.2906, allocations: 0.4896 MB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003501/0.291, allocations: 91.83 kB / 439.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.2924, allocations: 1.405 MB / 440.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005146/0.2929, allocations: 72.06 kB / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.116e-05/0.293, allocations: 23.98 kB / 440.8 MB, free: 12.61 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.0002381/0.2932, allocations: 174.5 kB / 441 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.309e-05/0.2933, allocations: 43.72 kB / 441.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001404/0.2934, allocations: 59.73 kB / 441.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.2935, allocations: 4 kB / 441.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.2935, allocations: 3.984 kB / 441.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.2935, allocations: 0 / 441.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002971/0.2964, allocations: 1.401 MB / 442.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.2964, allocations: 7.938 kB / 442.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003702/0.2968, allocations: 83.89 kB / 442.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008249/0.2976, allocations: 477.5 kB / 443.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-05/0.2977, allocations: 27.91 kB / 443.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001424/0.2991, allocations: 1.37 MB / 444.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2991, allocations: 8.156 kB / 444.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002254/0.3014, allocations: 1.095 MB / 445.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002224/0.3016, allocations: 87.69 kB / 445.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.3017, allocations: 27.94 kB / 445.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004666/0.3022, allocations: 59.86 kB / 445.8 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002259/0.3024, allocations: 100.2 kB / 445.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.563e-05/0.3024, allocations: 19.98 kB / 445.9 MB, free: 7.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000234/0.3027, allocations: 207.1 kB / 446.1 MB, free: 7.207 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3027, allocations: 0 / 446.1 MB, free: 7.207 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005101/0.3032, allocations: 135.9 kB / 446.2 MB, free: 7.074 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.0003003/0.3035, allocations: 145.3 kB / 446.3 MB, free: 6.922 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.3049, allocations: 0.5533 MB / 446.9 MB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3049, allocations: 0 / 446.9 MB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008276/0.3058, allocations: 334.3 kB / 447.2 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006849/0.3064, allocations: 68.56 kB / 447.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004259/0.3107, allocations: 1.437 MB / 448.7 MB, free: 4.496 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005059/0.3112, allocations: 0.8202 MB / 449.6 MB, free: 3.652 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001847/0.3114, allocations: 39.28 kB / 449.6 MB, free: 3.617 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.3115, allocations: 35.42 kB / 449.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3115, allocations: 0 / 449.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of Templates: time 0.0199/0.3314, allocations: 10.54 MB / 460.2 MB, free: 9.094 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/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: 4.824507540091872]