Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001627/0.001627, allocations: 110 kB / 21.93 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 213.5 kB / 25.22 MB, free: 3.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.389/1.389, allocations: 207.7 MB / 236.1 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 61.64 kB / 348.4 MB, free: 9.391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3009, allocations: 49.15 MB / 397.6 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004125/0.305, allocations: 2.765 MB / 400.4 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002463/0.3075, allocations: 1.171 MB / 401.5 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002243/0.3077, allocations: 9.531 kB / 401.5 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000462/0.3082, allocations: 85.86 kB / 401.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002216/0.3084, allocations: 113.1 kB / 401.7 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.3095, allocations: 422.1 kB / 402.1 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007938/0.3103, allocations: 0.8059 MB / 402.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.3104, allocations: 72.52 kB / 403 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005781/0.311, allocations: 367.7 kB / 403.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001857/0.3129, allocations: 1.309 MB / 404.7 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001601/0.313, allocations: 67.41 kB / 404.8 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000286/0.3133, allocations: 115.5 kB / 404.9 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002749/0.3136, allocations: 232.2 kB / 405.1 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003313/0.3139, allocations: 294.1 kB / 405.4 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001115/0.315, allocations: 0.88 MB / 406.3 MB, free: 4.973 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.315, allocations: 0 / 406.3 MB, free: 4.973 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.315, allocations: 0 / 406.3 MB, free: 4.973 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.3151, allocations: 0.75 kB / 406.3 MB, free: 4.973 MB / 318.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.003729/0.3188, allocations: 1.414 MB / 407.7 MB, free: 4.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.3188, allocations: 13.58 kB / 407.7 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.319, allocations: 86.94 kB / 407.8 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005859/0.3196, allocations: 377.5 kB / 408.1 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.887e-05/0.3196, allocations: 28.5 kB / 408.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.885e-05/0.3197, allocations: 39.7 kB / 408.2 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/0.3218, allocations: 1.16 MB / 409.4 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.3219, allocations: 1.094 kB / 409.4 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.236e-05/0.322, allocations: 20.41 kB / 409.4 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.902e-05/0.322, allocations: 12.11 kB / 409.4 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003212/0.3252, allocations: 1.731 MB / 411.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004379/0.3296, allocations: 2.241 MB / 413.4 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.3311, allocations: 0.8849 MB / 414.3 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001095/0.3322, allocations: 0.7085 MB / 415 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.459e-05/0.3323, allocations: 9.875 kB / 415 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001484/0.3338, allocations: 0.9016 MB / 415.9 MB, free: 436 kB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 2.124e-06/0.3338, allocations: 0 / 415.9 MB, free: 436 kB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.01246/0.3462, allocations: 5.424 MB / 421.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.77e-05/0.3463, allocations: 81.11 kB / 421.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/0.3478, allocations: 0.9179 MB / 422.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001295/0.3479, allocations: 49.69 kB / 422.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002933/0.3482, allocations: 296.6 kB / 422.6 MB, free: 9.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/0.3484, allocations: 170.7 kB / 422.8 MB, free: 9.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002755/0.3487, allocations: 126.2 kB / 422.9 MB, free: 9.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002379/0.349, allocations: 378.8 kB / 423.3 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/0.3503, allocations: 0.8408 MB / 424.1 MB, free: 8.352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001463/0.3518, allocations: 0.944 MB / 425.1 MB, free: 7.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002372/0.3542, allocations: 1.468 MB / 426.6 MB, free: 5.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.3542, allocations: 0 / 426.6 MB, free: 5.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004248/0.3584, allocations: 2.475 MB / 429 MB, free: 3.383 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.3585, allocations: 4 kB / 429 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.3585, allocations: 12.02 kB / 429 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002406/0.3609, allocations: 1.9 MB / 430.9 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/0.3615, allocations: 107.9 kB / 431 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009287/0.3707, allocations: 6.429 MB / 437.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001681/0.3724, allocations: 227.8 kB / 437.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.856e-05/0.3725, allocations: 23.98 kB / 437.7 MB, free: 10.45 MB / 350.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.0005623/0.3731, allocations: 260.2 kB / 438 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.3732, allocations: 75.52 kB / 438 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002172/0.3734, allocations: 106.1 kB / 438.2 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.3734, allocations: 4 kB / 438.2 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/0.3734, allocations: 7.984 kB / 438.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3734, allocations: 0 / 438.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00465/0.3781, allocations: 2.891 MB / 441.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.3781, allocations: 0 / 441.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005128/0.3786, allocations: 91.92 kB / 441.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002384/0.381, allocations: 1.873 MB / 443 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.872e-05/0.3811, allocations: 19.97 kB / 443 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008472/0.3896, allocations: 6.058 MB / 449.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.3896, allocations: 4.031 kB / 449.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006022/0.3956, allocations: 3.217 MB / 452.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005844/0.3962, allocations: 139.4 kB / 452.5 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001837/0.3963, allocations: 20 kB / 452.5 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0018/0.3981, allocations: 267.6 kB / 452.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001518/0.3997, allocations: 0.5849 MB / 453.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.3998, allocations: 27.95 kB / 453.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001035/0.4008, allocations: 0.6747 MB / 454 MB, free: 9.809 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4008, allocations: 0 / 454 MB, free: 9.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001033/0.4018, allocations: 187.9 kB / 454.2 MB, free: 9.625 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.0003813/0.4022, allocations: 151 kB / 454.4 MB, free: 9.469 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003757/0.406, allocations: 1.883 MB / 456.2 MB, free: 7.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.406, allocations: 0 / 456.2 MB, free: 7.559 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00188/0.4079, allocations: 1.038 MB / 457.3 MB, free: 6.496 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008025/0.4087, allocations: 66.91 kB / 457.3 MB, free: 6.426 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00537/0.414, allocations: 2.022 MB / 459.4 MB, free: 4.359 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004825/0.4145, allocations: 322.7 kB / 459.7 MB, free: 4.023 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002293/0.4147, allocations: 47.41 kB / 459.7 MB, free: 3.977 MB / 366.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4148, allocations: 0 / 459.7 MB, free: 3.977 MB / 366.1 MB Notification: Performance of Templates: time 0.02585/0.4406, allocations: 13.98 MB / 473.7 MB, free: 5.973 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.312289510387927]