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.001529/0.001529, allocations: 112.2 kB / 21.94 MB, free: 12 kB / 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.001616/0.001616, allocations: 200.8 kB / 25.23 MB, free: 3.539 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.523/1.523, allocations: 207.6 MB / 236 MB, free: 9.977 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.001936/0.001936, allocations: 55.91 kB / 348.4 MB, free: 9.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2503, allocations: 49.17 MB / 397.6 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003578/0.2539, allocations: 2.997 MB / 400.6 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001924/0.2558, allocations: 1.225 MB / 401.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001913/0.256, allocations: 4.969 kB / 401.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004034/0.2564, allocations: 85.84 kB / 401.9 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001984/0.2566, allocations: 121.1 kB / 402 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008789/0.2575, allocations: 410.7 kB / 402.4 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007177/0.2582, allocations: 0.805 MB / 403.2 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.2584, allocations: 76.83 kB / 403.3 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000418/0.2588, allocations: 372.3 kB / 403.7 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001547/0.2603, allocations: 1.351 MB / 405 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001236/0.2604, allocations: 68.59 kB / 405.1 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002364/0.2607, allocations: 118.7 kB / 405.2 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001957/0.2609, allocations: 229.5 kB / 405.4 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002711/0.2611, allocations: 350.1 kB / 405.8 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009952/0.2621, allocations: 0.8719 MB / 406.6 MB, free: 4.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.2621, allocations: 0 / 406.6 MB, free: 4.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2621, allocations: 0 / 406.6 MB, free: 4.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.849e-05/0.2622, allocations: 0 / 406.6 MB, free: 4.66 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.003603/0.2658, allocations: 1.414 MB / 408.1 MB, free: 3.809 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.2658, allocations: 13.73 kB / 408.1 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/0.266, allocations: 86.53 kB / 408.2 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006077/0.2666, allocations: 380.8 kB / 408.5 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.901e-05/0.2666, allocations: 30.19 kB / 408.6 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.1e-05/0.2667, allocations: 39.48 kB / 408.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/0.2685, allocations: 1.155 MB / 409.7 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.2685, allocations: 1.188 kB / 409.7 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.337e-05/0.2686, allocations: 16.28 kB / 409.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.2686, allocations: 11.75 kB / 409.8 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002501/0.2711, allocations: 1.746 MB / 411.5 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00403/0.2751, allocations: 2.433 MB / 414 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00149/0.2766, allocations: 0.8964 MB / 414.9 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009897/0.2776, allocations: 0.7092 MB / 415.6 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.993e-05/0.2776, allocations: 4.812 kB / 415.6 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00135/0.279, allocations: 0.9033 MB / 416.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 2.405e-06/0.279, allocations: 0 / 416.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.01134/0.2903, allocations: 5.416 MB / 421.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.2e-05/0.2904, allocations: 81.11 kB / 422 MB, free: 10.72 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001306/0.2917, allocations: 0.918 MB / 422.9 MB, free: 9.797 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.2918, allocations: 49.69 kB / 422.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002665/0.2921, allocations: 296.8 kB / 423.2 MB, free: 9.445 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/0.2923, allocations: 174.7 kB / 423.4 MB, free: 9.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000238/0.2925, allocations: 122.3 kB / 423.5 MB, free: 9.148 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002117/0.2927, allocations: 378.8 kB / 423.9 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/0.294, allocations: 0.8446 MB / 424.7 MB, free: 7.926 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.2954, allocations: 0.9401 MB / 425.7 MB, free: 6.953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002205/0.2976, allocations: 1.461 MB / 427.1 MB, free: 5.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.2976, allocations: 4 kB / 427.1 MB, free: 5.457 MB / 334.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00411/0.3017, allocations: 2.483 MB / 429.6 MB, free: 2.957 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.701e-05/0.3018, allocations: 4 kB / 429.6 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.3018, allocations: 7.984 kB / 429.6 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002295/0.3041, allocations: 1.9 MB / 431.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005738/0.3046, allocations: 111.8 kB / 431.6 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008799/0.3134, allocations: 6.501 MB / 438.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/0.3151, allocations: 231.7 kB / 438.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.892e-05/0.3152, allocations: 23.98 kB / 438.4 MB, free: 9.918 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.000548/0.3157, allocations: 256.2 kB / 438.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/0.3159, allocations: 71.53 kB / 438.7 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002216/0.3161, allocations: 106.1 kB / 438.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.3161, allocations: 8 kB / 438.8 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.3161, allocations: 0 / 438.8 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.118e-05/0.3162, allocations: 7.984 kB / 438.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004612/0.3208, allocations: 3.064 MB / 441.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.3208, allocations: 0 / 441.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005027/0.3213, allocations: 83.94 kB / 442 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002236/0.3235, allocations: 1.865 MB / 443.8 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.859e-05/0.3236, allocations: 19.97 kB / 443.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007789/0.3314, allocations: 6.139 MB / 450 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3314, allocations: 0 / 450 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005259/0.3366, allocations: 3.217 MB / 453.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004843/0.3371, allocations: 135.4 kB / 453.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.3372, allocations: 20 kB / 453.4 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001605/0.3388, allocations: 271.6 kB / 453.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001376/0.3402, allocations: 0.5771 MB / 454.2 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.338e-05/0.3403, allocations: 31.95 kB / 454.2 MB, free: 9.688 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008059/0.3411, allocations: 0.6748 MB / 454.9 MB, free: 9.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3411, allocations: 0 / 454.9 MB, free: 9.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008234/0.3419, allocations: 188 kB / 455.1 MB, free: 8.836 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.0003168/0.3422, allocations: 151 kB / 455.2 MB, free: 8.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003179/0.3454, allocations: 1.879 MB / 457.1 MB, free: 6.773 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3454, allocations: 4 kB / 457.1 MB, free: 6.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001698/0.3471, allocations: 1.033 MB / 458.2 MB, free: 5.711 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006256/0.3477, allocations: 78.95 kB / 458.2 MB, free: 5.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.3521, allocations: 2.019 MB / 460.3 MB, free: 3.566 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005985/0.3527, allocations: 0.9221 MB / 461.2 MB, free: 2.621 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001959/0.3529, allocations: 47.42 kB / 461.2 MB, free: 2.574 MB / 366.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3529, allocations: 0 / 461.2 MB, free: 2.574 MB / 366.1 MB Notification: Performance of Templates: time 0.02007/0.373, allocations: 13.75 MB / 475 MB, free: 4.801 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.45377987693064]