Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.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.001544/0.001544, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001849/0.001849, allocations: 215 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 58.58 kB / 347.7 MB, free: 9.387 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3202, allocations: 49.15 MB / 396.8 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004082/0.3242, allocations: 2.77 MB / 399.6 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001942/0.3262, allocations: 1.171 MB / 400.8 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002119/0.3264, allocations: 9.406 kB / 400.8 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004548/0.3268, allocations: 81.55 kB / 400.9 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002096/0.3271, allocations: 125.7 kB / 401 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008929/0.3279, allocations: 414.6 kB / 401.4 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006578/0.3286, allocations: 0.8071 MB / 402.2 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.3288, allocations: 69.98 kB / 402.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004336/0.3292, allocations: 368.5 kB / 402.6 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001615/0.3308, allocations: 1.317 MB / 403.9 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000162/0.331, allocations: 68.12 kB / 404 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000262/0.3312, allocations: 115.2 kB / 404.1 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.3314, allocations: 228.5 kB / 404.3 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002802/0.3317, allocations: 289.8 kB / 404.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.3327, allocations: 0.8872 MB / 405.5 MB, free: 4.949 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3327, allocations: 1.125 kB / 405.5 MB, free: 4.949 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3327, allocations: 0 / 405.5 MB, free: 4.949 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.3327, allocations: 4 kB / 405.5 MB, free: 4.945 MB / 318.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.003632/0.3364, allocations: 1.413 MB / 406.9 MB, free: 4.066 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.3364, allocations: 13.58 kB / 406.9 MB, free: 4.062 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.3366, allocations: 78.97 kB / 407 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005961/0.3372, allocations: 373.5 kB / 407.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.043e-05/0.3372, allocations: 29.41 kB / 407.4 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.144e-05/0.3373, allocations: 39.83 kB / 407.5 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001784/0.3391, allocations: 1.155 MB / 408.6 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/0.3391, allocations: 5.453 kB / 408.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.687e-05/0.3392, allocations: 20.53 kB / 408.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.3392, allocations: 8.188 kB / 408.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002558/0.3417, allocations: 1.739 MB / 410.4 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004359/0.3461, allocations: 2.24 MB / 412.6 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001951/0.3481, allocations: 0.8929 MB / 413.5 MB, free: 1.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001342/0.3494, allocations: 0.6975 MB / 414.2 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.101e-05/0.3495, allocations: 8.844 kB / 414.2 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001444/0.3509, allocations: 0.9088 MB / 415.1 MB, free: 408 kB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.705e-06/0.3509, allocations: 4 kB / 415.1 MB, free: 404 kB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.0117/0.3626, allocations: 5.416 MB / 420.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/0.3627, allocations: 85.11 kB / 420.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001302/0.364, allocations: 0.9179 MB / 421.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.3641, allocations: 45.7 kB / 421.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002633/0.3643, allocations: 296.6 kB / 421.9 MB, free: 9.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.3645, allocations: 170.7 kB / 422.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002504/0.3648, allocations: 118.2 kB / 422.2 MB, free: 9.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002065/0.365, allocations: 378.8 kB / 422.5 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001464/0.3665, allocations: 0.8486 MB / 423.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001459/0.3679, allocations: 0.9402 MB / 424.3 MB, free: 7.371 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002336/0.3702, allocations: 1.468 MB / 425.8 MB, free: 5.871 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-06/0.3703, allocations: 8 kB / 425.8 MB, free: 5.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004138/0.3744, allocations: 2.471 MB / 428.3 MB, free: 3.375 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.3744, allocations: 8 kB / 428.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.3744, allocations: 0 / 428.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00231/0.3767, allocations: 1.904 MB / 430.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005589/0.3773, allocations: 111.9 kB / 430.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008748/0.386, allocations: 6.429 MB / 436.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001666/0.3877, allocations: 227.8 kB / 436.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.583e-05/0.3878, allocations: 28.03 kB / 437 MB, free: 10.44 MB / 350.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.0005479/0.3883, allocations: 256.3 kB / 437.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.3885, allocations: 83.5 kB / 437.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002293/0.3887, allocations: 102.1 kB / 437.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.3887, allocations: 8 kB / 437.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.3887, allocations: 0 / 437.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3888, allocations: 0 / 437.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004768/0.3935, allocations: 2.899 MB / 440.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.3935, allocations: 0 / 440.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000551/0.3941, allocations: 83.94 kB / 440.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002304/0.3964, allocations: 1.865 MB / 442.3 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-05/0.3965, allocations: 19.97 kB / 442.3 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007686/0.4041, allocations: 6.07 MB / 448.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4041, allocations: 0 / 448.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005547/0.4097, allocations: 3.217 MB / 451.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000499/0.4102, allocations: 135.4 kB / 451.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.4103, allocations: 27.98 kB / 451.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001729/0.412, allocations: 267.6 kB / 452 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001444/0.4135, allocations: 0.581 MB / 452.6 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-05/0.4136, allocations: 23.97 kB / 452.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008582/0.4144, allocations: 0.6709 MB / 453.3 MB, free: 9.812 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4144, allocations: 0 / 453.3 MB, free: 9.812 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008408/0.4153, allocations: 195.9 kB / 453.5 MB, free: 9.621 MB / 366.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.000295/0.4156, allocations: 151.1 kB / 453.6 MB, free: 9.465 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003534/0.4191, allocations: 1.875 MB / 455.5 MB, free: 7.562 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/0.4191, allocations: 4 kB / 455.5 MB, free: 7.559 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00214/0.4212, allocations: 1.081 MB / 456.6 MB, free: 6.453 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008761/0.4221, allocations: 70.84 kB / 456.6 MB, free: 6.379 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004795/0.4269, allocations: 1.977 MB / 458.6 MB, free: 4.363 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004348/0.4273, allocations: 326.6 kB / 458.9 MB, free: 4.023 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002892/0.4276, allocations: 43.27 kB / 459 MB, free: 3.984 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.4278, allocations: 43.42 kB / 459 MB, free: 3.941 MB / 366.1 MB Notification: Performance of SimCode: time 2.936e-06/0.4278, allocations: 4 kB / 459 MB, free: 3.938 MB / 366.1 MB Notification: Performance of Templates: time 0.03357/0.4614, allocations: 20.16 MB / 479.2 MB, free: 15.67 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.954744575545192]