Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001357/0.001357, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.002025/0.002025, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.512/1.512, allocations: 230.6 MB / 254.1 MB, free: 15.08 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+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_4.1.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.1.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 43.94 kB / 373.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1061, allocations: 53.33 MB / 426.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004648/0.1108, allocations: 3.133 MB / 429.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1973/0.3081, allocations: 1.338 MB / 431.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003858/0.3084, allocations: 8.594 kB / 431.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005028/0.3089, allocations: 100.6 kB / 431.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002795/0.3092, allocations: 122.4 kB / 431.5 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009942/0.3102, allocations: 418.5 kB / 431.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008214/0.311, allocations: 0.8178 MB / 432.7 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001894/0.3112, allocations: 69.22 kB / 432.8 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005576/0.3118, allocations: 381.7 kB / 433.1 MB, free: 8.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002024/0.3138, allocations: 1.464 MB / 434.6 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001481/0.314, allocations: 69.28 kB / 434.7 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003165/0.3143, allocations: 129.2 kB / 434.8 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000302/0.3146, allocations: 237 kB / 435 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003674/0.3149, allocations: 355.7 kB / 435.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001189/0.3161, allocations: 0.9239 MB / 436.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3161, allocations: 5.594 kB / 436.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3161, allocations: 1.375 kB / 436.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.3162, allocations: 0 / 436.3 MB, free: 7.637 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.00403/0.3202, allocations: 1.368 MB / 437.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.3202, allocations: 13.7 kB / 437.7 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005192/0.3207, allocations: 101.2 kB / 437.8 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005407/0.3213, allocations: 443.5 kB / 438.2 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.582e-05/0.3213, allocations: 28.69 kB / 438.3 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.3214, allocations: 35.94 kB / 438.3 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.323, allocations: 0.6409 MB / 438.9 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.323, allocations: 9.656 kB / 438.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-05/0.3231, allocations: 16.73 kB / 439 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.3231, allocations: 9.547 kB / 439 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002166/0.3252, allocations: 0.6904 MB / 439.7 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003911/0.3292, allocations: 1.662 MB / 441.3 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/0.3306, allocations: 475.4 kB / 441.8 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008998/0.3315, allocations: 289.2 kB / 442.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.291e-05/0.3315, allocations: 13.8 kB / 442.1 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001303/0.3328, allocations: 482 kB / 442.6 MB, free: 4.852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.673e-06/0.3328, allocations: 0 / 442.6 MB, free: 4.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009587/0.3424, allocations: 2.821 MB / 445.4 MB, free: 3.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.3425, allocations: 82.17 kB / 445.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.3435, allocations: 0.9168 MB / 446.4 MB, free: 2.961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.58e-05/0.3436, allocations: 52.91 kB / 446.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.3438, allocations: 302.8 kB / 446.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001443/0.3439, allocations: 173.2 kB / 446.9 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/0.3442, allocations: 122.8 kB / 447 MB, free: 2.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.3443, allocations: 385.3 kB / 447.4 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009656/0.3453, allocations: 323.4 kB / 447.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009878/0.3462, allocations: 413.8 kB / 448.1 MB, free: 1.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00147/0.3477, allocations: 0.5059 MB / 448.6 MB, free: 1.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.3477, allocations: 0 / 448.6 MB, free: 1.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002804/0.3505, allocations: 0.9833 MB / 449.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.3505, allocations: 8.531 kB / 449.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3506, allocations: 6.688 kB / 449.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.3516, allocations: 0.556 MB / 450.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005523/0.3521, allocations: 107.2 kB / 450.3 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006889/0.359, allocations: 4.741 MB / 455 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/0.3607, allocations: 232.3 kB / 455.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.109e-05/0.3607, allocations: 23.98 kB / 455.3 MB, free: 12.64 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.0005298/0.3613, allocations: 253.1 kB / 455.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/0.3614, allocations: 82.69 kB / 455.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002465/0.3617, allocations: 107.9 kB / 455.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.3617, allocations: 5.547 kB / 455.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.3617, allocations: 2.625 kB / 455.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3617, allocations: 1.125 kB / 455.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0035/0.3652, allocations: 1.418 MB / 457.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3652, allocations: 1.188 kB / 457.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005286/0.3657, allocations: 87.75 kB / 457.2 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001108/0.3668, allocations: 0.5135 MB / 457.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.942e-05/0.3669, allocations: 24.84 kB / 457.7 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006282/0.3732, allocations: 4.356 MB / 462.1 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3732, allocations: 2.062 kB / 462.1 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00404/0.3772, allocations: 1.264 MB / 463.4 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004541/0.3777, allocations: 221.9 kB / 463.6 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.3778, allocations: 25 kB / 463.6 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001878/0.3797, allocations: 270.1 kB / 463.9 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001534/0.3812, allocations: 0.5705 MB / 464.4 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.3813, allocations: 29.59 kB / 464.5 MB, free: 5.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009621/0.3823, allocations: 0.6705 MB / 465.1 MB, free: 5.195 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3823, allocations: 0 / 465.1 MB, free: 5.195 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001067/0.3834, allocations: 179.2 kB / 465.3 MB, free: 5.176 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001507/0.3849, allocations: 405.3 kB / 465.7 MB, free: 4.984 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002933/0.3878, allocations: 0.9186 MB / 466.6 MB, free: 4.414 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/0.3878, allocations: 1.156 kB / 466.6 MB, free: 4.414 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001782/0.3896, allocations: 0.6372 MB / 467.3 MB, free: 3.973 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000778/0.3904, allocations: 84.7 kB / 467.4 MB, free: 3.914 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004965/0.3953, allocations: 1.911 MB / 469.3 MB, free: 2.773 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006579/0.396, allocations: 0.928 MB / 470.2 MB, free: 1.965 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002736/0.3963, allocations: 47.98 kB / 470.2 MB, free: 1.941 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.3964, allocations: 48.25 kB / 470.3 MB, free: 1.918 MB / 366.1 MB Notification: Performance of SimCode: time 1.163e-06/0.3964, allocations: 0 / 470.3 MB, free: 1.918 MB / 366.1 MB Notification: Performance of Templates: time 0.02693/0.4234, allocations: 15.95 MB / 486.2 MB, free: 3.297 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 5.264429982751608]