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.001351/0.001351, allocations: 116.8 kB / 19.17 MB, free: 3.895 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.001439/0.001439, allocations: 214.6 kB / 22.13 MB, free: 0.9414 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.441/1.441, allocations: 230.4 MB / 255.4 MB, free: 14.99 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.001863/0.001863, allocations: 75.81 kB / 374.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1061, allocations: 53.3 MB / 428.1 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.006052/0.1121, allocations: 3.193 MB / 431.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2063/0.3184, allocations: 1.126 MB / 432.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004203/0.3188, allocations: 7.969 kB / 432.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004207/0.3192, allocations: 88.75 kB / 432.5 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000636/0.3199, allocations: 187.8 kB / 432.6 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005054/0.3204, allocations: 202.3 kB / 432.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008745/0.3212, allocations: 0.6652 MB / 433.5 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.3214, allocations: 91.66 kB / 433.6 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005182/0.322, allocations: 314.9 kB / 433.9 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000443/0.3224, allocations: 313.5 kB / 434.2 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.024e-05/0.3225, allocations: 50.09 kB / 434.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002338/0.3227, allocations: 111.6 kB / 434.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.3229, allocations: 137.2 kB / 434.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002328/0.3231, allocations: 268.1 kB / 434.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006773/0.3238, allocations: 0.6449 MB / 435.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3238, allocations: 0 / 435.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3238, allocations: 6.688 kB / 435.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.3238, allocations: 0 / 435.4 MB, free: 7.746 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.001419/0.3252, allocations: 0.8379 MB / 436.3 MB, free: 7.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.3252, allocations: 10.62 kB / 436.3 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002152/0.3255, allocations: 67.09 kB / 436.3 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000419/0.3259, allocations: 348.4 kB / 436.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.893e-05/0.3259, allocations: 35.47 kB / 436.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.718e-05/0.326, allocations: 46.27 kB / 436.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008912/0.3269, allocations: 476.1 kB / 437.2 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.641e-05/0.3269, allocations: 4.875 kB / 437.2 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.888e-05/0.327, allocations: 14.97 kB / 437.2 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.327, allocations: 11.22 kB / 437.2 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.328, allocations: 469.1 kB / 437.7 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.33, allocations: 1.138 MB / 438.8 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008619/0.3308, allocations: 400.3 kB / 439.2 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004956/0.3313, allocations: 250.8 kB / 439.5 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.593e-05/0.3314, allocations: 5.938 kB / 439.5 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.607e-05/0.3314, allocations: 38.8 kB / 439.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 1.694e-06/0.3314, allocations: 0.5 kB / 439.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.004914/0.3363, allocations: 2.331 MB / 441.9 MB, free: 4.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.49e-05/0.3363, allocations: 62.83 kB / 441.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002982/0.3366, allocations: 303.9 kB / 442.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.902e-05/0.3367, allocations: 50.09 kB / 442.3 MB, free: 4.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.537e-05/0.3368, allocations: 182.7 kB / 442.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.3369, allocations: 220.2 kB / 442.7 MB, free: 4.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002089/0.3371, allocations: 110 kB / 442.8 MB, free: 4.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.778e-05/0.3372, allocations: 356.3 kB / 443.1 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005015/0.3377, allocations: 226.1 kB / 443.3 MB, free: 3.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004927/0.3382, allocations: 280.8 kB / 443.6 MB, free: 3.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000715/0.3389, allocations: 394.2 kB / 444 MB, free: 3.469 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3389, allocations: 0 / 444 MB, free: 3.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001528/0.3404, allocations: 0.7421 MB / 444.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.3405, allocations: 5.281 kB / 444.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3405, allocations: 0.5156 kB / 444.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008488/0.3413, allocations: 381.1 kB / 445.1 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003208/0.3416, allocations: 88.83 kB / 445.2 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.3427, allocations: 1.402 MB / 446.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004904/0.3432, allocations: 72.41 kB / 446.7 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.356e-05/0.3432, allocations: 19.27 kB / 446.7 MB, free: 1.777 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.0001854/0.3434, allocations: 173.4 kB / 446.9 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.52e-05/0.3435, allocations: 50.36 kB / 446.9 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001287/0.3436, allocations: 63.41 kB / 447 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3436, allocations: 6.344 kB / 447 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.3437, allocations: 1.734 kB / 447 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.3437, allocations: 3.047 kB / 447 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002537/0.3462, allocations: 1.437 MB / 448.4 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.3462, allocations: 2.156 kB / 448.4 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003589/0.3466, allocations: 87.64 kB / 448.5 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007099/0.3473, allocations: 353.2 kB / 448.9 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.217e-05/0.3473, allocations: 20.61 kB / 448.9 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/0.3485, allocations: 1.365 MB / 450.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.3486, allocations: 5.281 kB / 450.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002071/0.3506, allocations: 1.043 MB / 451.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002291/0.3509, allocations: 176.3 kB / 451.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.125e-05/0.3509, allocations: 21.88 kB / 451.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004406/0.3514, allocations: 61.55 kB / 451.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002236/0.3516, allocations: 93.41 kB / 451.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.536e-05/0.3517, allocations: 27.7 kB / 451.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00026/0.3519, allocations: 222.4 kB / 451.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3519, allocations: 0 / 451.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004898/0.3524, allocations: 126.7 kB / 452 MB, free: 14.59 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.001307/0.3537, allocations: 397.7 kB / 452.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.355, allocations: 0.5361 MB / 452.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.355, allocations: 3.938 kB / 452.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007076/0.3557, allocations: 326.8 kB / 453.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006224/0.3563, allocations: 92.88 kB / 453.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003914/0.3603, allocations: 1.522 MB / 454.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005134/0.3608, allocations: 0.8317 MB / 455.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.3609, allocations: 47.17 kB / 455.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3609, allocations: 0 / 455.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of Templates: time 0.01284/0.3737, allocations: 9.15 MB / 464.9 MB, free: 8.359 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.355252399807796]