Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001498/0.001498, allocations: 113 kB / 21.18 MB, free: 0.5898 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.00163/0.00163, allocations: 209.7 kB / 24.47 MB, free: 3.996 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.414/1.414, allocations: 230.5 MB / 258.1 MB, free: 8.148 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 67.83 kB / 378.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2627, allocations: 53.31 MB / 432 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004677/0.2674, allocations: 3.147 MB / 435.2 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002444/0.2698, allocations: 1.344 MB / 436.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001971/0.27, allocations: 7.938 kB / 436.5 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005021/0.2705, allocations: 103.2 kB / 436.6 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002424/0.2708, allocations: 126.9 kB / 436.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009039/0.2717, allocations: 421.8 kB / 437.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008684/0.2725, allocations: 0.8191 MB / 438 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.2727, allocations: 69.58 kB / 438.1 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005571/0.2733, allocations: 379.1 kB / 438.4 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00173/0.275, allocations: 1.471 MB / 439.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001181/0.2751, allocations: 68 kB / 440 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002515/0.2754, allocations: 136 kB / 440.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002495/0.2756, allocations: 231.8 kB / 440.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003299/0.2759, allocations: 354 kB / 440.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001035/0.277, allocations: 0.9164 MB / 441.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.277, allocations: 0 / 441.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.277, allocations: 4 kB / 441.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.848e-06/0.277, allocations: 0 / 441.6 MB, free: 13.81 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.004065/0.2811, allocations: 1.51 MB / 443.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.2811, allocations: 8.031 kB / 443.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005048/0.2816, allocations: 104.4 kB / 443.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007318/0.2823, allocations: 440 kB / 443.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.855e-05/0.2824, allocations: 33.31 kB / 443.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.2825, allocations: 36.38 kB / 443.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.284, allocations: 0.6382 MB / 444.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.284, allocations: 3.953 kB / 444.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.711e-05/0.2841, allocations: 19.98 kB / 444.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/0.2841, allocations: 11.94 kB / 444.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001931/0.2861, allocations: 0.6898 MB / 445.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003623/0.2897, allocations: 1.666 MB / 446.7 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.2911, allocations: 484.8 kB / 447.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008279/0.2919, allocations: 289.8 kB / 447.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.37e-05/0.292, allocations: 7.938 kB / 447.5 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001144/0.2931, allocations: 490.2 kB / 448 MB, free: 7.172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.974e-06/0.2931, allocations: 3.938 kB / 448 MB, free: 7.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009158/0.3023, allocations: 2.817 MB / 450.8 MB, free: 4.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.3023, allocations: 85.11 kB / 450.9 MB, free: 4.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/0.3033, allocations: 0.9219 MB / 451.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/0.3035, allocations: 49.69 kB / 451.9 MB, free: 3.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/0.3037, allocations: 296.7 kB / 452.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.3039, allocations: 182.6 kB / 452.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002343/0.3041, allocations: 122.2 kB / 452.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.3043, allocations: 382.7 kB / 452.8 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009283/0.3052, allocations: 325.1 kB / 453.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009712/0.3062, allocations: 414.9 kB / 453.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.3077, allocations: 0.5151 MB / 454.1 MB, free: 0.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3077, allocations: 0 / 454.1 MB, free: 0.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002837/0.3105, allocations: 0.9797 MB / 455 MB, free: 15.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.3105, allocations: 7.938 kB / 455 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.3106, allocations: 8 kB / 455 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.3116, allocations: 0.5451 MB / 455.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000533/0.3122, allocations: 111.8 kB / 455.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006566/0.3187, allocations: 4.74 MB / 460.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/0.3202, allocations: 231.7 kB / 460.7 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.341e-05/0.3203, allocations: 20 kB / 460.7 MB, free: 9.867 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.0004304/0.3207, allocations: 252 kB / 460.9 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.3209, allocations: 79.5 kB / 461 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001992/0.3211, allocations: 102.2 kB / 461.1 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.3211, allocations: 12 kB / 461.1 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3211, allocations: 0 / 461.1 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3211, allocations: 3.984 kB / 461.1 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003095/0.3242, allocations: 1.416 MB / 462.5 MB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3242, allocations: 0 / 462.5 MB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004739/0.3247, allocations: 80 kB / 462.6 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009538/0.3256, allocations: 0.5177 MB / 463.1 MB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.955e-05/0.3257, allocations: 19.97 kB / 463.2 MB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00571/0.3314, allocations: 4.363 MB / 467.5 MB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.3314, allocations: 3.938 kB / 467.5 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003548/0.335, allocations: 1.261 MB / 468.8 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003847/0.3353, allocations: 216.5 kB / 469 MB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001213/0.3355, allocations: 20.38 kB / 469 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001747/0.3372, allocations: 275.6 kB / 469.3 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00137/0.3386, allocations: 0.5694 MB / 469.9 MB, free: 248 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.367e-05/0.3387, allocations: 31.97 kB / 469.9 MB, free: 216 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007445/0.3394, allocations: 0.6709 MB / 470.6 MB, free: 15.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3394, allocations: 0 / 470.6 MB, free: 15.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007787/0.3402, allocations: 184 kB / 470.7 MB, free: 15.36 MB / 382.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.00137/0.3415, allocations: 395.7 kB / 471.1 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002452/0.344, allocations: 0.9256 MB / 472.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.344, allocations: 0 / 472.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.3453, allocations: 0.6107 MB / 472.7 MB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006667/0.346, allocations: 89.11 kB / 472.7 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004368/0.3504, allocations: 1.949 MB / 474.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005932/0.351, allocations: 0.9374 MB / 475.6 MB, free: 10.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001796/0.3512, allocations: 51.34 kB / 475.7 MB, free: 10.44 MB / 382.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3512, allocations: 0 / 475.7 MB, free: 10.44 MB / 382.1 MB Notification: Performance of Templates: time 0.0201/0.3713, allocations: 14.19 MB / 489.9 MB, free: 12.25 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 8.494227170944214]