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.0008446/0.0008446, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 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.0008484/0.0008484, allocations: 160.7 kB / 25.45 MB, free: 8.344 MB / 18.57 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 0.936/0.936, allocations: 158.6 MB / 187.2 MB, free: 3.047 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.002e-06/1.002e-06, allocations: 0 / 299.7 MB, free: 6.949 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.389e-05/1.489e-05, allocations: 2.281 kB / 299.7 MB, free: 6.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002581/0.002596, allocations: 2.759 MB / 302.4 MB, free: 4.156 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.003964, allocations: 1.169 MB / 303.6 MB, free: 2.984 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.00408, allocations: 11.94 kB / 303.6 MB, free: 2.973 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002295/0.004309, allocations: 79.22 kB / 303.7 MB, free: 2.895 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000141/0.00445, allocations: 126.9 kB / 303.8 MB, free: 2.77 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005183/0.004969, allocations: 423 kB / 304.2 MB, free: 2.355 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004965/0.005465, allocations: 0.8227 MB / 305.1 MB, free: 1.531 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.005575, allocations: 65.69 kB / 305.1 MB, free: 1.465 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003909/0.005966, allocations: 495.2 kB / 305.6 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009094/0.006876, allocations: 1.287 MB / 306.9 MB, free: 15.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.894e-05/0.006944, allocations: 68 kB / 307 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.007077, allocations: 119.9 kB / 307.1 MB, free: 15.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.007207, allocations: 227.9 kB / 307.3 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001531/0.00736, allocations: 239.3 kB / 307.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006416/0.008002, allocations: 0.9581 MB / 308.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-06/0.008003, allocations: 0 / 308.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.008004, allocations: 0 / 308.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.008012, allocations: 0 / 308.5 MB, free: 14.09 MB / 298.7 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.001791/0.009803, allocations: 1.412 MB / 309.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.948e-05/0.009832, allocations: 15.98 kB / 309.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.817e-05/0.00993, allocations: 76.47 kB / 310 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003662/0.0103, allocations: 373.5 kB / 310.4 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.633e-05/0.01032, allocations: 29.38 kB / 310.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.108e-05/0.01038, allocations: 48.31 kB / 310.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.01144, allocations: 1.146 MB / 311.6 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.01146, allocations: 8.125 kB / 311.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.226e-05/0.0115, allocations: 20.12 kB / 311.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.01151, allocations: 8 kB / 311.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001509/0.01301, allocations: 1.74 MB / 313.4 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002267/0.01528, allocations: 2.242 MB / 315.6 MB, free: 6.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009038/0.01618, allocations: 0.8988 MB / 316.5 MB, free: 5.926 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006215/0.01681, allocations: 0.6967 MB / 317.2 MB, free: 5.223 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.241e-05/0.01685, allocations: 8 kB / 317.2 MB, free: 5.215 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008335/0.01768, allocations: 0.9054 MB / 318.1 MB, free: 4.293 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 1.323e-06/0.01768, allocations: 0 / 318.1 MB, free: 4.293 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.005722/0.02341, allocations: 5.425 MB / 323.5 MB, free: 14.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.02344, allocations: 85.11 kB / 323.6 MB, free: 14.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007009/0.02415, allocations: 0.9218 MB / 324.5 MB, free: 13.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.047e-05/0.02421, allocations: 49.69 kB / 324.6 MB, free: 13.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.02437, allocations: 292.7 kB / 324.9 MB, free: 13.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.02447, allocations: 174.6 kB / 325 MB, free: 13.25 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.02461, allocations: 118.2 kB / 325.2 MB, free: 13.13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.02471, allocations: 382.8 kB / 325.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008585/0.02557, allocations: 0.8408 MB / 326.4 MB, free: 11.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008611/0.02643, allocations: 0.9441 MB / 327.3 MB, free: 10.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.02763, allocations: 1.453 MB / 328.8 MB, free: 9.445 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.02763, allocations: 7.938 kB / 328.8 MB, free: 9.438 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002204/0.02983, allocations: 2.471 MB / 331.2 MB, free: 6.949 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.02984, allocations: 8 kB / 331.3 MB, free: 6.941 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.02985, allocations: 7.938 kB / 331.3 MB, free: 6.934 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/0.03116, allocations: 1.9 MB / 333.2 MB, free: 5.023 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002415/0.0314, allocations: 111.9 kB / 333.3 MB, free: 4.914 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004465/0.03586, allocations: 6.424 MB / 339.7 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006048/0.03647, allocations: 227.8 kB / 339.9 MB, free: 14.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/0.03651, allocations: 20 kB / 339.9 MB, free: 14.01 MB / 330.7 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.0002488/0.03675, allocations: 256.4 kB / 340.2 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.344e-05/0.03683, allocations: 71.53 kB / 340.3 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.115e-05/0.03692, allocations: 118 kB / 340.4 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.03692, allocations: 7.938 kB / 340.4 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.03692, allocations: 0 / 340.4 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.03693, allocations: 0 / 340.4 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002409/0.03934, allocations: 2.891 MB / 343.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.03934, allocations: 11.86 kB / 343.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.03957, allocations: 91.94 kB / 343.4 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/0.04079, allocations: 1.857 MB / 345.2 MB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.65e-05/0.04082, allocations: 23.97 kB / 345.3 MB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004466/0.04529, allocations: 6.058 MB / 351.3 MB, free: 2.336 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.04529, allocations: 4 kB / 351.3 MB, free: 2.332 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1442/0.1894, allocations: 3.224 MB / 354.5 MB, free: 62.9 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003633/0.1898, allocations: 130.1 kB / 354.7 MB, free: 62.9 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.049e-05/0.1899, allocations: 21.05 kB / 354.7 MB, free: 62.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008065/0.1907, allocations: 272.3 kB / 355 MB, free: 62.9 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001011/0.1917, allocations: 0.5748 MB / 355.5 MB, free: 62.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.906e-05/0.1917, allocations: 30.89 kB / 355.6 MB, free: 62.9 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004966/0.1922, allocations: 0.6665 MB / 356.2 MB, free: 62.8 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1922, allocations: 0 / 356.2 MB, free: 62.8 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005451/0.1928, allocations: 188.4 kB / 356.4 MB, free: 62.8 MB / 330.7 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.0002268/0.193, allocations: 159 kB / 356.6 MB, free: 62.72 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001965/0.195, allocations: 1.875 MB / 358.4 MB, free: 62.21 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.195, allocations: 1.406 kB / 358.4 MB, free: 62.21 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009592/0.1959, allocations: 1.035 MB / 359.5 MB, free: 61.82 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.1963, allocations: 67.7 kB / 359.5 MB, free: 61.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/0.1985, allocations: 1.879 MB / 361.4 MB, free: 61.08 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.1988, allocations: 326.4 kB / 361.7 MB, free: 60.97 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.871e-05/0.1989, allocations: 43.25 kB / 361.8 MB, free: 60.96 MB / 330.7 MB Notification: Performance of SimCode: time 7.11e-07/0.1989, allocations: 0 / 361.8 MB, free: 60.96 MB / 330.7 MB Notification: Performance of Templates: time 0.008695/0.2076, allocations: 13.97 MB / 375.7 MB, free: 50.41 MB / 330.7 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.924495177343488]