Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.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.001827/0.001827, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001734/0.001734, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.467/1.467, allocations: 230.3 MB / 258 MB, free: 8.242 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.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap") translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 63.89 kB / 378.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2736, allocations: 53.36 MB / 432.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004043/0.2776, allocations: 2.686 MB / 434.8 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001286/0.2789, allocations: 0.752 MB / 435.5 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.2791, allocations: 4 kB / 435.5 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.2792, allocations: 51.44 kB / 435.6 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002036/0.2794, allocations: 107 kB / 435.7 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002791/0.2797, allocations: 95.83 kB / 435.8 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004398/0.2801, allocations: 390.3 kB / 436.2 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.2803, allocations: 83.58 kB / 436.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.2805, allocations: 147.4 kB / 436.4 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000238/0.2808, allocations: 167.3 kB / 436.6 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.152e-05/0.2808, allocations: 32 kB / 436.6 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.195e-05/0.2809, allocations: 32 kB / 436.6 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.535e-05/0.2809, allocations: 75.73 kB / 436.7 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001743/0.2811, allocations: 167.1 kB / 436.9 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004163/0.2815, allocations: 380.1 kB / 437.2 MB, free: 1.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.2815, allocations: 0 / 437.2 MB, free: 1.938 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2815, allocations: 8 kB / 437.2 MB, free: 1.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.2815, allocations: 3.938 kB / 437.2 MB, free: 1.926 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001083/0.2826, allocations: 0.5597 MB / 437.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.2827, allocations: 8.031 kB / 437.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.501e-05/0.2827, allocations: 40.7 kB / 437.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.2831, allocations: 210.9 kB / 438.1 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.037e-05/0.2831, allocations: 21.03 kB / 438.1 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.937e-05/0.2832, allocations: 43.83 kB / 438.1 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000488/0.2837, allocations: 258.1 kB / 438.4 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.058e-05/0.2837, allocations: 0 / 438.4 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.2837, allocations: 16 kB / 438.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.2838, allocations: 12 kB / 438.4 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004216/0.2842, allocations: 222.5 kB / 438.6 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.2855, allocations: 0.7641 MB / 439.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005262/0.286, allocations: 319.5 kB / 439.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000269/0.2863, allocations: 158.2 kB / 439.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.2863, allocations: 4.375 kB / 439.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.2864, allocations: 42.92 kB / 439.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.483e-06/0.2864, allocations: 0 / 439.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003942/0.2903, allocations: 1.776 MB / 441.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.601e-05/0.2904, allocations: 60.06 kB / 441.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.2906, allocations: 207.3 kB / 441.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.2906, allocations: 37.7 kB / 442 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.2907, allocations: 149.1 kB / 442.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.2909, allocations: 234 kB / 442.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.2911, allocations: 94.34 kB / 442.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.2912, allocations: 346.8 kB / 442.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002704/0.2915, allocations: 141.2 kB / 442.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00027/0.2918, allocations: 153.8 kB / 443.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005934/0.2924, allocations: 358 kB / 443.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2924, allocations: 0 / 443.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007409/0.2931, allocations: 461.1 kB / 443.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.2931, allocations: 8 kB / 443.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.2931, allocations: 0 / 443.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.2931, allocations: 3.938 kB / 443.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004642/0.2936, allocations: 115.8 kB / 444 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.2936, allocations: 7.984 kB / 444 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.2938, allocations: 16 kB / 444 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.223e-05/0.2938, allocations: 16 kB / 444 MB, free: 10.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap2.contact,elastoGap1.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001788/0.294, allocations: 165.7 kB / 444.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.27e-05/0.2941, allocations: 43.7 kB / 444.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.2942, allocations: 51.33 kB / 444.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.2942, allocations: 11.94 kB / 444.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.2942, allocations: 0 / 444.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.2942, allocations: 3.984 kB / 444.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002082/0.2963, allocations: 1.258 MB / 445.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.2963, allocations: 4 kB / 445.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004902/0.2968, allocations: 119.8 kB / 445.7 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.108e-05/0.2968, allocations: 8.562 kB / 445.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.701e-05/0.2969, allocations: 19.98 kB / 445.7 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.898e-06/0.2969, allocations: 11.94 kB / 445.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/0.2969, allocations: 8 kB / 445.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.298, allocations: 0.8416 MB / 446.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.064e-05/0.2981, allocations: 39.77 kB / 446.6 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.727e-05/0.2981, allocations: 20.03 kB / 446.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002438/0.2984, allocations: 16 kB / 446.6 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.2985, allocations: 60.23 kB / 446.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-05/0.2985, allocations: 20 kB / 446.7 MB, free: 8.031 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001471/0.2987, allocations: 152.5 kB / 446.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2987, allocations: 0 / 446.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004178/0.2991, allocations: 96 kB / 447 MB, free: 7.789 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001598/0.2992, allocations: 127.1 kB / 447.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007198/0.3, allocations: 383.7 kB / 447.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3, allocations: 0 / 447.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003809/0.3004, allocations: 223.2 kB / 447.7 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007043/0.3011, allocations: 110.2 kB / 447.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001789/0.3028, allocations: 1.02 MB / 448.8 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004629/0.3033, allocations: 0.7933 MB / 449.6 MB, free: 5.035 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00019/0.3035, allocations: 51.34 kB / 449.6 MB, free: 4.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.3036, allocations: 39.42 kB / 449.7 MB, free: 4.945 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3036, allocations: 0 / 449.7 MB, free: 4.945 MB / 350.1 MB Notification: Performance of Templates: time 0.01014/0.3137, allocations: 4.744 MB / 454.4 MB, free: 256 kB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.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: 4.558769307099283]