Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001102/0.001102, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001571/0.002673, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.000739/0.000739, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009973/0.001736, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9889/0.9889, allocations: 158.6 MB / 171.2 MB, free: 2.516 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1589/1.148, allocations: 49.5 MB / 220.7 MB, free: 1.355 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 222 MB, free: 84 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.068e-05/2.247e-05, allocations: 2.312 kB / 222 MB, free: 80 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003979/0.004001, allocations: 2.605 MB / 224.6 MB, free: 13.46 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.00501, allocations: 394.4 kB / 225 MB, free: 13.07 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.005184, allocations: 11.94 kB / 225 MB, free: 13.06 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001323/0.005316, allocations: 47.5 kB / 225 MB, free: 13.01 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002436/0.00556, allocations: 107 kB / 225.1 MB, free: 12.91 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000292/0.005852, allocations: 95.8 kB / 225.2 MB, free: 12.81 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004453/0.006297, allocations: 390.1 kB / 225.6 MB, free: 12.43 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.006501, allocations: 78.27 kB / 225.7 MB, free: 12.35 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003709/0.006872, allocations: 239.5 kB / 225.9 MB, free: 12.12 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002139/0.007086, allocations: 119.7 kB / 226 MB, free: 12 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-05/0.007145, allocations: 28 kB / 226.1 MB, free: 11.97 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.67e-05/0.007202, allocations: 32 kB / 226.1 MB, free: 11.94 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.14e-05/0.007263, allocations: 55.81 kB / 226.1 MB, free: 11.89 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001165/0.007379, allocations: 95.81 kB / 226.2 MB, free: 11.79 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.007703, allocations: 227.2 kB / 226.5 MB, free: 11.57 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.377e-05/0.007716, allocations: 3.938 kB / 226.5 MB, free: 11.57 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.007718, allocations: 0 / 226.5 MB, free: 11.57 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.007732, allocations: 3.938 kB / 226.5 MB, free: 11.56 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.0009612/0.008694, allocations: 0.5855 MB / 227 MB, free: 10.95 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.008731, allocations: 8.031 kB / 227.1 MB, free: 10.94 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.301e-05/0.008824, allocations: 48.89 kB / 227.1 MB, free: 10.89 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/0.009115, allocations: 185.1 kB / 227.3 MB, free: 10.69 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.009148, allocations: 21.03 kB / 227.3 MB, free: 10.67 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.837e-05/0.009206, allocations: 36.31 kB / 227.3 MB, free: 10.63 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003627/0.009569, allocations: 207.3 kB / 227.5 MB, free: 10.43 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.009592, allocations: 4.172 kB / 227.5 MB, free: 10.42 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/0.009617, allocations: 16.38 kB / 227.6 MB, free: 10.41 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.009628, allocations: 8.375 kB / 227.6 MB, free: 10.4 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000193/0.009821, allocations: 104.4 kB / 227.7 MB, free: 10.29 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009669/0.01079, allocations: 482.7 kB / 228.1 MB, free: 9.805 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003394/0.01113, allocations: 230.7 kB / 228.4 MB, free: 9.566 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.01126, allocations: 100.7 kB / 228.5 MB, free: 9.465 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.647e-05/0.0113, allocations: 12 kB / 228.5 MB, free: 9.453 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.941e-05/0.01136, allocations: 38.56 kB / 228.5 MB, free: 9.406 MB / 234.7 MB Notification: Performance of pre-optimization done (n=43): time 2.174e-06/0.01136, allocations: 0 / 228.5 MB, free: 9.406 MB / 234.7 MB Notification: Performance of matching and sorting (n=63): time 0.001976/0.01334, allocations: 1.391 MB / 229.9 MB, free: 7.965 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.01337, allocations: 56.06 kB / 230 MB, free: 7.898 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.943e-05/0.01347, allocations: 182.3 kB / 230.1 MB, free: 7.707 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.01349, allocations: 37.7 kB / 230.2 MB, free: 7.664 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.658e-05/0.01355, allocations: 133.1 kB / 230.3 MB, free: 7.531 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.744e-05/0.01364, allocations: 229.9 kB / 230.5 MB, free: 7.305 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-05/0.01372, allocations: 94.28 kB / 230.6 MB, free: 7.207 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.849e-05/0.01381, allocations: 342.8 kB / 231 MB, free: 6.863 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.145e-05/0.01387, allocations: 57.28 kB / 231 MB, free: 6.809 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.689e-05/0.01394, allocations: 73.81 kB / 231.1 MB, free: 6.734 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000168/0.01411, allocations: 197.8 kB / 231.3 MB, free: 6.539 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.01411, allocations: 0 / 231.3 MB, free: 6.539 MB / 234.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0002253/0.01434, allocations: 257.3 kB / 231.5 MB, free: 6.281 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.01435, allocations: 4 kB / 231.5 MB, free: 6.277 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.01436, allocations: 4 kB / 231.5 MB, free: 6.273 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.01437, allocations: 0 / 231.5 MB, free: 6.273 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.01468, allocations: 143.8 kB / 231.7 MB, free: 6.133 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.01468, allocations: 0 / 231.7 MB, free: 6.133 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.754e-05/0.01475, allocations: 20 kB / 231.7 MB, free: 6.113 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.01476, allocations: 15.98 kB / 231.7 MB, free: 6.098 MB / 234.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 9.947e-05/0.01486, allocations: 133.7 kB / 231.8 MB, free: 5.957 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.031e-05/0.01491, allocations: 47.91 kB / 231.9 MB, free: 5.91 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.24e-05/0.01499, allocations: 47.33 kB / 231.9 MB, free: 5.863 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.01499, allocations: 8 kB / 231.9 MB, free: 5.855 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.01499, allocations: 0 / 231.9 MB, free: 5.855 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.015, allocations: 3.984 kB / 232 MB, free: 5.852 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008429/0.01584, allocations: 0.8062 MB / 232.8 MB, free: 4.965 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.01585, allocations: 4 kB / 232.8 MB, free: 4.961 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/0.01614, allocations: 156.3 kB / 232.9 MB, free: 4.809 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.256e-05/0.01617, allocations: 39.73 kB / 233 MB, free: 4.77 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.01618, allocations: 8 kB / 233 MB, free: 4.762 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.0162, allocations: 16 kB / 233 MB, free: 4.746 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.869e-06/0.01621, allocations: 8 kB / 233 MB, free: 4.738 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/0.01622, allocations: 11.88 kB / 233 MB, free: 4.727 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004466/0.01666, allocations: 0.5593 MB / 233.6 MB, free: 4.098 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.861e-05/0.01669, allocations: 16 kB / 233.6 MB, free: 4.082 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.0168, allocations: 20 kB / 233.6 MB, free: 4.062 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.443e-05/0.01685, allocations: 55.8 kB / 233.6 MB, free: 4.008 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.01687, allocations: 19.98 kB / 233.7 MB, free: 3.988 MB / 234.7 MB Notification: Performance of sorting global known variables: time 3.334e-05/0.0169, allocations: 42.06 kB / 233.7 MB, free: 3.945 MB / 234.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0169, allocations: 0 / 233.7 MB, free: 3.945 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002097/0.01711, allocations: 96 kB / 233.8 MB, free: 3.852 MB / 234.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.0001162/0.01723, allocations: 112.2 kB / 233.9 MB, free: 3.734 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0002587/0.01749, allocations: 274.4 kB / 234.2 MB, free: 3.461 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.317e-05/0.0175, allocations: 4 kB / 234.2 MB, free: 3.457 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00017/0.01767, allocations: 199 kB / 234.4 MB, free: 3.262 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005358/0.01821, allocations: 0.7467 MB / 235.1 MB, free: 2.367 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.01956, allocations: 0.8093 MB / 235.9 MB, free: 1.477 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.933e-05/0.01963, allocations: 106.8 kB / 236 MB, free: 1.348 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0001213/0.01975, allocations: 43.27 kB / 236.1 MB, free: 1.301 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000173/0.01992, allocations: 135.3 kB / 236.2 MB, free: 1.168 MB / 234.7 MB Notification: Performance of SimCode: time 9.02e-07/0.01992, allocations: 0 / 236.2 MB, free: 1.168 MB / 234.7 MB Notification: Performance of Templates: time 0.006486/0.02641, allocations: 4.73 MB / 240.9 MB, free: 12.47 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.735404144972563]