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.001656/0.001656, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002022/0.002022, allocations: 216.4 kB / 23.75 MB, free: 4.668 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.504/1.504, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.001634/0.001634, allocations: 55.91 kB / 378.3 MB, free: 2.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3257, allocations: 53.37 MB / 431.6 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004607/0.3303, allocations: 2.688 MB / 434.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001699/0.332, allocations: 0.7442 MB / 435.1 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003147/0.3323, allocations: 7.938 kB / 435.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002379/0.3325, allocations: 51.52 kB / 435.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003393/0.3329, allocations: 107 kB / 435.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003811/0.3332, allocations: 95.81 kB / 435.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005954/0.3338, allocations: 386.3 kB / 435.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002551/0.3341, allocations: 79.58 kB / 435.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002917/0.3344, allocations: 159.4 kB / 435.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003441/0.3347, allocations: 167.3 kB / 436.1 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.475e-05/0.3348, allocations: 28 kB / 436.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.592e-05/0.3349, allocations: 32 kB / 436.1 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.997e-05/0.3349, allocations: 71.75 kB / 436.2 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001885/0.3351, allocations: 175.1 kB / 436.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000475/0.3356, allocations: 384.7 kB / 436.8 MB, free: 1.801 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.3356, allocations: 0 / 436.8 MB, free: 1.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3356, allocations: 0 / 436.8 MB, free: 1.801 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.3356, allocations: 0 / 436.8 MB, free: 1.801 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.001099/0.3367, allocations: 0.5597 MB / 437.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.3368, allocations: 8.031 kB / 437.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.95e-05/0.3368, allocations: 48.62 kB / 437.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004274/0.3373, allocations: 206.9 kB / 437.6 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.48e-05/0.3373, allocations: 21.03 kB / 437.6 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.486e-05/0.3374, allocations: 43.88 kB / 437.6 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004685/0.3378, allocations: 258.1 kB / 437.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.3379, allocations: 0 / 437.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.77e-05/0.3379, allocations: 12 kB / 437.9 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.3379, allocations: 8 kB / 437.9 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004228/0.3383, allocations: 238.4 kB / 438.1 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.3397, allocations: 0.7602 MB / 438.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004964/0.3402, allocations: 315.5 kB / 439.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002609/0.3405, allocations: 161.5 kB / 439.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.3405, allocations: 4.375 kB / 439.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.3405, allocations: 38.94 kB / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.523e-06/0.3405, allocations: 0 / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003776/0.3443, allocations: 1.772 MB / 441.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.3444, allocations: 64.06 kB / 441.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/0.3446, allocations: 207.3 kB / 441.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.587e-05/0.3446, allocations: 33.7 kB / 441.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.3447, allocations: 149.2 kB / 441.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/0.3449, allocations: 234 kB / 441.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.345, allocations: 94.34 kB / 441.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3452, allocations: 346.8 kB / 442.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002521/0.3455, allocations: 145.2 kB / 442.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002699/0.3457, allocations: 153.8 kB / 442.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005477/0.3463, allocations: 350 kB / 442.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3463, allocations: 3.938 kB / 442.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000718/0.347, allocations: 465.1 kB / 443.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.347, allocations: 4 kB / 443.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.347, allocations: 0 / 443.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.347, allocations: 7.938 kB / 443.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004631/0.3475, allocations: 123.8 kB / 443.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.3475, allocations: 0 / 443.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.3477, allocations: 12 kB / 443.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.744e-05/0.3477, allocations: 23.98 kB / 443.5 MB, free: 10.78 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.0001771/0.3479, allocations: 161.7 kB / 443.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.653e-05/0.348, allocations: 35.77 kB / 443.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/0.3481, allocations: 51.33 kB / 443.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.3481, allocations: 15.88 kB / 443.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.373e-06/0.3481, allocations: 0 / 443.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.3481, allocations: 4 kB / 443.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.35, allocations: 1.25 MB / 445.1 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.35, allocations: 8.094 kB / 445.1 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004819/0.3505, allocations: 123.8 kB / 445.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.424e-05/0.3505, allocations: 15.98 kB / 445.2 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.296e-05/0.3505, allocations: 16 kB / 445.2 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.174e-05/0.3505, allocations: 11.94 kB / 445.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.3506, allocations: 7.984 kB / 445.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.3517, allocations: 0.8455 MB / 446.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.464e-05/0.3517, allocations: 39.8 kB / 446.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.304e-05/0.3518, allocations: 20 kB / 446.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.352, allocations: 16 kB / 446.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.325e-05/0.3521, allocations: 60.22 kB / 446.2 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.227e-05/0.3521, allocations: 20 kB / 446.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001405/0.3523, allocations: 148.5 kB / 446.4 MB, free: 7.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3523, allocations: 8 kB / 446.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004041/0.3527, allocations: 96 kB / 446.5 MB, free: 7.652 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.0001463/0.3528, allocations: 115.1 kB / 446.6 MB, free: 7.531 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006739/0.3535, allocations: 391.6 kB / 447 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3535, allocations: 0 / 447 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000363/0.3539, allocations: 226.6 kB / 447.2 MB, free: 6.926 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006749/0.3545, allocations: 99.52 kB / 447.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.3563, allocations: 1.025 MB / 448.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.3567, allocations: 0.7972 MB / 449.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001871/0.3569, allocations: 51.33 kB / 449.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.357, allocations: 35.44 kB / 449.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.357, allocations: 0 / 449.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of Templates: time 0.009993/0.367, allocations: 4.741 MB / 453.9 MB, free: 120 kB / 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/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_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: 4.779447459150106]