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.001397/0.001397, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001501/0.001501, allocations: 208.3 kB / 23.73 MB, free: 4.523 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.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.001487/0.001487, allocations: 51.92 kB / 378.2 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2652, allocations: 53.36 MB / 431.6 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004826/0.27, allocations: 2.961 MB / 434.5 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002052/0.2721, allocations: 1.083 MB / 435.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.2722, allocations: 7.938 kB / 435.6 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003209/0.2725, allocations: 87.23 kB / 435.7 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004192/0.273, allocations: 190.6 kB / 435.9 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004363/0.2734, allocations: 211.7 kB / 436.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006897/0.2741, allocations: 0.6705 MB / 436.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002149/0.2743, allocations: 99.84 kB / 436.9 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004382/0.2747, allocations: 311.1 kB / 437.2 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00041/0.2751, allocations: 318.8 kB / 437.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.185e-05/0.2752, allocations: 52 kB / 437.5 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002194/0.2755, allocations: 112 kB / 437.6 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001829/0.2756, allocations: 139.6 kB / 437.8 MB, free: 484 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002353/0.2759, allocations: 226.9 kB / 438 MB, free: 256 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007439/0.2766, allocations: 0.6535 MB / 438.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.2766, allocations: 0 / 438.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.2766, allocations: 0 / 438.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.2766, allocations: 0 / 438.7 MB, free: 15.6 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.00156/0.2782, allocations: 0.7737 MB / 439.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.2782, allocations: 8.031 kB / 439.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002299/0.2785, allocations: 68.55 kB / 439.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005678/0.279, allocations: 286.3 kB / 439.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.106e-05/0.2791, allocations: 29.38 kB / 439.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.703e-05/0.2792, allocations: 44.33 kB / 439.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009174/0.2801, allocations: 482.6 kB / 440.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.606e-05/0.2801, allocations: 7.891 kB / 440.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.78e-05/0.2802, allocations: 16 kB / 440.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.2802, allocations: 19.92 kB / 440.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009853/0.2812, allocations: 459.7 kB / 440.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.2832, allocations: 0.9276 MB / 441.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009192/0.2841, allocations: 400.5 kB / 442.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005323/0.2847, allocations: 250.2 kB / 442.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.937e-05/0.2847, allocations: 8.5 kB / 442.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.2847, allocations: 39.06 kB / 442.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 1.904e-06/0.2847, allocations: 0 / 442.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.00519/0.2899, allocations: 2.006 MB / 444.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.29, allocations: 63.84 kB / 444.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003326/0.2903, allocations: 288.2 kB / 444.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.776e-05/0.2904, allocations: 41.7 kB / 444.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.2905, allocations: 189.6 kB / 445 MB, free: 9.043 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002068/0.2907, allocations: 226.1 kB / 445.2 MB, free: 8.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/0.2909, allocations: 106.3 kB / 445.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.2911, allocations: 350.8 kB / 445.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005084/0.2916, allocations: 229.2 kB / 445.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005196/0.2921, allocations: 280.7 kB / 446.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007935/0.2929, allocations: 390.1 kB / 446.6 MB, free: 7.469 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.2929, allocations: 4 kB / 446.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001645/0.2946, allocations: 0.7445 MB / 447.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.2946, allocations: 4 kB / 447.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2946, allocations: 0 / 447.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000906/0.2955, allocations: 385.3 kB / 447.7 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003342/0.2958, allocations: 79.89 kB / 447.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001563/0.2974, allocations: 1.401 MB / 449.2 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004975/0.2979, allocations: 71.94 kB / 449.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.273e-05/0.298, allocations: 20 kB / 449.3 MB, free: 4.699 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.0002578/0.2982, allocations: 174.5 kB / 449.4 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.2983, allocations: 47.66 kB / 449.5 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001411/0.2985, allocations: 59.69 kB / 449.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.2985, allocations: 7.938 kB / 449.5 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.2985, allocations: 4 kB / 449.5 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.2985, allocations: 3.984 kB / 449.5 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002804/0.3013, allocations: 1.27 MB / 450.8 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.3013, allocations: 0 / 450.8 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003859/0.3017, allocations: 83.89 kB / 450.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007806/0.3025, allocations: 349.6 kB / 451.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.047e-05/0.3025, allocations: 23.97 kB / 451.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/0.3039, allocations: 1.362 MB / 452.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3039, allocations: 0 / 452.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002112/0.306, allocations: 1.045 MB / 453.7 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002385/0.3063, allocations: 95.67 kB / 453.8 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.357e-05/0.3064, allocations: 20 kB / 453.8 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004517/0.3068, allocations: 60.05 kB / 453.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002341/0.3071, allocations: 108.2 kB / 453.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.725e-05/0.3071, allocations: 31.97 kB / 454 MB, free: 15.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.3073, allocations: 203.1 kB / 454.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3073, allocations: 0 / 454.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004988/0.3078, allocations: 128 kB / 454.3 MB, free: 15.49 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.00152/0.3094, allocations: 407.3 kB / 454.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.3107, allocations: 0.542 MB / 455.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3107, allocations: 0 / 455.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007665/0.3115, allocations: 334.6 kB / 455.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006533/0.3121, allocations: 87.3 kB / 455.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003948/0.3161, allocations: 1.487 MB / 457.1 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002473/0.3163, allocations: 225.2 kB / 457.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001758/0.3165, allocations: 43.3 kB / 457.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.3166, allocations: 43.41 kB / 457.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3166, allocations: 0 / 457.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of Templates: time 0.0174/0.334, allocations: 9.26 MB / 466.7 MB, free: 3.246 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/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_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: 4.890977738890797]