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.0007286/0.0007286, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001098/0.001826, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006328/0.0006328, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009484/0.001581, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8959/0.8959, allocations: 173.4 MB / 186 MB, free: 7.543 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1606/1.056, allocations: 52.48 MB / 238.5 MB, free: 7.645 MB / 234.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.643e-06/1.643e-06, allocations: 0 / 239.7 MB, free: 6.391 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.204e-05/2.369e-05, allocations: 2.312 kB / 239.7 MB, free: 6.387 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003703/0.003727, allocations: 2.628 MB / 242.4 MB, free: 3.766 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008535/0.00458, allocations: 399.2 kB / 242.7 MB, free: 3.379 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.004717, allocations: 7.938 kB / 242.8 MB, free: 3.371 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.004853, allocations: 51.5 kB / 242.8 MB, free: 3.32 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001946/0.005048, allocations: 101.2 kB / 242.9 MB, free: 3.223 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002379/0.005286, allocations: 92.8 kB / 243 MB, free: 3.133 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000355/0.005641, allocations: 386.2 kB / 243.4 MB, free: 2.754 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/0.005824, allocations: 82.95 kB / 243.4 MB, free: 2.668 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000343/0.006167, allocations: 239.5 kB / 243.7 MB, free: 2.434 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001843/0.006352, allocations: 124.3 kB / 243.8 MB, free: 2.312 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.726e-05/0.006409, allocations: 32.72 kB / 243.8 MB, free: 2.281 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.918e-05/0.006458, allocations: 28 kB / 243.9 MB, free: 2.254 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.148e-05/0.00651, allocations: 52.47 kB / 243.9 MB, free: 2.203 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.787e-05/0.006607, allocations: 95.81 kB / 244 MB, free: 2.109 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002751/0.006883, allocations: 237.6 kB / 244.2 MB, free: 1.879 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.169e-05/0.006894, allocations: 0 / 244.2 MB, free: 1.879 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.006895, allocations: 0 / 244.2 MB, free: 1.879 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.006906, allocations: 0 / 244.2 MB, free: 1.879 MB / 234.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.0008031/0.007709, allocations: 0.5908 MB / 244.8 MB, free: 1.262 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.007747, allocations: 8.844 kB / 244.8 MB, free: 1.254 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.699e-05/0.007824, allocations: 48.89 kB / 244.9 MB, free: 1.207 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002488/0.008073, allocations: 190.3 kB / 245.1 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/0.008103, allocations: 24.16 kB / 245.1 MB, free: 0.9727 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.729e-05/0.00815, allocations: 24.38 kB / 245.1 MB, free: 0.9492 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003128/0.008463, allocations: 207.3 kB / 245.3 MB, free: 0.7422 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.00848, allocations: 8.141 kB / 245.3 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.008501, allocations: 8.375 kB / 245.3 MB, free: 0.7266 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.008511, allocations: 8.375 kB / 245.3 MB, free: 0.7188 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.008687, allocations: 108.4 kB / 245.5 MB, free: 0.6094 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008842/0.009571, allocations: 472.1 kB / 245.9 MB, free: 136 kB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003217/0.009893, allocations: 245.7 kB / 246.2 MB, free: 15.88 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/0.01001, allocations: 95.81 kB / 246.2 MB, free: 15.79 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.01004, allocations: 8.969 kB / 246.3 MB, free: 15.78 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.01007, allocations: 38.56 kB / 246.3 MB, free: 15.73 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.903e-06/0.01007, allocations: 0.9062 kB / 246.3 MB, free: 15.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=63): time 0.002441/0.01251, allocations: 1.399 MB / 247.7 MB, free: 14.3 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.01254, allocations: 60.06 kB / 247.8 MB, free: 14.22 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.01267, allocations: 176.1 kB / 247.9 MB, free: 14.04 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.01269, allocations: 37.7 kB / 248 MB, free: 14 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.78e-05/0.01276, allocations: 137.1 kB / 248.1 MB, free: 13.86 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.0129, allocations: 226 kB / 248.3 MB, free: 13.63 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.01301, allocations: 98.28 kB / 248.4 MB, free: 13.53 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.576e-05/0.0131, allocations: 342.8 kB / 248.7 MB, free: 13.19 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.356e-05/0.0132, allocations: 57.28 kB / 248.8 MB, free: 13.13 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.18e-05/0.01329, allocations: 65.88 kB / 248.9 MB, free: 13.07 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003787/0.01367, allocations: 201.7 kB / 249.1 MB, free: 12.87 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.01367, allocations: 0 / 249.1 MB, free: 12.87 MB / 250.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0003072/0.01398, allocations: 253.3 kB / 249.3 MB, free: 12.62 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.01399, allocations: 4 kB / 249.3 MB, free: 12.61 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.014, allocations: 4 kB / 249.3 MB, free: 12.61 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.01401, allocations: 4 kB / 249.3 MB, free: 12.61 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004251/0.01444, allocations: 139.8 kB / 249.5 MB, free: 12.47 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.01444, allocations: 4 kB / 249.5 MB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.01456, allocations: 23.98 kB / 249.5 MB, free: 12.44 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.01458, allocations: 8 kB / 249.5 MB, free: 12.43 MB / 250.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.000111/0.01469, allocations: 141.7 kB / 249.6 MB, free: 12.29 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.712e-05/0.01476, allocations: 43.91 kB / 249.7 MB, free: 12.24 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.607e-05/0.01483, allocations: 51.33 kB / 249.7 MB, free: 12.19 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.01484, allocations: 8 kB / 249.7 MB, free: 12.18 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.01484, allocations: 0 / 249.7 MB, free: 12.18 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.01485, allocations: 3.984 kB / 249.7 MB, free: 12.18 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.01593, allocations: 0.8138 MB / 250.6 MB, free: 11.28 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.01593, allocations: 4 kB / 250.6 MB, free: 11.28 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004192/0.01635, allocations: 139.8 kB / 250.7 MB, free: 11.14 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.807e-05/0.0164, allocations: 39.75 kB / 250.7 MB, free: 11.1 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.01641, allocations: 8 kB / 250.7 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.01644, allocations: 20.31 kB / 250.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.963e-06/0.01644, allocations: 8 kB / 250.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.01645, allocations: 7.938 kB / 250.8 MB, free: 11.06 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005643/0.01702, allocations: 0.5706 MB / 251.3 MB, free: 10.42 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.142e-05/0.01706, allocations: 16 kB / 251.4 MB, free: 10.4 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.01723, allocations: 19.98 kB / 251.4 MB, free: 10.38 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.01e-05/0.0173, allocations: 51.81 kB / 251.4 MB, free: 10.33 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.447e-05/0.01733, allocations: 19.98 kB / 251.5 MB, free: 10.31 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.649e-05/0.01738, allocations: 64.86 kB / 251.5 MB, free: 10.25 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01738, allocations: 0 / 251.5 MB, free: 10.25 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003204/0.0177, allocations: 92 kB / 251.6 MB, free: 10.16 MB / 250.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 0.0001233/0.01783, allocations: 100.2 kB / 251.7 MB, free: 10.05 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003401/0.01817, allocations: 274.7 kB / 252 MB, free: 9.777 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.634e-05/0.01818, allocations: 4 kB / 252 MB, free: 9.773 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.01843, allocations: 202.2 kB / 252.2 MB, free: 9.574 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006633/0.0191, allocations: 0.74 MB / 252.9 MB, free: 8.691 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/0.02052, allocations: 0.8054 MB / 253.7 MB, free: 7.801 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.653e-05/0.02059, allocations: 110.8 kB / 253.8 MB, free: 7.668 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001159/0.0207, allocations: 51.25 kB / 253.9 MB, free: 7.617 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.02087, allocations: 135.3 kB / 254 MB, free: 7.484 MB / 250.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02087, allocations: 0 / 254 MB, free: 7.484 MB / 250.7 MB Notification: Performance of Templates: time 0.006161/0.02703, allocations: 4.706 MB / 258.7 MB, free: 2.887 MB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.3832014491781592]