Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.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.001914/0.001914, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002319/0.002319, allocations: 206.4 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 230.5 MB / 257.4 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 71.89 kB / 378.2 MB, free: 2.316 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2857, allocations: 53.4 MB / 431.6 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004989/0.2907, allocations: 2.909 MB / 434.5 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002611/0.2933, allocations: 1.278 MB / 435.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001793/0.2935, allocations: 4 kB / 435.8 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005467/0.294, allocations: 111.1 kB / 435.9 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002456/0.2942, allocations: 126.9 kB / 436 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009648/0.2952, allocations: 430.2 kB / 436.5 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008461/0.2961, allocations: 0.8154 MB / 437.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.2962, allocations: 61.7 kB / 437.3 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005508/0.2968, allocations: 383.1 kB / 437.7 MB, free: 424 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001661/0.2985, allocations: 1.44 MB / 439.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.2986, allocations: 68 kB / 439.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003045/0.2989, allocations: 136 kB / 439.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000286/0.2992, allocations: 235.8 kB / 439.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003129/0.2995, allocations: 298.4 kB / 439.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.3006, allocations: 0.9206 MB / 440.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.3006, allocations: 3.938 kB / 440.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3006, allocations: 4 kB / 440.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.536e-05/0.3006, allocations: 0 / 440.8 MB, free: 13.32 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003991/0.3046, allocations: 1.439 MB / 442.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.3046, allocations: 11.98 kB / 442.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004904/0.3051, allocations: 104.4 kB / 442.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007075/0.3058, allocations: 386.1 kB / 442.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.076e-05/0.3059, allocations: 29.38 kB / 442.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.91e-05/0.306, allocations: 36.38 kB / 442.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.3075, allocations: 0.6419 MB / 443.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.3075, allocations: 3.953 kB / 443.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.49e-05/0.3076, allocations: 16 kB / 443.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.3076, allocations: 8 kB / 443.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001885/0.3095, allocations: 0.6896 MB / 444.2 MB, free: 9.879 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003424/0.3129, allocations: 1.429 MB / 445.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001356/0.3143, allocations: 485.6 kB / 446.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008367/0.3151, allocations: 285.5 kB / 446.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.789e-05/0.3152, allocations: 4 kB / 446.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001162/0.3163, allocations: 498.8 kB / 446.8 MB, free: 7.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.864e-06/0.3163, allocations: 0 / 446.8 MB, free: 7.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.008851/0.3252, allocations: 2.434 MB / 449.3 MB, free: 4.609 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.332e-05/0.3252, allocations: 81.11 kB / 449.3 MB, free: 4.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009936/0.3262, allocations: 0.9218 MB / 450.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.078e-05/0.3263, allocations: 49.69 kB / 450.3 MB, free: 3.523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002397/0.3265, allocations: 292.7 kB / 450.6 MB, free: 3.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/0.3267, allocations: 174.7 kB / 450.8 MB, free: 3.059 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002446/0.327, allocations: 126.2 kB / 450.9 MB, free: 2.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002023/0.3272, allocations: 382.7 kB / 451.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009192/0.3281, allocations: 321.1 kB / 451.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009686/0.3291, allocations: 418.9 kB / 452 MB, free: 1.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/0.3305, allocations: 0.5031 MB / 452.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3305, allocations: 0 / 452.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002776/0.3333, allocations: 0.9874 MB / 453.5 MB, free: 268 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.3333, allocations: 8.031 kB / 453.5 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3333, allocations: 4 kB / 453.5 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/0.3344, allocations: 0.549 MB / 454 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005419/0.335, allocations: 111.9 kB / 454.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00626/0.3412, allocations: 4.458 MB / 458.6 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.3427, allocations: 231.7 kB / 458.8 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.962e-05/0.3427, allocations: 23.98 kB / 458.9 MB, free: 10.65 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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004058/0.3431, allocations: 261 kB / 459.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.3433, allocations: 75.47 kB / 459.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001917/0.3435, allocations: 114.1 kB / 459.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3435, allocations: 4 kB / 459.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3435, allocations: 0 / 459.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.3435, allocations: 4 kB / 459.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002942/0.3464, allocations: 1.216 MB / 460.5 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3464, allocations: 0 / 460.5 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004936/0.3469, allocations: 83.94 kB / 460.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009514/0.3479, allocations: 0.5099 MB / 461.1 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.453e-05/0.3479, allocations: 31.83 kB / 461.1 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005518/0.3535, allocations: 4.087 MB / 465.2 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3535, allocations: 4 kB / 465.2 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003647/0.3571, allocations: 1.257 MB / 466.5 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003657/0.3575, allocations: 139.3 kB / 466.6 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.3576, allocations: 20 kB / 466.6 MB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001756/0.3594, allocations: 275.6 kB / 466.9 MB, free: 2.242 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001376/0.3607, allocations: 0.5771 MB / 467.5 MB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.185e-05/0.3608, allocations: 27.97 kB / 467.5 MB, free: 1.637 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000858/0.3617, allocations: 0.6631 MB / 468.2 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3617, allocations: 0 / 468.2 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007985/0.3625, allocations: 180 kB / 468.4 MB, free: 0.8047 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001518/0.364, allocations: 423.5 kB / 468.8 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002466/0.3664, allocations: 0.922 MB / 469.7 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3664, allocations: 0 / 469.7 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001542/0.368, allocations: 0.6467 MB / 470.3 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006544/0.3686, allocations: 86.81 kB / 470.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00462/0.3733, allocations: 1.911 MB / 472.3 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004233/0.3737, allocations: 334.7 kB / 472.7 MB, free: 12.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002343/0.3739, allocations: 47.27 kB / 472.7 MB, free: 12.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.3741, allocations: 39.42 kB / 472.7 MB, free: 12.43 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3741, allocations: 0 / 472.7 MB, free: 12.43 MB / 382.1 MB Notification: Performance of Templates: time 0.03274/0.4068, allocations: 14.82 MB / 487.6 MB, free: 13.64 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.223725393414497]