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.001864/0.001864, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.002542/0.002542, allocations: 206.8 kB / 24.48 MB, free: 3.695 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.469/1.469, allocations: 230.6 MB / 258.2 MB, free: 7.805 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.001563/0.001563, allocations: 43.92 kB / 379 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2463, allocations: 53.37 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004705/0.251, allocations: 2.905 MB / 435.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002403/0.2534, allocations: 1.278 MB / 436.5 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001831/0.2536, allocations: 11.94 kB / 436.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004725/0.2541, allocations: 99.14 kB / 436.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002565/0.2543, allocations: 130.9 kB / 436.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009668/0.2553, allocations: 433.6 kB / 437.2 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008574/0.2562, allocations: 0.8192 MB / 438 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001991/0.2564, allocations: 72.66 kB / 438 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005573/0.2569, allocations: 387.1 kB / 438.4 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001788/0.2587, allocations: 1.475 MB / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.2588, allocations: 72 kB / 440 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002698/0.2591, allocations: 124 kB / 440.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002731/0.2594, allocations: 239.8 kB / 440.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000322/0.2597, allocations: 298.5 kB / 440.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001064/0.2608, allocations: 0.922 MB / 441.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2608, allocations: 3.938 kB / 441.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2608, allocations: 0 / 441.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.2608, allocations: 0 / 441.5 MB, free: 13.48 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.004012/0.2648, allocations: 1.435 MB / 443 MB, free: 12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.2648, allocations: 8.031 kB / 443 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005222/0.2653, allocations: 112.3 kB / 443.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007345/0.2661, allocations: 382.2 kB / 443.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.622e-05/0.2661, allocations: 33.38 kB / 443.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.2663, allocations: 36.38 kB / 443.5 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.2678, allocations: 0.6303 MB / 444.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.819e-05/0.2678, allocations: 11.94 kB / 444.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.848e-05/0.2679, allocations: 19.98 kB / 444.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.2679, allocations: 8 kB / 444.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.2699, allocations: 0.6856 MB / 444.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003591/0.2735, allocations: 1.433 MB / 446.3 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.2749, allocations: 484.8 kB / 446.8 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008067/0.2757, allocations: 288.1 kB / 447.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.944e-05/0.2757, allocations: 8 kB / 447.1 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001194/0.2769, allocations: 494.7 kB / 447.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.104e-06/0.2769, allocations: 0 / 447.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009265/0.2862, allocations: 2.434 MB / 450 MB, free: 4.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.235e-05/0.2863, allocations: 89.11 kB / 450.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/0.2874, allocations: 0.9141 MB / 451 MB, free: 3.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001062/0.2875, allocations: 53.69 kB / 451.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002571/0.2877, allocations: 292.7 kB / 451.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.2879, allocations: 174.7 kB / 451.5 MB, free: 3.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002674/0.2882, allocations: 114.3 kB / 451.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002131/0.2884, allocations: 386.7 kB / 452 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009311/0.2893, allocations: 321.1 kB / 452.3 MB, free: 2.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000976/0.2903, allocations: 422.9 kB / 452.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001454/0.2918, allocations: 0.5094 MB / 453.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.2918, allocations: 0 / 453.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002928/0.2947, allocations: 0.9871 MB / 454.2 MB, free: 440 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.2947, allocations: 4 kB / 454.2 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.2947, allocations: 8.031 kB / 454.2 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.2959, allocations: 0.5529 MB / 454.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005452/0.2965, allocations: 115.8 kB / 454.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006653/0.3031, allocations: 4.444 MB / 459.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/0.3046, allocations: 247.7 kB / 459.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.121e-05/0.3047, allocations: 20 kB / 459.6 MB, free: 10.8 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.0004318/0.3051, allocations: 256.3 kB / 459.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.3052, allocations: 75.53 kB / 459.9 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002113/0.3055, allocations: 102.1 kB / 460 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.3055, allocations: 8 kB / 460 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3055, allocations: 0 / 460 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.3055, allocations: 3.984 kB / 460 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003015/0.3085, allocations: 1.219 MB / 461.3 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.3085, allocations: 4 kB / 461.3 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004915/0.309, allocations: 83.86 kB / 461.4 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.31, allocations: 0.5139 MB / 461.9 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.166e-05/0.3101, allocations: 27.91 kB / 461.9 MB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005745/0.3158, allocations: 4.087 MB / 466 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3158, allocations: 0 / 466 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003627/0.3195, allocations: 1.249 MB / 467.2 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004258/0.3199, allocations: 143.3 kB / 467.4 MB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.32, allocations: 20 kB / 467.4 MB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/0.3216, allocations: 271.6 kB / 467.7 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001404/0.323, allocations: 0.581 MB / 468.2 MB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-05/0.3231, allocations: 27.97 kB / 468.3 MB, free: 1.805 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007864/0.3239, allocations: 0.667 MB / 468.9 MB, free: 1.145 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3239, allocations: 0 / 468.9 MB, free: 1.145 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008148/0.3247, allocations: 180 kB / 469.1 MB, free: 0.9688 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.001503/0.3262, allocations: 437.1 kB / 469.5 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002478/0.3287, allocations: 0.9217 MB / 470.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.3287, allocations: 0 / 470.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.3301, allocations: 0.6038 MB / 471.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006704/0.3308, allocations: 86.77 kB / 471.1 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004466/0.3352, allocations: 1.956 MB / 473.1 MB, free: 13.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003896/0.3356, allocations: 330.7 kB / 473.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.3358, allocations: 51.41 kB / 473.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3358, allocations: 0 / 473.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of Templates: time 0.02119/0.357, allocations: 14.42 MB / 487.9 MB, free: 14.21 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/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: 8.740766400995199]