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.001645/0.001645, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001979/0.001979, allocations: 202.9 kB / 23.73 MB, free: 4.379 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.542/1.542, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001591/0.001591, allocations: 47.92 kB / 378.2 MB, free: 2.574 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2539, allocations: 53.37 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004964/0.2589, allocations: 2.902 MB / 434.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002592/0.2615, allocations: 1.286 MB / 435.8 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.2617, allocations: 7.938 kB / 435.8 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004637/0.2621, allocations: 99.22 kB / 435.9 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002513/0.2624, allocations: 126.8 kB / 436 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009166/0.2633, allocations: 430.1 kB / 436.4 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008593/0.2641, allocations: 0.8154 MB / 437.2 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.2643, allocations: 73.69 kB / 437.3 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005553/0.2649, allocations: 379.1 kB / 437.7 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001902/0.2668, allocations: 1.487 MB / 439.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001289/0.2669, allocations: 68 kB / 439.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002799/0.2672, allocations: 131.9 kB / 439.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002791/0.2675, allocations: 235.8 kB / 439.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003395/0.2678, allocations: 298.5 kB / 439.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.2689, allocations: 0.9274 MB / 440.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2689, allocations: 0 / 440.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2689, allocations: 0 / 440.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.2689, allocations: 0 / 440.8 MB, free: 13.47 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.004166/0.2731, allocations: 1.435 MB / 442.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.2731, allocations: 12.03 kB / 442.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005427/0.2737, allocations: 100.4 kB / 442.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007384/0.2744, allocations: 382.2 kB / 442.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.856e-05/0.2745, allocations: 29.38 kB / 442.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.2746, allocations: 36.38 kB / 442.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/0.2763, allocations: 0.6458 MB / 443.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.2763, allocations: 7.953 kB / 443.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.532e-05/0.2764, allocations: 12 kB / 443.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.2764, allocations: 12 kB / 443.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00206/0.2785, allocations: 0.6818 MB / 444.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003729/0.2822, allocations: 1.437 MB / 445.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.2837, allocations: 480.8 kB / 446 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008989/0.2846, allocations: 289.6 kB / 446.3 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.945e-05/0.2847, allocations: 4 kB / 446.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001248/0.2859, allocations: 482.9 kB / 446.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.534e-06/0.2859, allocations: 4 kB / 446.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009412/0.2953, allocations: 2.439 MB / 449.2 MB, free: 4.773 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.024e-05/0.2954, allocations: 93.03 kB / 449.3 MB, free: 4.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/0.2966, allocations: 0.9141 MB / 450.3 MB, free: 3.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.989e-05/0.2967, allocations: 49.69 kB / 450.3 MB, free: 3.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002706/0.2969, allocations: 300.6 kB / 450.6 MB, free: 3.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/0.2971, allocations: 170.7 kB / 450.8 MB, free: 3.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002657/0.2974, allocations: 122.3 kB / 450.9 MB, free: 3.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002169/0.2976, allocations: 382.7 kB / 451.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009323/0.2985, allocations: 321.1 kB / 451.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.2995, allocations: 419 kB / 452 MB, free: 1.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001516/0.3011, allocations: 0.5055 MB / 452.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3011, allocations: 4 kB / 452.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002998/0.3041, allocations: 0.991 MB / 453.5 MB, free: 424 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.3041, allocations: 11.94 kB / 453.5 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.3041, allocations: 0 / 453.5 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/0.3053, allocations: 0.549 MB / 454 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005509/0.3059, allocations: 115.8 kB / 454.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006726/0.3126, allocations: 4.456 MB / 458.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/0.3141, allocations: 231.7 kB / 458.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.317e-05/0.3142, allocations: 27.97 kB / 458.9 MB, free: 10.79 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.0004351/0.3146, allocations: 254.5 kB / 459.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/0.3147, allocations: 75.53 kB / 459.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002015/0.3149, allocations: 106.1 kB / 459.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.315, allocations: 8 kB / 459.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.315, allocations: 4 kB / 459.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.315, allocations: 3.984 kB / 459.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003302/0.3183, allocations: 1.215 MB / 460.5 MB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.3183, allocations: 4 kB / 460.5 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000508/0.3188, allocations: 83.94 kB / 460.6 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/0.3198, allocations: 0.5138 MB / 461.1 MB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-05/0.3199, allocations: 27.91 kB / 461.1 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005957/0.3259, allocations: 4.082 MB / 465.2 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.3259, allocations: 0 / 465.2 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003686/0.3296, allocations: 1.256 MB / 466.5 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003829/0.3299, allocations: 143.3 kB / 466.6 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.3301, allocations: 24.38 kB / 466.6 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001722/0.3318, allocations: 263.6 kB / 466.9 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001458/0.3332, allocations: 0.581 MB / 467.5 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.947e-05/0.3333, allocations: 31.95 kB / 467.5 MB, free: 1.789 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007759/0.3341, allocations: 0.6631 MB / 468.2 MB, free: 1.133 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3341, allocations: 0 / 468.2 MB, free: 1.133 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008468/0.3349, allocations: 184 kB / 468.4 MB, free: 0.9531 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.001553/0.3365, allocations: 424.4 kB / 468.8 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002478/0.339, allocations: 0.9179 MB / 469.7 MB, free: 15.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.339, allocations: 0 / 469.7 MB, free: 15.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001557/0.3405, allocations: 0.6535 MB / 470.3 MB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000666/0.3412, allocations: 90.3 kB / 470.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004702/0.3459, allocations: 1.911 MB / 472.3 MB, free: 13.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000387/0.3463, allocations: 330.7 kB / 472.7 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002519/0.3465, allocations: 43.27 kB / 472.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.3467, allocations: 51.41 kB / 472.8 MB, free: 12.59 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3467, allocations: 0 / 472.8 MB, free: 12.59 MB / 382.1 MB Notification: Performance of Templates: time 0.02631/0.373, allocations: 14.91 MB / 487.7 MB, free: 13.72 MB / 398.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.427417405415326]