Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001379/0.001379, allocations: 86.56 kB / 20.68 MB, free: 1.035 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.002194/0.002194, allocations: 158.6 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 177 MB / 204.1 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.405e-06/2.405e-06, allocations: 0 / 325 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.133e-05/3.373e-05, allocations: 3.406 kB / 325 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004925/0.004959, allocations: 2.907 MB / 327.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002906/0.007865, allocations: 1.299 MB / 329.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003908/0.008256, allocations: 8.469 kB / 329.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005972/0.008853, allocations: 105.7 kB / 329.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000456/0.009309, allocations: 128.6 kB / 329.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.01059, allocations: 434.8 kB / 329.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001337/0.01193, allocations: 0.8406 MB / 330.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002505/0.01218, allocations: 72.2 kB / 330.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001351/0.01353, allocations: 0.496 MB / 331.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002182/0.01571, allocations: 1.407 MB / 332.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000327/0.01604, allocations: 68.38 kB / 332.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005807/0.01662, allocations: 133.9 kB / 332.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003704/0.01699, allocations: 240.1 kB / 333.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005374/0.01753, allocations: 240.1 kB / 333.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001733/0.01926, allocations: 0.9934 MB / 334.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.01927, allocations: 4 kB / 334.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.01927, allocations: 1.125 kB / 334.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.662e-05/0.01933, allocations: 0 / 334.3 MB, free: 10.78 MB / 302.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.005117/0.02444, allocations: 1.43 MB / 335.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.02449, allocations: 12.67 kB / 335.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006705/0.02516, allocations: 106 kB / 335.9 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008038/0.02596, allocations: 385.6 kB / 336.3 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.332e-05/0.02602, allocations: 29.53 kB / 336.3 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.02614, allocations: 36.88 kB / 336.3 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001738/0.02788, allocations: 0.6318 MB / 337 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/0.02791, allocations: 13.28 kB / 337 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.481e-05/0.02799, allocations: 19.09 kB / 337 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.028, allocations: 8.906 kB / 337 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002193/0.0302, allocations: 0.6879 MB / 337.7 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004157/0.03435, allocations: 1.418 MB / 339.1 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/0.03587, allocations: 484.8 kB / 339.6 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008974/0.03677, allocations: 289.6 kB / 339.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.444e-05/0.03683, allocations: 15.92 kB / 339.9 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001309/0.03814, allocations: 491.1 kB / 340.4 MB, free: 5.539 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.985e-06/0.03814, allocations: 3.938 kB / 340.4 MB, free: 5.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.01025/0.0484, allocations: 2.434 MB / 342.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.882e-05/0.04847, allocations: 85.11 kB / 342.9 MB, free: 2.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/0.04968, allocations: 0.918 MB / 343.8 MB, free: 2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.04979, allocations: 49.69 kB / 343.8 MB, free: 1.945 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002933/0.05009, allocations: 296.6 kB / 344.1 MB, free: 1.652 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.0503, allocations: 170.7 kB / 344.3 MB, free: 1.484 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002898/0.05059, allocations: 126.3 kB / 344.4 MB, free: 1.355 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.0508, allocations: 382.8 kB / 344.8 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.05183, allocations: 321.1 kB / 345.1 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/0.05292, allocations: 418.9 kB / 345.5 MB, free: 224 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001705/0.05462, allocations: 0.4988 MB / 346 MB, free: 15.69 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.05463, allocations: 0 / 346 MB, free: 15.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003174/0.0578, allocations: 0.997 MB / 347 MB, free: 14.68 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.05782, allocations: 4 kB / 347 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.05783, allocations: 4 kB / 347 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00123/0.05906, allocations: 0.5451 MB / 347.6 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005706/0.05963, allocations: 111.8 kB / 347.7 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007093/0.06673, allocations: 4.462 MB / 352.1 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.06836, allocations: 231.7 kB / 352.4 MB, free: 9.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.244e-05/0.06844, allocations: 23.98 kB / 352.4 MB, free: 9.07 MB / 318.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.0005323/0.06897, allocations: 256.3 kB / 352.6 MB, free: 8.809 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002095/0.06918, allocations: 79.56 kB / 352.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002644/0.06944, allocations: 106.2 kB / 352.8 MB, free: 8.625 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.06945, allocations: 8 kB / 352.8 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.06946, allocations: 0 / 352.8 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.457e-06/0.06947, allocations: 3.938 kB / 352.8 MB, free: 8.613 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003412/0.07288, allocations: 1.212 MB / 354 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.07289, allocations: 4 kB / 354.1 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005216/0.07341, allocations: 87.94 kB / 354.1 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/0.07447, allocations: 0.5099 MB / 354.6 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.486e-05/0.07454, allocations: 27.95 kB / 354.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006236/0.08078, allocations: 4.08 MB / 358.8 MB, free: 2.402 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.08078, allocations: 4.062 kB / 358.8 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003872/0.08465, allocations: 1.255 MB / 360 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003666/0.08502, allocations: 131.5 kB / 360.1 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001497/0.08517, allocations: 27.88 kB / 360.2 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001912/0.08708, allocations: 275.6 kB / 360.4 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001591/0.08867, allocations: 0.5771 MB / 361 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.08877, allocations: 27.97 kB / 361 MB, free: 80 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009186/0.08969, allocations: 0.6708 MB / 361.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08969, allocations: 0 / 361.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008833/0.09057, allocations: 187.9 kB / 361.9 MB, free: 15.23 MB / 334.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.001603/0.09218, allocations: 397.6 kB / 362.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002592/0.09477, allocations: 0.9302 MB / 363.2 MB, free: 14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.09477, allocations: 3.984 kB / 363.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001621/0.0964, allocations: 0.6505 MB / 363.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007069/0.0971, allocations: 87.06 kB / 364 MB, free: 13.24 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004537/0.1016, allocations: 1.757 MB / 365.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.102, allocations: 322.9 kB / 366 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002237/0.1023, allocations: 43.28 kB / 366.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.1024, allocations: 40.48 kB / 366.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1024, allocations: 0 / 366.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of Templates: time 0.02714/0.1295, allocations: 14.16 MB / 380.3 MB, free: 12.89 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.153387241065502]