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.001349/0.001349, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001453/0.001453, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.499/1.499, allocations: 230.3 MB / 258 MB, free: 8.258 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.002006/0.002006, allocations: 63.89 kB / 378.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2741, allocations: 53.36 MB / 432.1 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004975/0.2791, allocations: 3.15 MB / 435.3 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002833/0.2819, allocations: 1.359 MB / 436.6 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000281/0.2822, allocations: 4 kB / 436.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000494/0.2827, allocations: 103.1 kB / 436.7 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002774/0.283, allocations: 126.9 kB / 436.8 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001077/0.2841, allocations: 422.5 kB / 437.3 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009632/0.285, allocations: 0.8154 MB / 438.1 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002228/0.2853, allocations: 73.69 kB / 438.1 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006668/0.2859, allocations: 391 kB / 438.5 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001871/0.2878, allocations: 1.471 MB / 440 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001974/0.288, allocations: 72 kB / 440.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003168/0.2883, allocations: 128 kB / 440.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000272/0.2886, allocations: 235.8 kB / 440.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003913/0.289, allocations: 358 kB / 440.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.2902, allocations: 0.9162 MB / 441.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2902, allocations: 0 / 441.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.2902, allocations: 0 / 441.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.2902, allocations: 0 / 441.7 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.004356/0.2945, allocations: 1.443 MB / 443.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.2946, allocations: 8.031 kB / 443.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005358/0.2951, allocations: 108.4 kB / 443.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007191/0.2958, allocations: 378.2 kB / 443.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.227e-05/0.2959, allocations: 29.38 kB / 443.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.296, allocations: 40.38 kB / 443.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.2976, allocations: 0.6341 MB / 444.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.2977, allocations: 7.953 kB / 444.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.86e-05/0.2977, allocations: 16 kB / 444.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.2978, allocations: 8 kB / 444.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002099/0.2999, allocations: 0.7013 MB / 445 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003908/0.3038, allocations: 1.627 MB / 446.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001481/0.3052, allocations: 480.8 kB / 447.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008984/0.3061, allocations: 289.6 kB / 447.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.762e-05/0.3062, allocations: 7.984 kB / 447.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001264/0.3075, allocations: 494.3 kB / 447.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.924e-06/0.3075, allocations: 0 / 447.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009756/0.3172, allocations: 2.429 MB / 450.3 MB, free: 4.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.3173, allocations: 81.11 kB / 450.4 MB, free: 4.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/0.3184, allocations: 0.9181 MB / 451.3 MB, free: 3.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.3185, allocations: 53.69 kB / 451.4 MB, free: 3.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002622/0.3187, allocations: 304.7 kB / 451.7 MB, free: 3.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.3189, allocations: 178.6 kB / 451.9 MB, free: 2.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002526/0.3192, allocations: 122.2 kB / 452 MB, free: 2.859 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.3194, allocations: 390.6 kB / 452.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009729/0.3203, allocations: 321.1 kB / 452.7 MB, free: 2.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.3214, allocations: 415 kB / 453.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001625/0.323, allocations: 0.5147 MB / 453.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.323, allocations: 0 / 453.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002972/0.326, allocations: 0.9758 MB / 454.6 MB, free: 192 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.326, allocations: 7.938 kB / 454.6 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.326, allocations: 11.97 kB / 454.6 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/0.3272, allocations: 0.5451 MB / 455.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005552/0.3277, allocations: 115.8 kB / 455.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006929/0.3347, allocations: 4.532 MB / 459.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001569/0.3362, allocations: 223.8 kB / 460 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.52e-05/0.3363, allocations: 23.98 kB / 460 MB, free: 10.47 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.0004251/0.3367, allocations: 264.2 kB / 460.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.3369, allocations: 75.47 kB / 460.4 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002206/0.3371, allocations: 106.2 kB / 460.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3371, allocations: 4 kB / 460.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.3371, allocations: 0 / 460.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3371, allocations: 3.984 kB / 460.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003241/0.3403, allocations: 1.377 MB / 461.9 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3403, allocations: 128 / 461.9 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005032/0.3409, allocations: 87.94 kB / 461.9 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/0.3419, allocations: 0.5138 MB / 462.5 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.307e-05/0.3419, allocations: 23.97 kB / 462.5 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005931/0.3479, allocations: 4.156 MB / 466.6 MB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.666e-06/0.3479, allocations: 11.91 kB / 466.6 MB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003758/0.3516, allocations: 1.265 MB / 467.9 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003536/0.352, allocations: 139.5 kB / 468 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.3521, allocations: 20 kB / 468.1 MB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00184/0.354, allocations: 267.6 kB / 468.3 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001456/0.3554, allocations: 0.5771 MB / 468.9 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.73e-05/0.3555, allocations: 31.97 kB / 468.9 MB, free: 1.188 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007396/0.3562, allocations: 0.667 MB / 469.6 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3562, allocations: 4 kB / 469.6 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000805/0.357, allocations: 187.9 kB / 469.8 MB, free: 348 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.001433/0.3585, allocations: 392.8 kB / 470.2 MB, free: 64 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002552/0.361, allocations: 0.9138 MB / 471.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.361, allocations: 4.375 kB / 471.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001569/0.3626, allocations: 0.6497 MB / 471.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006311/0.3632, allocations: 85.84 kB / 471.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004464/0.3677, allocations: 1.914 MB / 473.7 MB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005779/0.3683, allocations: 0.9374 MB / 474.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002115/0.3685, allocations: 39.28 kB / 474.7 MB, free: 11.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.3686, allocations: 51.41 kB / 474.8 MB, free: 11.36 MB / 382.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3686, allocations: 0 / 474.8 MB, free: 11.36 MB / 382.1 MB Notification: Performance of Templates: time 0.02798/0.3966, allocations: 16.51 MB / 491.3 MB, free: 10.87 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/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_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: 5.239009979180992]