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.001281/0.001281, allocations: 113 kB / 19.04 MB, free: 3.254 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.001669/0.001669, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.465/1.465, allocations: 225.6 MB / 250.8 MB, free: 13.33 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.001512/0.001512, allocations: 51.92 kB / 368.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.259, allocations: 52.15 MB / 420.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004389/0.2634, allocations: 3.032 MB / 423.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002243/0.2657, allocations: 1.169 MB / 425.1 MB, free: 11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001839/0.2659, allocations: 4 kB / 425.1 MB, free: 11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004154/0.2663, allocations: 83.23 kB / 425.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002289/0.2665, allocations: 115 kB / 425.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009086/0.2674, allocations: 413.2 kB / 425.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008165/0.2682, allocations: 0.8113 MB / 426.5 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.2684, allocations: 61.62 kB / 426.5 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004722/0.2689, allocations: 363.1 kB / 426.9 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00147/0.2703, allocations: 1.346 MB / 428.2 MB, free: 7.824 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.2705, allocations: 68 kB / 428.3 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002166/0.2707, allocations: 115.9 kB / 428.4 MB, free: 7.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002337/0.2709, allocations: 231.8 kB / 428.6 MB, free: 7.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003355/0.2712, allocations: 346.1 kB / 429 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009879/0.2722, allocations: 0.8692 MB / 429.8 MB, free: 6.211 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.2722, allocations: 7.938 kB / 429.9 MB, free: 6.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2722, allocations: 0 / 429.9 MB, free: 6.203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.2722, allocations: 0 / 429.9 MB, free: 6.203 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.003743/0.276, allocations: 1.347 MB / 431.2 MB, free: 4.801 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.276, allocations: 12.03 kB / 431.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001634/0.2762, allocations: 80.45 kB / 431.3 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006552/0.2769, allocations: 440 kB / 431.7 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.49e-05/0.2769, allocations: 29.38 kB / 431.7 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.277, allocations: 40.33 kB / 431.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00202/0.279, allocations: 1.154 MB / 432.9 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.2791, allocations: 4 kB / 432.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.602e-05/0.2791, allocations: 16 kB / 433 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.2792, allocations: 8 kB / 433 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002774/0.2819, allocations: 1.748 MB / 434.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004491/0.2864, allocations: 2.475 MB / 437.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001787/0.2882, allocations: 0.8951 MB / 438.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001157/0.2894, allocations: 0.7045 MB / 438.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.69e-05/0.2894, allocations: 8.484 kB / 438.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001521/0.291, allocations: 0.9083 MB / 439.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.645e-06/0.291, allocations: 0 / 439.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.01129/0.3023, allocations: 5.785 MB / 445.5 MB, free: 6.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.275e-05/0.3023, allocations: 89.09 kB / 445.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001233/0.3036, allocations: 0.9103 MB / 446.5 MB, free: 5.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001216/0.3037, allocations: 53.69 kB / 446.5 MB, free: 5.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000273/0.3039, allocations: 292.7 kB / 446.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.3041, allocations: 182.6 kB / 447 MB, free: 4.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002916/0.3044, allocations: 114.3 kB / 447.1 MB, free: 4.496 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002747/0.3047, allocations: 378.8 kB / 447.5 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.3061, allocations: 0.8447 MB / 448.3 MB, free: 3.273 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.3075, allocations: 0.9363 MB / 449.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002144/0.3096, allocations: 1.472 MB / 450.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3096, allocations: 0 / 450.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003941/0.3136, allocations: 2.487 MB / 453.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/0.3136, allocations: 8 kB / 453.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.3136, allocations: 0 / 453.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002197/0.3158, allocations: 1.896 MB / 455.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005506/0.3164, allocations: 115.8 kB / 455.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008298/0.3247, allocations: 6.715 MB / 462 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.3261, allocations: 227.8 kB / 462.2 MB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.479e-05/0.3262, allocations: 23.98 kB / 462.2 MB, free: 5.008 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.0004415/0.3266, allocations: 263.8 kB / 462.5 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.3267, allocations: 71.53 kB / 462.5 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001744/0.3269, allocations: 106.2 kB / 462.6 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.3269, allocations: 4 kB / 462.6 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.3269, allocations: 3.984 kB / 462.6 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.3269, allocations: 8.031 kB / 462.7 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00423/0.3312, allocations: 3.087 MB / 465.7 MB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.3312, allocations: 0 / 465.7 MB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004941/0.3317, allocations: 87.92 kB / 465.8 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002114/0.3338, allocations: 1.865 MB / 467.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-05/0.3338, allocations: 19.97 kB / 467.7 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007339/0.3412, allocations: 6.323 MB / 474 MB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.3412, allocations: 12 kB / 474 MB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004994/0.3462, allocations: 3.229 MB / 477.3 MB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003907/0.3466, allocations: 208.6 kB / 477.5 MB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.3467, allocations: 27.98 kB / 477.5 MB, free: 5.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/0.3482, allocations: 267.6 kB / 477.8 MB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001453/0.3497, allocations: 0.5655 MB / 478.3 MB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.882e-05/0.3498, allocations: 27.97 kB / 478.4 MB, free: 4.395 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007794/0.3506, allocations: 0.6748 MB / 479 MB, free: 3.727 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3506, allocations: 0 / 479 MB, free: 3.727 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008858/0.3514, allocations: 191.9 kB / 479.2 MB, free: 3.539 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.0003109/0.3518, allocations: 151.1 kB / 479.4 MB, free: 3.383 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003058/0.3548, allocations: 1.87 MB / 481.2 MB, free: 1.492 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.3548, allocations: 4 kB / 481.2 MB, free: 1.488 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001832/0.3567, allocations: 1.07 MB / 482.3 MB, free: 404 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006457/0.3573, allocations: 79.02 kB / 482.4 MB, free: 320 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004303/0.3616, allocations: 1.994 MB / 484.4 MB, free: 14.28 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005671/0.3622, allocations: 0.9182 MB / 485.3 MB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002283/0.3624, allocations: 43.27 kB / 485.3 MB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/0.3625, allocations: 43.42 kB / 485.4 MB, free: 13.25 MB / 398.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3625, allocations: 0 / 485.4 MB, free: 13.25 MB / 398.1 MB Notification: Performance of Templates: time 0.03896/0.4015, allocations: 24.88 MB / 0.4983 GB, free: 4.387 MB / 414.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/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: 5.267130912281573]