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.0009829/0.0009829, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001098/0.001098, allocations: 145.4 kB / 25.59 MB, free: 8.918 MB / 18.57 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.016/1.016, allocations: 173.4 MB / 202.2 MB, free: 8.273 MB / 186.7 MB " [Timeout remaining time 179] 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.253e-06/1.253e-06, allocations: 0 / 269.2 MB, free: 9.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.848e-05/1.974e-05, allocations: 6.703 kB / 269.2 MB, free: 9.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002653/0.002673, allocations: 2.563 MB / 271.7 MB, free: 7.242 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005238/0.003197, allocations: 383.5 kB / 272.1 MB, free: 6.871 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.003302, allocations: 7.938 kB / 272.1 MB, free: 6.863 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001491/0.003451, allocations: 48.05 kB / 272.2 MB, free: 6.816 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001396/0.00359, allocations: 109 kB / 272.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002489/0.003839, allocations: 95.03 kB / 272.4 MB, free: 6.621 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005233/0.004362, allocations: 394.1 kB / 272.8 MB, free: 6.234 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.004502, allocations: 71.64 kB / 272.8 MB, free: 6.16 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.004664, allocations: 211.6 kB / 273 MB, free: 5.953 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/0.004797, allocations: 123.7 kB / 273.2 MB, free: 5.832 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.501e-05/0.004832, allocations: 32 kB / 273.2 MB, free: 5.801 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.895e-05/0.004861, allocations: 28 kB / 273.2 MB, free: 5.773 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.375e-05/0.004905, allocations: 72.42 kB / 273.3 MB, free: 5.703 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.787e-05/0.004983, allocations: 121.4 kB / 273.4 MB, free: 5.586 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002104/0.005193, allocations: 259 kB / 273.7 MB, free: 5.332 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.784e-06/0.005195, allocations: 0 / 273.7 MB, free: 5.332 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.005195, allocations: 0 / 273.7 MB, free: 5.332 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.005199, allocations: 0 / 273.7 MB, free: 5.332 MB / 250.7 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.000622/0.005821, allocations: 0.6494 MB / 274.3 MB, free: 4.645 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.942e-05/0.005851, allocations: 8.031 kB / 274.3 MB, free: 4.637 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.193e-05/0.005913, allocations: 56.75 kB / 274.4 MB, free: 4.582 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001902/0.006103, allocations: 212.9 kB / 274.6 MB, free: 4.348 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.006126, allocations: 21.03 kB / 274.6 MB, free: 4.324 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.395e-05/0.00616, allocations: 32.38 kB / 274.6 MB, free: 4.293 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002332/0.006394, allocations: 207.2 kB / 274.8 MB, free: 4.086 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.006405, allocations: 192 / 274.8 MB, free: 4.086 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.006422, allocations: 12.38 kB / 274.8 MB, free: 4.074 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.006428, allocations: 8.375 kB / 274.9 MB, free: 4.066 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001412/0.006569, allocations: 124.4 kB / 275 MB, free: 3.949 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006746/0.007244, allocations: 0.6314 MB / 275.6 MB, free: 3.289 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/0.007485, allocations: 251.2 kB / 275.8 MB, free: 3.027 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.644e-05/0.007581, allocations: 109.5 kB / 276 MB, free: 2.918 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.007603, allocations: 11.98 kB / 276 MB, free: 2.906 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.007626, allocations: 41.39 kB / 276 MB, free: 2.855 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.533e-06/0.007628, allocations: 0 / 276 MB, free: 2.855 MB / 250.7 MB Notification: Performance of matching and sorting (n=63): time 0.001546/0.009174, allocations: 1.282 MB / 277.3 MB, free: 1.512 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.354e-05/0.009208, allocations: 56.06 kB / 277.3 MB, free: 1.445 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.009335, allocations: 235.3 kB / 277.6 MB, free: 1.199 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.009361, allocations: 37.7 kB / 277.6 MB, free: 1.156 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.755e-05/0.009448, allocations: 199.8 kB / 277.8 MB, free: 0.957 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.009552, allocations: 226 kB / 278 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.945e-05/0.009642, allocations: 95.95 kB / 278.1 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.009771, allocations: 0.5156 MB / 278.6 MB, free: 108 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.516e-05/0.009846, allocations: 61.27 kB / 278.7 MB, free: 44 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.731e-05/0.009933, allocations: 73.84 kB / 278.8 MB, free: 15.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001953/0.01013, allocations: 208.6 kB / 279 MB, free: 15.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.01013, allocations: 0 / 279 MB, free: 15.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0003047/0.01043, allocations: 333.1 kB / 279.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.01045, allocations: 4 kB / 279.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.01045, allocations: 0 / 279.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.616e-06/0.01046, allocations: 8 kB / 279.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002455/0.01071, allocations: 119.8 kB / 279.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.01071, allocations: 4 kB / 279.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.466e-05/0.01078, allocations: 15.98 kB / 279.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.0108, allocations: 16 kB / 279.5 MB, free: 15.27 MB / 266.7 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.0001032/0.0109, allocations: 184.5 kB / 279.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.641e-05/0.01096, allocations: 59.69 kB / 279.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.941e-05/0.01102, allocations: 47.33 kB / 279.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.01102, allocations: 4 kB / 279.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.01103, allocations: 8 kB / 279.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.01103, allocations: 7.969 kB / 279.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/0.01224, allocations: 1.043 MB / 280.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.01225, allocations: 4 kB / 280.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/0.01249, allocations: 119.8 kB / 280.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.0125, allocations: 8 kB / 280.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.01252, allocations: 19.98 kB / 281 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.01252, allocations: 11.94 kB / 281 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.01253, allocations: 4 kB / 281 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005169/0.01304, allocations: 0.7378 MB / 281.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.586e-05/0.01307, allocations: 31.77 kB / 281.7 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.153e-05/0.0131, allocations: 20 kB / 281.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.01322, allocations: 19.98 kB / 281.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.45e-05/0.01327, allocations: 55.55 kB / 281.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.01329, allocations: 16 kB / 281.9 MB, free: 12.65 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.644e-05/0.01335, allocations: 174.9 kB / 282 MB, free: 12.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01335, allocations: 0 / 282 MB, free: 12.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002371/0.01358, allocations: 92 kB / 282.1 MB, free: 12.39 MB / 266.7 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 8.344e-05/0.01367, allocations: 123.1 kB / 282.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002632/0.01393, allocations: 281.1 kB / 282.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.01393, allocations: 0 / 282.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.01408, allocations: 173.6 kB / 282.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.01446, allocations: 100 kB / 282.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008326/0.01529, allocations: 0.9122 MB / 283.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.483e-05/0.01536, allocations: 106.8 kB / 283.8 MB, free: 10.58 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.01547, allocations: 43.27 kB / 283.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001663/0.01563, allocations: 162.1 kB / 284 MB, free: 10.38 MB / 266.7 MB Notification: Performance of SimCode: time 6.02e-07/0.01563, allocations: 0 / 284 MB, free: 10.38 MB / 266.7 MB Notification: Performance of Templates: time 0.006204/0.02184, allocations: 4.704 MB / 288.7 MB, free: 5.762 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7347803725861013]