Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.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.00184/0.00184, allocations: 100 kB / 21.18 MB, free: 0.6484 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.002501/0.002501, allocations: 187.3 kB / 24.45 MB, free: 3.961 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.555/1.555, allocations: 225.7 MB / 253.3 MB, free: 12.81 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.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 47.92 kB / 371.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2594, allocations: 52.17 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004719/0.2641, allocations: 2.792 MB / 426.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002388/0.2665, allocations: 1.13 MB / 427.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002439/0.2667, allocations: 7.938 kB / 427.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004461/0.2672, allocations: 83.28 kB / 427.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003045/0.2675, allocations: 122.9 kB / 427.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001031/0.2685, allocations: 425.3 kB / 428.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000978/0.2695, allocations: 0.7996 MB / 429.1 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.2697, allocations: 69.53 kB / 429.2 MB, free: 9.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000626/0.2703, allocations: 363.1 kB / 429.6 MB, free: 8.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001729/0.272, allocations: 1.303 MB / 430.9 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002039/0.2722, allocations: 68 kB / 430.9 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002857/0.2725, allocations: 119.9 kB / 431.1 MB, free: 7.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002666/0.2728, allocations: 235.8 kB / 431.3 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003587/0.2732, allocations: 294.5 kB / 431.6 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001062/0.2742, allocations: 0.8822 MB / 432.5 MB, free: 5.812 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2742, allocations: 0 / 432.5 MB, free: 5.812 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2742, allocations: 0 / 432.5 MB, free: 5.812 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.2742, allocations: 0 / 432.5 MB, free: 5.812 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.004034/0.2783, allocations: 1.412 MB / 433.9 MB, free: 4.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.2783, allocations: 8.031 kB / 433.9 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001688/0.2785, allocations: 84.42 kB / 434 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007104/0.2792, allocations: 378.2 kB / 434.3 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.693e-05/0.2792, allocations: 29.38 kB / 434.4 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.2793, allocations: 32.38 kB / 434.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.2814, allocations: 1.165 MB / 435.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.2814, allocations: 0 / 435.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.433e-05/0.2815, allocations: 16 kB / 435.6 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.2815, allocations: 12 kB / 435.6 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003036/0.2845, allocations: 1.732 MB / 437.3 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004669/0.2892, allocations: 2.257 MB / 439.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00181/0.291, allocations: 0.8796 MB / 440.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001262/0.2923, allocations: 0.7011 MB / 441.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.389e-05/0.2923, allocations: 11.94 kB / 441.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001607/0.2939, allocations: 0.9006 MB / 442.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 4.108e-06/0.2939, allocations: 3.938 kB / 442.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.01239/0.3063, allocations: 5.417 MB / 447.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/0.3064, allocations: 81.11 kB / 447.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001361/0.3077, allocations: 0.918 MB / 448.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001175/0.3079, allocations: 53.69 kB / 448.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002789/0.3081, allocations: 284.7 kB / 448.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002158/0.3084, allocations: 178.6 kB / 449 MB, free: 4.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002659/0.3086, allocations: 118.3 kB / 449.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.3088, allocations: 378.8 kB / 449.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001458/0.3103, allocations: 0.8486 MB / 450.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/0.3119, allocations: 0.9363 MB / 451.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002483/0.3143, allocations: 1.472 MB / 452.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.3143, allocations: 4 kB / 452.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004248/0.3186, allocations: 2.473 MB / 455.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.3186, allocations: 11.28 kB / 455.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.3186, allocations: 0 / 455.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002357/0.321, allocations: 1.904 MB / 457.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005472/0.3215, allocations: 111.9 kB / 457.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008916/0.3304, allocations: 6.425 MB / 463.7 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001522/0.332, allocations: 227.8 kB / 463.9 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.812e-05/0.3321, allocations: 32.23 kB / 463.9 MB, free: 5.734 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000503/0.3326, allocations: 260.4 kB / 464.2 MB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001885/0.3327, allocations: 71.52 kB / 464.2 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000235/0.333, allocations: 102.2 kB / 464.3 MB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.333, allocations: 8 kB / 464.3 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.333, allocations: 0 / 464.3 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.333, allocations: 3.984 kB / 464.3 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004932/0.3379, allocations: 2.895 MB / 467.2 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.3379, allocations: 4.062 kB / 467.2 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004999/0.3384, allocations: 83.88 kB / 467.3 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002208/0.3406, allocations: 1.873 MB / 469.2 MB, free: 380 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.237e-05/0.3407, allocations: 19.97 kB / 469.2 MB, free: 360 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007703/0.3484, allocations: 6.055 MB / 475.3 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3484, allocations: 4.062 kB / 475.3 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005511/0.3539, allocations: 3.229 MB / 478.5 MB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004352/0.3544, allocations: 131.5 kB / 478.6 MB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.3545, allocations: 27.98 kB / 478.7 MB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001775/0.3563, allocations: 263.6 kB / 478.9 MB, free: 6.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001483/0.3578, allocations: 0.5849 MB / 479.5 MB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.479e-05/0.3579, allocations: 24.28 kB / 479.5 MB, free: 5.773 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008747/0.3587, allocations: 0.6787 MB / 480.2 MB, free: 5.102 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3587, allocations: 0 / 480.2 MB, free: 5.102 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008525/0.3596, allocations: 187.9 kB / 480.4 MB, free: 4.918 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003249/0.3599, allocations: 155.6 kB / 480.5 MB, free: 4.758 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003401/0.3633, allocations: 1.873 MB / 482.4 MB, free: 2.863 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3633, allocations: 0 / 482.4 MB, free: 2.863 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001787/0.3651, allocations: 1.033 MB / 483.4 MB, free: 1.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006109/0.3657, allocations: 74.17 kB / 483.5 MB, free: 1.734 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004595/0.3703, allocations: 2.04 MB / 485.6 MB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/0.3707, allocations: 322.7 kB / 485.9 MB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.3709, allocations: 47.42 kB / 485.9 MB, free: 15.26 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3709, allocations: 0 / 485.9 MB, free: 15.26 MB / 398.1 MB Notification: Performance of Templates: time 0.02249/0.3933, allocations: 14 MB / 499.9 MB, free: 1.262 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.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: 9.290250579826534]