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.001939/0.001939, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.00249/0.00249, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.519/1.519, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.002547/0.002547, allocations: 47.92 kB / 378.2 MB, free: 2.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2672, allocations: 53.38 MB / 431.6 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00542/0.2726, allocations: 3.147 MB / 434.8 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002899/0.2755, allocations: 1.348 MB / 436.1 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004182/0.2759, allocations: 11.94 kB / 436.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006583/0.2766, allocations: 103.1 kB / 436.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004392/0.277, allocations: 118.9 kB / 436.3 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001223/0.2782, allocations: 425.6 kB / 436.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001334/0.2796, allocations: 0.827 MB / 437.6 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002345/0.2798, allocations: 73.7 kB / 437.7 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007742/0.2806, allocations: 387 kB / 438 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001942/0.2825, allocations: 1.471 MB / 439.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002015/0.2827, allocations: 68 kB / 439.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003751/0.2831, allocations: 128 kB / 439.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003256/0.2834, allocations: 239.8 kB / 439.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005021/0.2839, allocations: 362.1 kB / 440.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001184/0.2851, allocations: 0.9157 MB / 441.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2851, allocations: 0 / 441.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2851, allocations: 0 / 441.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.993e-05/0.2851, allocations: 0 / 441.2 MB, free: 13.34 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.003979/0.2891, allocations: 1.439 MB / 442.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.2892, allocations: 8.031 kB / 442.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005397/0.2897, allocations: 116.4 kB / 442.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007103/0.2904, allocations: 374.2 kB / 443.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.208e-05/0.2905, allocations: 29.38 kB / 443.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.901e-05/0.2906, allocations: 36.38 kB / 443.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.2921, allocations: 0.642 MB / 443.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.2921, allocations: 7.891 kB / 443.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.266e-05/0.2922, allocations: 16 kB / 443.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.2922, allocations: 11.98 kB / 443.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001957/0.2942, allocations: 0.6857 MB / 444.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003758/0.2979, allocations: 1.631 MB / 446.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.2993, allocations: 476.9 kB / 446.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008189/0.3001, allocations: 297.5 kB / 446.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.039e-05/0.3002, allocations: 11.94 kB / 446.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001167/0.3014, allocations: 486.3 kB / 447.4 MB, free: 6.914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.783e-06/0.3014, allocations: 0 / 447.4 MB, free: 6.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.008711/0.3101, allocations: 2.438 MB / 449.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/0.3101, allocations: 85.09 kB / 449.9 MB, free: 4.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/0.3112, allocations: 0.9142 MB / 450.9 MB, free: 3.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.573e-05/0.3113, allocations: 45.7 kB / 450.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002938/0.3116, allocations: 300.7 kB / 451.2 MB, free: 3.031 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002049/0.3118, allocations: 182.6 kB / 451.4 MB, free: 2.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002674/0.3121, allocations: 118.2 kB / 451.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002292/0.3123, allocations: 394.6 kB / 451.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009148/0.3132, allocations: 325.1 kB / 452.2 MB, free: 2.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009615/0.3142, allocations: 415 kB / 452.6 MB, free: 1.586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.3156, allocations: 0.5094 MB / 453.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.3156, allocations: 4 kB / 453.1 MB, free: 1.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002753/0.3184, allocations: 0.9793 MB / 454.1 MB, free: 52 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.3184, allocations: 15.92 kB / 454.1 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.3184, allocations: 0 / 454.1 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.3196, allocations: 0.5491 MB / 454.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005147/0.3201, allocations: 107.9 kB / 454.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006803/0.3269, allocations: 4.531 MB / 459.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/0.3283, allocations: 223.8 kB / 459.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.756e-05/0.3284, allocations: 23.98 kB / 459.5 MB, free: 10.34 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.000469/0.3288, allocations: 256.3 kB / 459.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/0.329, allocations: 87.45 kB / 459.9 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002373/0.3292, allocations: 106.2 kB / 460 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.3292, allocations: 7.938 kB / 460 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3292, allocations: 0 / 460 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3293, allocations: 3.984 kB / 460 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003348/0.3326, allocations: 1.373 MB / 461.4 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.3326, allocations: 4.062 kB / 461.4 MB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004813/0.3331, allocations: 83.88 kB / 461.4 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009937/0.3341, allocations: 0.514 MB / 462 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-05/0.3341, allocations: 19.97 kB / 462 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005887/0.34, allocations: 4.167 MB / 466.1 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.34, allocations: 11.91 kB / 466.2 MB, free: 3.379 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003559/0.3436, allocations: 1.265 MB / 467.4 MB, free: 2.074 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003686/0.344, allocations: 131.5 kB / 467.6 MB, free: 1.945 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001263/0.3441, allocations: 20 kB / 467.6 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001619/0.3457, allocations: 271.6 kB / 467.8 MB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001399/0.3471, allocations: 0.581 MB / 468.4 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.341e-05/0.3472, allocations: 27.95 kB / 468.4 MB, free: 1.051 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007927/0.348, allocations: 0.667 MB / 469.1 MB, free: 400 kB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.348, allocations: 0 / 469.1 MB, free: 400 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008487/0.3488, allocations: 187.9 kB / 469.3 MB, free: 212 kB / 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.001531/0.3504, allocations: 396.6 kB / 469.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002454/0.3528, allocations: 0.9139 MB / 470.6 MB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3528, allocations: 3.938 kB / 470.6 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001497/0.3543, allocations: 0.6618 MB / 471.3 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006624/0.355, allocations: 86.3 kB / 471.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00448/0.3595, allocations: 1.899 MB / 473.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006413/0.3601, allocations: 0.9374 MB / 474.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002223/0.3603, allocations: 43.28 kB / 474.2 MB, free: 11.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.3605, allocations: 47.41 kB / 474.3 MB, free: 11.25 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3605, allocations: 0 / 474.3 MB, free: 11.25 MB / 382.1 MB Notification: Performance of Templates: time 0.02978/0.3903, allocations: 16.52 MB / 490.8 MB, free: 10.75 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.372014852939174]