Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001868/0.001868, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00237/0.00237, allocations: 214.5 kB / 24.48 MB, free: 3.836 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 230.5 MB / 258.1 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002234/0.002234, allocations: 59.91 kB / 379 MB, free: 2.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.251, allocations: 53.41 MB / 432.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004694/0.2557, allocations: 2.902 MB / 435.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002543/0.2582, allocations: 1.282 MB / 436.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002538/0.2585, allocations: 4 kB / 436.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004928/0.259, allocations: 107.1 kB / 436.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002633/0.2592, allocations: 122.9 kB / 436.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001031/0.2603, allocations: 434.2 kB / 437.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.2613, allocations: 0.8193 MB / 438 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.2615, allocations: 65.38 kB / 438.1 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006667/0.2621, allocations: 383.1 kB / 438.5 MB, free: 444 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001813/0.264, allocations: 1.44 MB / 439.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001545/0.2641, allocations: 68 kB / 440 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003294/0.2644, allocations: 128 kB / 440.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002739/0.2647, allocations: 239.7 kB / 440.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003468/0.2651, allocations: 294.5 kB / 440.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001174/0.2662, allocations: 0.9252 MB / 441.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2662, allocations: 0 / 441.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2662, allocations: 0 / 441.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.2663, allocations: 4 kB / 441.6 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.004124/0.2704, allocations: 1.431 MB / 443 MB, free: 11.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.2704, allocations: 15.98 kB / 443 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005686/0.271, allocations: 104.4 kB / 443.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007787/0.2718, allocations: 386.2 kB / 443.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.33e-05/0.2718, allocations: 33.38 kB / 443.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.2719, allocations: 36.38 kB / 443.5 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.2735, allocations: 0.638 MB / 444.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.1e-05/0.2736, allocations: 7.953 kB / 444.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.265e-05/0.2736, allocations: 16 kB / 444.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.2736, allocations: 11.98 kB / 444.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001993/0.2756, allocations: 0.6857 MB / 444.9 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003975/0.2796, allocations: 1.441 MB / 446.3 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.2811, allocations: 485.1 kB / 446.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008432/0.2819, allocations: 285.5 kB / 447.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.653e-05/0.282, allocations: 4 kB / 447.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001202/0.2832, allocations: 494.8 kB / 447.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.144e-06/0.2832, allocations: 0 / 447.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009465/0.2926, allocations: 2.433 MB / 450 MB, free: 4.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.292e-05/0.2927, allocations: 89.05 kB / 450.1 MB, free: 4.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001166/0.2939, allocations: 0.918 MB / 451 MB, free: 3.598 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.294, allocations: 49.69 kB / 451.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002687/0.2943, allocations: 292.7 kB / 451.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001976/0.2945, allocations: 178.6 kB / 451.5 MB, free: 3.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002573/0.2947, allocations: 122.3 kB / 451.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002193/0.2949, allocations: 382.7 kB / 452 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009542/0.2959, allocations: 321.1 kB / 452.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.2969, allocations: 418.9 kB / 452.7 MB, free: 1.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/0.2984, allocations: 0.507 MB / 453.3 MB, free: 1.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.2985, allocations: 0 / 453.3 MB, free: 1.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002942/0.3014, allocations: 0.9796 MB / 454.2 MB, free: 292 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.3014, allocations: 11.94 kB / 454.2 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.3014, allocations: 0 / 454.2 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/0.3027, allocations: 0.5529 MB / 454.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005696/0.3032, allocations: 115.8 kB / 454.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006969/0.3102, allocations: 4.448 MB / 459.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/0.3118, allocations: 235.7 kB / 459.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.205e-05/0.3118, allocations: 20 kB / 459.6 MB, free: 10.67 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.0004622/0.3123, allocations: 252.3 kB / 459.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.3125, allocations: 79.47 kB / 459.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000222/0.3127, allocations: 110.1 kB / 460 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3127, allocations: 12 kB / 460.1 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3127, allocations: 0 / 460.1 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.3127, allocations: 0 / 460.1 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003153/0.3159, allocations: 1.216 MB / 461.3 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.3159, allocations: 0 / 461.3 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005013/0.3164, allocations: 87.92 kB / 461.4 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/0.3174, allocations: 0.5139 MB / 461.9 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.639e-05/0.3175, allocations: 27.89 kB / 461.9 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005994/0.3234, allocations: 4.091 MB / 466 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3234, allocations: 0 / 466 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003815/0.3273, allocations: 1.253 MB / 467.2 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004383/0.3277, allocations: 143.3 kB / 467.4 MB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001828/0.3279, allocations: 27.98 kB / 467.4 MB, free: 2.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001838/0.3297, allocations: 263.6 kB / 467.7 MB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001482/0.3312, allocations: 0.5771 MB / 468.2 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.3313, allocations: 27.97 kB / 468.3 MB, free: 1.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008676/0.3322, allocations: 0.667 MB / 468.9 MB, free: 1 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3322, allocations: 0 / 468.9 MB, free: 1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008508/0.333, allocations: 180 kB / 469.1 MB, free: 0.8242 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.001566/0.3346, allocations: 428.1 kB / 469.5 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002641/0.3372, allocations: 0.922 MB / 470.5 MB, free: 15.58 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.3372, allocations: 0 / 470.5 MB, free: 15.58 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.3387, allocations: 0.6038 MB / 471.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007349/0.3394, allocations: 94.77 kB / 471.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004864/0.3443, allocations: 1.958 MB / 473.1 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005309/0.3448, allocations: 338.7 kB / 473.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.345, allocations: 39.42 kB / 473.5 MB, free: 12.47 MB / 382.1 MB Notification: Performance of SimCode: time 1.041e-06/0.345, allocations: 0 / 473.5 MB, free: 12.47 MB / 382.1 MB Notification: Performance of Templates: time 0.0224/0.3674, allocations: 14.43 MB / 487.9 MB, free: 14.04 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 8.800833814311773]