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.00169/0.00169, allocations: 107 kB / 21.18 MB, free: 0.6484 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.002074/0.002074, allocations: 214.8 kB / 24.48 MB, free: 3.941 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.464/1.464, allocations: 230.6 MB / 258.2 MB, free: 7.777 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.0015/0.0015, allocations: 47.94 kB / 379 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2128/0.2143, allocations: 53.37 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004402/0.2187, allocations: 2.905 MB / 435.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002158/0.2208, allocations: 1.282 MB / 436.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.2209, allocations: 4 kB / 436.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004062/0.2214, allocations: 99.16 kB / 436.6 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002322/0.2216, allocations: 126.9 kB / 436.7 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008221/0.2224, allocations: 438 kB / 437.2 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008008/0.2232, allocations: 0.8192 MB / 438 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000179/0.2234, allocations: 72.66 kB / 438 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005051/0.2239, allocations: 383.1 kB / 438.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001615/0.2255, allocations: 1.479 MB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.2256, allocations: 68 kB / 440 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002469/0.2259, allocations: 131.9 kB / 440.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002423/0.2261, allocations: 239.7 kB / 440.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002921/0.2264, allocations: 298.5 kB / 440.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009578/0.2274, allocations: 0.922 MB / 441.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2274, allocations: 4 kB / 441.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.031e-06/0.2274, allocations: 0 / 441.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.2274, allocations: 4 kB / 441.6 MB, free: 13.45 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.004003/0.2314, allocations: 1.431 MB / 443 MB, free: 11.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.2314, allocations: 12.03 kB / 443 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005117/0.2319, allocations: 104.4 kB / 443.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006295/0.2326, allocations: 374.2 kB / 443.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.323e-05/0.2326, allocations: 29.38 kB / 443.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.2327, allocations: 44.36 kB / 443.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/0.2343, allocations: 0.6341 MB / 444.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.66e-05/0.2343, allocations: 11.95 kB / 444.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.854e-05/0.2344, allocations: 19.92 kB / 444.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.2344, allocations: 16 kB / 444.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002058/0.2365, allocations: 0.6818 MB / 444.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003569/0.24, allocations: 1.429 MB / 446.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001428/0.2414, allocations: 484.8 kB / 446.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008651/0.2423, allocations: 285.6 kB / 447.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.446e-05/0.2424, allocations: 8 kB / 447.1 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001186/0.2436, allocations: 490.8 kB / 447.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.743e-06/0.2436, allocations: 0 / 447.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009265/0.2528, allocations: 2.438 MB / 450 MB, free: 4.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.054e-05/0.2529, allocations: 92.98 kB / 450.1 MB, free: 4.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009814/0.2539, allocations: 0.9102 MB / 451 MB, free: 3.723 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.253e-05/0.254, allocations: 49.69 kB / 451.1 MB, free: 3.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/0.2542, allocations: 296.6 kB / 451.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/0.2544, allocations: 178.7 kB / 451.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002494/0.2546, allocations: 118.3 kB / 451.6 MB, free: 3.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.2548, allocations: 382.7 kB / 452 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009514/0.2558, allocations: 329.1 kB / 452.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.2568, allocations: 415 kB / 452.7 MB, free: 1.938 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.2583, allocations: 0.5094 MB / 453.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2583, allocations: 0 / 453.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00285/0.2611, allocations: 0.9871 MB / 454.2 MB, free: 408 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.2611, allocations: 8 kB / 454.2 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.2612, allocations: 3.984 kB / 454.2 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/0.2623, allocations: 0.5606 MB / 454.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005289/0.2628, allocations: 115.8 kB / 454.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006364/0.2691, allocations: 4.45 MB / 459.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.2706, allocations: 231.7 kB / 459.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-05/0.2706, allocations: 27.98 kB / 459.6 MB, free: 10.77 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.0003786/0.271, allocations: 252.3 kB / 459.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.2712, allocations: 75.53 kB / 459.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002024/0.2714, allocations: 106.1 kB / 460 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.2714, allocations: 8 kB / 460.1 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.2714, allocations: 0 / 460.1 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.2714, allocations: 3.984 kB / 460.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003074/0.2745, allocations: 1.219 MB / 461.3 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2745, allocations: 0 / 461.3 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005034/0.275, allocations: 87.94 kB / 461.4 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001006/0.276, allocations: 0.5138 MB / 461.9 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.346e-05/0.276, allocations: 27.91 kB / 461.9 MB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005619/0.2817, allocations: 4.083 MB / 466 MB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.2817, allocations: 3.984 kB / 466 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003604/0.2853, allocations: 1.249 MB / 467.2 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003336/0.2856, allocations: 147.3 kB / 467.4 MB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.2857, allocations: 20 kB / 467.4 MB, free: 2.645 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001742/0.2875, allocations: 271.6 kB / 467.7 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001398/0.2889, allocations: 0.5732 MB / 468.2 MB, free: 1.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.416e-05/0.2889, allocations: 32.27 kB / 468.3 MB, free: 1.773 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007077/0.2896, allocations: 0.6631 MB / 468.9 MB, free: 1.117 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2896, allocations: 0 / 468.9 MB, free: 1.117 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007159/0.2904, allocations: 184 kB / 469.1 MB, free: 0.9375 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.0015/0.2919, allocations: 423.8 kB / 469.5 MB, free: 0.668 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002332/0.2942, allocations: 0.9178 MB / 470.4 MB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2942, allocations: 0 / 470.4 MB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001478/0.2957, allocations: 0.6467 MB / 471.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006096/0.2963, allocations: 86.83 kB / 471.2 MB, free: 14.97 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004214/0.3005, allocations: 1.918 MB / 473.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.3008, allocations: 330.7 kB / 473.4 MB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002068/0.301, allocations: 43.27 kB / 473.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.3012, allocations: 47.42 kB / 473.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3012, allocations: 4 kB / 473.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of Templates: time 0.02354/0.3247, allocations: 14.91 MB / 488.4 MB, free: 13.71 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/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.190891263991944]