Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 81.58 kB / 20.68 MB, free: 1.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 146.7 kB / 23.94 MB, free: 4.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 173.3 MB / 200.4 MB, free: 12.86 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 318.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.393e-05/2.565e-05, allocations: 7.531 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002976/0.003002, allocations: 2.402 MB / 321.3 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006476/0.00365, allocations: 382.3 kB / 321.7 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.003782, allocations: 4 kB / 321.7 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.003926, allocations: 50.06 kB / 321.7 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001722/0.004099, allocations: 104.6 kB / 321.8 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.004393, allocations: 98.62 kB / 321.9 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003324/0.004725, allocations: 392.6 kB / 322.3 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.004913, allocations: 77.31 kB / 322.4 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002539/0.005167, allocations: 208.3 kB / 322.6 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.005356, allocations: 131 kB / 322.7 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.644e-05/0.005412, allocations: 29.69 kB / 322.8 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.094e-05/0.005473, allocations: 31.19 kB / 322.8 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.75e-05/0.00553, allocations: 68.8 kB / 322.9 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.00565, allocations: 122.2 kB / 323 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004084/0.006059, allocations: 387.9 kB / 323.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.006062, allocations: 0 / 323.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.006063, allocations: 0 / 323.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.00607, allocations: 1.156 kB / 323.3 MB, free: 0.8711 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0009899/0.00706, allocations: 0.554 MB / 323.9 MB, free: 468 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.007097, allocations: 10.2 kB / 323.9 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.992e-05/0.007167, allocations: 34.44 kB / 323.9 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003103/0.007477, allocations: 218.5 kB / 324.2 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/0.007511, allocations: 20.53 kB / 324.2 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.505e-05/0.007566, allocations: 31.06 kB / 324.2 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005583/0.008125, allocations: 277.3 kB / 324.5 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.008144, allocations: 1.562 kB / 324.5 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.869e-05/0.008173, allocations: 15.67 kB / 324.5 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.008182, allocations: 7.25 kB / 324.5 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005793/0.008761, allocations: 270.5 kB / 324.8 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.01006, allocations: 0.6473 MB / 325.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006726/0.01074, allocations: 335.3 kB / 325.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003788/0.01112, allocations: 178 kB / 325.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.796e-05/0.01115, allocations: 9.828 kB / 325.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.01119, allocations: 38.06 kB / 326 MB, free: 15.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.784e-06/0.01119, allocations: 4 kB / 326 MB, free: 15.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.004613/0.0158, allocations: 1.819 MB / 327.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.01585, allocations: 59.56 kB / 327.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.01606, allocations: 185.6 kB / 328 MB, free: 14.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.273e-05/0.0161, allocations: 38.92 kB / 328.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.01623, allocations: 153 kB / 328.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001865/0.01641, allocations: 218.8 kB / 328.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.01657, allocations: 91.69 kB / 328.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.01677, allocations: 340.3 kB / 328.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003722/0.01714, allocations: 164.2 kB / 329 MB, free: 13.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003542/0.01749, allocations: 167.8 kB / 329.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007753/0.01827, allocations: 383.5 kB / 329.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.01827, allocations: 5.094 kB / 329.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009613/0.01923, allocations: 493.1 kB / 330 MB, free: 13.06 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.01925, allocations: 5.406 kB / 330 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.01926, allocations: 1.094 kB / 330 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.01927, allocations: 3.406 kB / 330 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005133/0.01979, allocations: 125.7 kB / 330.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.0198, allocations: 7.031 kB / 330.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000225/0.02002, allocations: 22.67 kB / 330.2 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.749e-05/0.02006, allocations: 17.83 kB / 330.2 MB, free: 13.03 MB / 302.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 (69): * Single equations (assignments): 69 * 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.0002109/0.02027, allocations: 158.4 kB / 330.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.761e-05/0.02035, allocations: 36.39 kB / 330.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001294/0.02048, allocations: 49.75 kB / 330.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.02049, allocations: 10.59 kB / 330.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.0205, allocations: 4 kB / 330.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-05/0.02052, allocations: 4.531 kB / 330.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002346/0.02287, allocations: 1.164 MB / 331.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.236e-06/0.02287, allocations: 4.438 kB / 331.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005542/0.02343, allocations: 123.7 kB / 331.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.306e-05/0.02344, allocations: 7.828 kB / 331.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.769e-05/0.02349, allocations: 16.89 kB / 331.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.509e-05/0.02351, allocations: 12.56 kB / 331.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/0.02352, allocations: 8.531 kB / 331.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001751/0.02527, allocations: 0.8786 MB / 332.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.845e-05/0.02535, allocations: 32.03 kB / 332.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.402e-05/0.02542, allocations: 16.17 kB / 332.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002865/0.0257, allocations: 30.42 kB / 332.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.02584, allocations: 59.06 kB / 332.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.146e-05/0.02588, allocations: 21.78 kB / 332.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001774/0.02606, allocations: 133.2 kB / 333 MB, free: 11.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.02606, allocations: 1.531 kB / 333 MB, free: 11.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005176/0.02658, allocations: 93.22 kB / 333.1 MB, free: 11.34 MB / 302.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 (63): * Single equations (assignments): 63 * 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.000202/0.02678, allocations: 122.2 kB / 333.2 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000968/0.02775, allocations: 417.7 kB / 333.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.02775, allocations: 0 / 333.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004581/0.02821, allocations: 244.9 kB / 333.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006641/0.02887, allocations: 88.03 kB / 333.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.03059, allocations: 0.9086 MB / 334.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.03078, allocations: 193.5 kB / 335 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001745/0.03096, allocations: 43.05 kB / 335.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.03108, allocations: 34.88 kB / 335.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.03108, allocations: 0 / 335.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of Templates: time 0.009641/0.04072, allocations: 4.162 MB / 339.2 MB, free: 6.926 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.3662156239151955]