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.001252/0.001252, allocations: 113 kB / 18.45 MB, free: 4.602 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.001251/0.001251, allocations: 190.9 kB / 21.4 MB, free: 1.664 MB / 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.434/1.434, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.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.001538/0.001538, allocations: 48.05 kB / 366.8 MB, free: 388 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09226/0.09379, allocations: 52.14 MB / 418.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004318/0.09811, allocations: 3.011 MB / 421.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002111/0.1002, allocations: 1.165 MB / 423.1 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001998/0.1004, allocations: 11.94 kB / 423.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003926/0.1008, allocations: 79.28 kB / 423.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002323/0.101, allocations: 118.9 kB / 423.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009156/0.102, allocations: 409.8 kB / 423.7 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008356/0.1028, allocations: 0.8036 MB / 424.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.103, allocations: 65.61 kB / 424.6 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004968/0.1035, allocations: 363 kB / 424.9 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001576/0.1051, allocations: 1.342 MB / 426.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001463/0.1052, allocations: 68 kB / 426.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002531/0.1055, allocations: 123.9 kB / 426.5 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002347/0.1057, allocations: 227.8 kB / 426.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003672/0.1061, allocations: 346.1 kB / 427 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.1071, allocations: 0.8794 MB / 427.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1071, allocations: 0 / 427.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1071, allocations: 3.938 kB / 427.9 MB, free: 3.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.1071, allocations: 0 / 427.9 MB, free: 3.121 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00391/0.111, allocations: 1.347 MB / 429.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.1111, allocations: 12.03 kB / 429.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001665/0.1112, allocations: 80.45 kB / 429.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006205/0.1118, allocations: 436 kB / 429.8 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.366e-05/0.1119, allocations: 29.36 kB / 429.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.112, allocations: 48.33 kB / 429.9 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001949/0.114, allocations: 1.154 MB / 431 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.114, allocations: 4 kB / 431 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.343e-05/0.1141, allocations: 12 kB / 431 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.1141, allocations: 8 kB / 431 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002809/0.1169, allocations: 1.748 MB / 432.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004475/0.1214, allocations: 2.475 MB / 435.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.1231, allocations: 0.8874 MB / 436.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001181/0.1243, allocations: 0.7073 MB / 436.8 MB, free: 9.973 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.182e-05/0.1244, allocations: 8 kB / 436.9 MB, free: 9.965 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001538/0.1259, allocations: 0.9044 MB / 437.8 MB, free: 9.039 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.023e-06/0.1259, allocations: 0 / 437.8 MB, free: 9.039 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.01184/0.1378, allocations: 5.783 MB / 443.5 MB, free: 3.098 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.059e-05/0.1378, allocations: 97.03 kB / 443.6 MB, free: 2.984 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/0.139, allocations: 0.9064 MB / 444.5 MB, free: 2.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.1391, allocations: 53.69 kB / 444.6 MB, free: 2.012 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002531/0.1394, allocations: 292.7 kB / 444.9 MB, free: 1.719 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001857/0.1395, allocations: 182.6 kB / 445.1 MB, free: 1.539 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002425/0.1398, allocations: 118.3 kB / 445.2 MB, free: 1.418 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.14, allocations: 378.8 kB / 445.5 MB, free: 1.039 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001341/0.1413, allocations: 0.8408 MB / 446.4 MB, free: 204 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2211/0.3625, allocations: 0.9368 MB / 447.3 MB, free: 31.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002056/0.3645, allocations: 1.463 MB / 448.8 MB, free: 31.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3645, allocations: 2.875 kB / 448.8 MB, free: 31.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004124/0.3686, allocations: 2.48 MB / 451.3 MB, free: 31.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.3687, allocations: 6.688 kB / 451.3 MB, free: 31.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.3687, allocations: 2.469 kB / 451.3 MB, free: 31.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002152/0.3708, allocations: 1.902 MB / 453.2 MB, free: 31.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005675/0.3714, allocations: 113.4 kB / 453.3 MB, free: 31.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007028/0.3784, allocations: 6.716 MB / 460 MB, free: 27.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/0.3799, allocations: 230.4 kB / 460.2 MB, free: 27.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-05/0.38, allocations: 23.03 kB / 460.3 MB, free: 27.39 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.0003712/0.3804, allocations: 256.6 kB / 460.5 MB, free: 27.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.3805, allocations: 73.98 kB / 460.6 MB, free: 27.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001939/0.3807, allocations: 108.2 kB / 460.7 MB, free: 27.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3807, allocations: 5 kB / 460.7 MB, free: 27.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3807, allocations: 4.359 kB / 460.7 MB, free: 27.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.3807, allocations: 3.672 kB / 460.7 MB, free: 27.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004159/0.3849, allocations: 3.084 MB / 463.8 MB, free: 26.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.3849, allocations: 2.062 kB / 463.8 MB, free: 26.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005327/0.3854, allocations: 89.77 kB / 463.9 MB, free: 26.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002185/0.3876, allocations: 1.866 MB / 465.7 MB, free: 25.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.891e-05/0.3877, allocations: 22.16 kB / 465.8 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006407/0.3941, allocations: 6.331 MB / 472.1 MB, free: 21.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.3941, allocations: 4.812 kB / 472.1 MB, free: 21.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004462/0.3986, allocations: 3.223 MB / 475.3 MB, free: 19.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00033/0.3989, allocations: 220.1 kB / 475.5 MB, free: 19.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.399, allocations: 20.61 kB / 475.6 MB, free: 19.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/0.4007, allocations: 263.3 kB / 475.8 MB, free: 19.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001348/0.402, allocations: 0.5708 MB / 476.4 MB, free: 19.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.799e-05/0.4021, allocations: 29.25 kB / 476.4 MB, free: 19.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005335/0.4026, allocations: 0.6743 MB / 477.1 MB, free: 18.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4026, allocations: 0 / 477.1 MB, free: 18.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007842/0.4034, allocations: 188 kB / 477.3 MB, free: 18.34 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.0002409/0.4036, allocations: 152.9 kB / 477.4 MB, free: 18.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002591/0.4062, allocations: 1.872 MB / 479.3 MB, free: 16.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.4062, allocations: 4 kB / 479.3 MB, free: 16.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001349/0.4076, allocations: 1.04 MB / 480.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006362/0.4082, allocations: 76.55 kB / 480.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003584/0.4118, allocations: 2.023 MB / 482.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.4121, allocations: 0.9221 MB / 483.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001553/0.4122, allocations: 43.42 kB / 483.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4122, allocations: 4 kB / 483.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of Templates: time 0.01493/0.4272, allocations: 13.77 MB / 497.2 MB, free: 14.84 MB / 382.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 9.116110811941326]