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.0008054/0.0008054, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 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.0036/0.0036, allocations: 149.4 kB / 24.68 MB, free: 9.422 MB / 18.57 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 0.8325/0.8325, allocations: 173.4 MB / 201.2 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] 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 1.233e-06/1.233e-06, allocations: 3.938 kB / 319.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.553e-05/1.676e-05, allocations: 2.281 kB / 319.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002522/0.002539, allocations: 2.777 MB / 322.4 MB, free: 3.062 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001295/0.003834, allocations: 1.134 MB / 323.6 MB, free: 1.926 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.003951, allocations: 7.938 kB / 323.6 MB, free: 1.918 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003395/0.004291, allocations: 87.22 kB / 323.7 MB, free: 1.832 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000136/0.004427, allocations: 114.9 kB / 323.8 MB, free: 1.719 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005355/0.004962, allocations: 424.7 kB / 324.2 MB, free: 1.309 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005037/0.005466, allocations: 0.8305 MB / 325 MB, free: 488 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.00561, allocations: 61.73 kB / 325.1 MB, free: 420 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004089/0.006019, allocations: 495.2 kB / 325.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008911/0.00691, allocations: 1.283 MB / 326.9 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.296e-05/0.006983, allocations: 68 kB / 326.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001383/0.007121, allocations: 123.9 kB / 327 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.007264, allocations: 227.8 kB / 327.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.00743, allocations: 239.4 kB / 327.5 MB, free: 14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006798/0.00811, allocations: 0.9543 MB / 328.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.008112, allocations: 0 / 328.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.008112, allocations: 0 / 328.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.008119, allocations: 0 / 328.5 MB, free: 13.04 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.001947/0.01007, allocations: 1.404 MB / 329.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.0101, allocations: 12.92 kB / 329.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.0102, allocations: 84.36 kB / 330 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003719/0.01058, allocations: 369.5 kB / 330.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.077e-05/0.01061, allocations: 29.38 kB / 330.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.996e-05/0.01067, allocations: 36.38 kB / 330.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.01177, allocations: 1.158 MB / 331.5 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.01179, allocations: 192 / 331.5 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.816e-05/0.01183, allocations: 24.11 kB / 331.6 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.01184, allocations: 8 kB / 331.6 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/0.01337, allocations: 1.74 MB / 333.3 MB, free: 8.098 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002295/0.01567, allocations: 2.235 MB / 335.5 MB, free: 5.805 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000931/0.0166, allocations: 0.899 MB / 336.4 MB, free: 4.887 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006142/0.01721, allocations: 0.7045 MB / 337.2 MB, free: 4.176 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.356e-05/0.01725, allocations: 4 kB / 337.2 MB, free: 4.172 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008234/0.01808, allocations: 0.9052 MB / 338.1 MB, free: 3.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 1.232e-06/0.01808, allocations: 0 / 338.1 MB, free: 3.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.005862/0.02394, allocations: 5.414 MB / 343.5 MB, free: 13.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.02398, allocations: 85.11 kB / 343.6 MB, free: 13.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007121/0.02469, allocations: 0.9218 MB / 344.5 MB, free: 12.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.418e-05/0.02475, allocations: 45.7 kB / 344.5 MB, free: 12.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.0249, allocations: 292.6 kB / 344.8 MB, free: 12.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.025, allocations: 170.6 kB / 345 MB, free: 12.22 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.02514, allocations: 122.3 kB / 345.1 MB, free: 12.1 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.02526, allocations: 386.7 kB / 345.5 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007366/0.02599, allocations: 0.8446 MB / 346.3 MB, free: 10.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007627/0.02675, allocations: 0.9402 MB / 347.3 MB, free: 9.895 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.02792, allocations: 1.465 MB / 348.7 MB, free: 8.398 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.02793, allocations: 0 / 348.7 MB, free: 8.398 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002118/0.03004, allocations: 2.481 MB / 351.2 MB, free: 5.902 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.03006, allocations: 4 kB / 351.2 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.03007, allocations: 7.984 kB / 351.2 MB, free: 5.891 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0013/0.03137, allocations: 1.9 MB / 353.1 MB, free: 3.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.03161, allocations: 115.8 kB / 353.2 MB, free: 3.867 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00456/0.03617, allocations: 6.422 MB / 359.7 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006336/0.03681, allocations: 231.7 kB / 359.9 MB, free: 12.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.85e-05/0.03685, allocations: 23.98 kB / 359.9 MB, free: 12.96 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.0002291/0.03708, allocations: 252.3 kB / 360.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.153e-05/0.03715, allocations: 67.58 kB / 360.2 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.484e-05/0.03724, allocations: 110.1 kB / 360.3 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.03725, allocations: 4 kB / 360.3 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.03725, allocations: 0 / 360.3 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.03726, allocations: 7.984 kB / 360.3 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002469/0.03972, allocations: 2.907 MB / 363.2 MB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.03973, allocations: 4.062 kB / 363.2 MB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000223/0.03995, allocations: 91.86 kB / 363.3 MB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001451/0.0414, allocations: 1.861 MB / 365.2 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.022e-05/0.04144, allocations: 31.89 kB / 365.2 MB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003843/0.04529, allocations: 6.043 MB / 371.3 MB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.04529, allocations: 0 / 371.3 MB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002948/0.04823, allocations: 3.231 MB / 374.5 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001815/0.04842, allocations: 127.5 kB / 374.6 MB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.878e-05/0.04847, allocations: 20 kB / 374.6 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007574/0.04923, allocations: 275.6 kB / 374.9 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008758/0.05011, allocations: 0.5693 MB / 375.5 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.195e-05/0.05015, allocations: 35.97 kB / 375.5 MB, free: 13 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004203/0.05057, allocations: 0.667 MB / 376.2 MB, free: 12.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05057, allocations: 0 / 376.2 MB, free: 12.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004856/0.05106, allocations: 191.9 kB / 376.4 MB, free: 12.15 MB / 346.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.0002265/0.05128, allocations: 155.6 kB / 376.5 MB, free: 11.99 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0017/0.05298, allocations: 1.879 MB / 378.4 MB, free: 10.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.05299, allocations: 3.938 kB / 378.4 MB, free: 10.08 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.05411, allocations: 1.029 MB / 379.4 MB, free: 9.027 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.0545, allocations: 79.33 kB / 379.5 MB, free: 8.953 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.05669, allocations: 1.884 MB / 381.4 MB, free: 7.031 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001902/0.05688, allocations: 318.7 kB / 381.7 MB, free: 6.699 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.057, allocations: 44.48 kB / 381.7 MB, free: 6.656 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/0.057, allocations: 0 / 381.7 MB, free: 6.656 MB / 346.7 MB Notification: Performance of Templates: time 0.01065/0.06765, allocations: 13.99 MB / 395.7 MB, free: 8.664 MB / 362.7 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.717164199799299]