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.005261/0.005261, allocations: 102.9 kB / 21.97 MB, free: 5.211 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.001524/0.001524, allocations: 220 kB / 25.29 MB, free: 3.215 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.463/1.463, allocations: 230.6 MB / 259 MB, free: 8.023 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.002729/0.002729, allocations: 59.89 kB / 379.8 MB, free: 2.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.323, allocations: 53.37 MB / 433.2 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004706/0.3277, allocations: 3.145 MB / 436.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002557/0.3303, allocations: 1.352 MB / 437.7 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002407/0.3305, allocations: 7.938 kB / 437.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005315/0.3311, allocations: 107.1 kB / 437.8 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002696/0.3313, allocations: 118.9 kB / 437.9 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009681/0.3323, allocations: 432.8 kB / 438.3 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008755/0.3332, allocations: 0.8231 MB / 439.1 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.3334, allocations: 65.7 kB / 439.2 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005534/0.3339, allocations: 395 kB / 439.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001699/0.3356, allocations: 1.471 MB / 441.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001306/0.3358, allocations: 68 kB / 441.1 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002761/0.336, allocations: 132 kB / 441.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002508/0.3363, allocations: 235.8 kB / 441.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003356/0.3366, allocations: 362.1 kB / 441.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001017/0.3376, allocations: 0.9157 MB / 442.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3376, allocations: 0 / 442.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3376, allocations: 0 / 442.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.3376, allocations: 0 / 442.7 MB, free: 13.36 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.003734/0.3414, allocations: 1.446 MB / 444.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.3414, allocations: 8.031 kB / 444.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004979/0.3419, allocations: 100.4 kB / 444.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006892/0.3426, allocations: 374.2 kB / 444.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.391e-05/0.3427, allocations: 29.38 kB / 444.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.66e-05/0.3428, allocations: 44.36 kB / 444.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.3443, allocations: 0.6342 MB / 445.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.451e-05/0.3443, allocations: 7.953 kB / 445.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-05/0.3444, allocations: 16 kB / 445.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.3444, allocations: 12 kB / 445.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001946/0.3463, allocations: 0.6943 MB / 446.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003725/0.3501, allocations: 1.628 MB / 447.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.3514, allocations: 480.8 kB / 448.2 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000838/0.3523, allocations: 289.6 kB / 448.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.087e-05/0.3523, allocations: 7.984 kB / 448.5 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.3535, allocations: 490.2 kB / 449 MB, free: 6.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.044e-06/0.3535, allocations: 0 / 449 MB, free: 6.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.008596/0.3621, allocations: 2.441 MB / 451.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/0.3622, allocations: 85.11 kB / 451.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.3632, allocations: 0.9103 MB / 452.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.202e-05/0.3633, allocations: 49.69 kB / 452.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002503/0.3635, allocations: 300.7 kB / 452.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000241/0.3638, allocations: 186.6 kB / 452.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002422/0.364, allocations: 126.2 kB / 453 MB, free: 2.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.3642, allocations: 386.6 kB / 453.4 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009186/0.3651, allocations: 321.1 kB / 453.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009697/0.3661, allocations: 422.9 kB / 454.2 MB, free: 1.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001456/0.3676, allocations: 0.5125 MB / 454.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3676, allocations: 0 / 454.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002792/0.3704, allocations: 0.9832 MB / 455.6 MB, free: 72 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.3704, allocations: 11.94 kB / 455.7 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3704, allocations: 0 / 455.7 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.3715, allocations: 0.549 MB / 456.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005129/0.372, allocations: 107.9 kB / 456.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006387/0.3784, allocations: 4.533 MB / 460.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/0.3798, allocations: 227.8 kB / 461.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.027e-05/0.3799, allocations: 20 kB / 461.1 MB, free: 10.36 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.0004703/0.3804, allocations: 256.3 kB / 461.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.3805, allocations: 79.47 kB / 461.4 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001812/0.3807, allocations: 110.1 kB / 461.5 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.3807, allocations: 8 kB / 461.5 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3807, allocations: 0 / 461.5 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3807, allocations: 0 / 461.5 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003075/0.3838, allocations: 1.369 MB / 462.9 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.3838, allocations: 4.078 kB / 462.9 MB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004758/0.3842, allocations: 91.84 kB / 463 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009891/0.3852, allocations: 0.5099 MB / 463.5 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.916e-05/0.3853, allocations: 24.09 kB / 463.5 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005631/0.3909, allocations: 4.156 MB / 467.7 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3909, allocations: 11.81 kB / 467.7 MB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003468/0.3944, allocations: 1.261 MB / 469 MB, free: 2.113 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003544/0.3948, allocations: 131.5 kB / 469.1 MB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.3949, allocations: 24 kB / 469.1 MB, free: 1.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001538/0.3964, allocations: 271.6 kB / 469.4 MB, free: 1.695 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001418/0.3978, allocations: 0.5848 MB / 470 MB, free: 1.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.406e-05/0.3979, allocations: 27.97 kB / 470 MB, free: 1.082 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007626/0.3987, allocations: 0.6709 MB / 470.7 MB, free: 428 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3987, allocations: 0 / 470.7 MB, free: 428 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007944/0.3995, allocations: 179.9 kB / 470.8 MB, free: 248 kB / 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.001412/0.4009, allocations: 407.3 kB / 471.2 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002412/0.4033, allocations: 0.9217 MB / 472.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.4033, allocations: 3.938 kB / 472.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001343/0.4046, allocations: 0.611 MB / 472.8 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006291/0.4053, allocations: 85.62 kB / 472.9 MB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004401/0.4097, allocations: 1.944 MB / 474.8 MB, free: 12.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006091/0.4103, allocations: 0.9297 MB / 475.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/0.4105, allocations: 47.42 kB / 475.8 MB, free: 11.31 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4105, allocations: 0 / 475.8 MB, free: 11.31 MB / 382.1 MB Notification: Performance of Templates: time 0.02055/0.431, allocations: 14.19 MB / 490 MB, free: 13.12 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.959977356018499]