Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.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.00172/0.00172, allocations: 116 kB / 18.45 MB, free: 4.605 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.002151/0.002151, allocations: 208.3 kB / 21.41 MB, free: 1.648 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.5/1.5, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.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.1.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.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002328/0.002328, allocations: 51.91 kB / 374.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1223, allocations: 53.33 MB / 427.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004091/0.1264, allocations: 2.68 MB / 430.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00147/0.1278, allocations: 0.7287 MB / 430.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.128, allocations: 7.938 kB / 430.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.1282, allocations: 51.5 kB / 430.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002207/0.1284, allocations: 111.1 kB / 431 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003207/0.1287, allocations: 87.81 kB / 431.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004125/0.1291, allocations: 394.2 kB / 431.5 MB, free: 232 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.1293, allocations: 83.11 kB / 431.6 MB, free: 140 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2373/0.3666, allocations: 149.8 kB / 431.7 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000424/0.367, allocations: 169.7 kB / 431.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.3671, allocations: 29.84 kB / 431.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.166e-05/0.3672, allocations: 30.31 kB / 432 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.824e-05/0.3673, allocations: 73.12 kB / 432 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002273/0.3675, allocations: 171.2 kB / 432.2 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000515/0.3681, allocations: 384.9 kB / 432.6 MB, free: 8.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3681, allocations: 1.125 kB / 432.6 MB, free: 8.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3681, allocations: 0 / 432.6 MB, free: 8.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.248e-06/0.3681, allocations: 0 / 432.6 MB, free: 8.023 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001036/0.3691, allocations: 0.6273 MB / 433.2 MB, free: 7.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.3692, allocations: 9.719 kB / 433.2 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.78e-05/0.3692, allocations: 42.17 kB / 433.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003884/0.3696, allocations: 275 kB / 433.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/0.3697, allocations: 24.28 kB / 433.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.382e-05/0.3697, allocations: 31.02 kB / 433.6 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004683/0.3702, allocations: 264.4 kB / 433.8 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/0.3702, allocations: 3.766 kB / 433.8 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/0.3703, allocations: 8.594 kB / 433.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.3703, allocations: 8.812 kB / 433.9 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003564/0.3706, allocations: 236.2 kB / 434.1 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.3718, allocations: 0.8031 MB / 434.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004683/0.3723, allocations: 306.2 kB / 435.2 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002335/0.3725, allocations: 159.8 kB / 435.3 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.695e-05/0.3725, allocations: 9.25 kB / 435.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.3726, allocations: 38.5 kB / 435.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.754e-06/0.3726, allocations: 3.469 kB / 435.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003801/0.3764, allocations: 1.906 MB / 437.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.3764, allocations: 63.47 kB / 437.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002163/0.3766, allocations: 209.6 kB / 437.6 MB, free: 6.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.3766, allocations: 36.98 kB / 437.6 MB, free: 6.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.014e-05/0.3767, allocations: 150.8 kB / 437.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.3769, allocations: 240.6 kB / 438 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.377, allocations: 93.73 kB / 438.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.771e-05/0.3771, allocations: 345.3 kB / 438.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/0.3774, allocations: 145.6 kB / 438.6 MB, free: 5.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002609/0.3776, allocations: 154.2 kB / 438.7 MB, free: 5.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005562/0.3782, allocations: 352.2 kB / 439.1 MB, free: 5.148 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3782, allocations: 0.8438 kB / 439.1 MB, free: 5.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000715/0.3789, allocations: 467.5 kB / 439.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.3789, allocations: 6.938 kB / 439.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3789, allocations: 0.6562 kB / 439.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.3789, allocations: 7.125 kB / 439.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004812/0.3794, allocations: 112.6 kB / 439.6 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.3794, allocations: 10.91 kB / 439.6 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001961/0.3796, allocations: 18.75 kB / 439.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.405e-05/0.3797, allocations: 16.62 kB / 439.7 MB, free: 4.918 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.0001533/0.3798, allocations: 155.8 kB / 439.8 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.643e-05/0.3799, allocations: 38.3 kB / 439.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001276/0.38, allocations: 51.56 kB / 439.9 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.38, allocations: 10.53 kB / 439.9 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/0.38, allocations: 3.938 kB / 439.9 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.38, allocations: 4.297 kB / 439.9 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001822/0.3819, allocations: 1.296 MB / 441.2 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.3819, allocations: 3.531 kB / 441.2 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004875/0.3824, allocations: 116.6 kB / 441.4 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.619e-06/0.3824, allocations: 7.219 kB / 441.4 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.515e-05/0.3824, allocations: 18.19 kB / 441.4 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.134e-05/0.3824, allocations: 12.84 kB / 441.4 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/0.3824, allocations: 8.031 kB / 441.4 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.3836, allocations: 0.8415 MB / 442.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.087e-05/0.3837, allocations: 115.8 kB / 442.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.923e-05/0.3837, allocations: 18.23 kB / 442.4 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.384, allocations: 17.88 kB / 442.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.731e-05/0.3841, allocations: 51.61 kB / 442.4 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.64e-05/0.3841, allocations: 22.88 kB / 442.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001373/0.3843, allocations: 152.1 kB / 442.6 MB, free: 3.137 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3843, allocations: 0 / 442.6 MB, free: 3.137 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004411/0.3847, allocations: 96.62 kB / 442.7 MB, free: 3.121 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.0001445/0.3848, allocations: 119.1 kB / 442.8 MB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006856/0.3855, allocations: 390.5 kB / 443.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.3855, allocations: 1.094 kB / 443.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003591/0.3859, allocations: 231.2 kB / 443.4 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006623/0.3865, allocations: 98.25 kB / 443.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.3881, allocations: 1.058 MB / 444.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.3884, allocations: 0.7967 MB / 445.4 MB, free: 1.363 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.3885, allocations: 42.44 kB / 445.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3885, allocations: 0 / 445.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of Templates: time 0.009723/0.3983, allocations: 4.774 MB / 450.2 MB, free: 0.8867 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.628169153002091]