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.001423/0.001423, allocations: 86.28 kB / 21.44 MB, free: 272 kB / 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.001407/0.001407, allocations: 160.6 kB / 24.7 MB, free: 3.547 MB / 14.72 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 1.451/1.451, allocations: 158.6 MB / 186.5 MB, free: 6.398 MB / 174.1 MB " [Timeout remaining time 178] 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 2.254e-06/2.254e-06, allocations: 0 / 298.9 MB, free: 8.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.537e-05/3.762e-05, allocations: 2.281 kB / 298.9 MB, free: 8.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.006513/0.00655, allocations: 2.389 MB / 301.3 MB, free: 6.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.007931, allocations: 366.7 kB / 301.7 MB, free: 5.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.008136, allocations: 11.94 kB / 301.7 MB, free: 5.949 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002384/0.008374, allocations: 47.56 kB / 301.7 MB, free: 5.902 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003336/0.008708, allocations: 103 kB / 301.8 MB, free: 5.801 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005331/0.009241, allocations: 103.7 kB / 301.9 MB, free: 5.699 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000737/0.009978, allocations: 386.2 kB / 302.3 MB, free: 5.32 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003211/0.0103, allocations: 79.62 kB / 302.4 MB, free: 5.242 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004297/0.01073, allocations: 215.5 kB / 302.6 MB, free: 5.031 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003295/0.01106, allocations: 123.7 kB / 302.7 MB, free: 4.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.052e-05/0.01115, allocations: 31.94 kB / 302.8 MB, free: 4.879 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.102e-05/0.01124, allocations: 28 kB / 302.8 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.01135, allocations: 71.73 kB / 302.9 MB, free: 4.781 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003047/0.01166, allocations: 115.7 kB / 303 MB, free: 4.668 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007344/0.01239, allocations: 382.7 kB / 303.4 MB, free: 4.293 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.27e-05/0.01241, allocations: 4 kB / 303.4 MB, free: 4.289 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.01241, allocations: 0 / 303.4 MB, free: 4.289 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.598e-05/0.01242, allocations: 4 kB / 303.4 MB, free: 4.285 MB / 286.1 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.002007/0.01443, allocations: 0.5559 MB / 303.9 MB, free: 3.695 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.882e-05/0.01449, allocations: 11.98 kB / 303.9 MB, free: 3.684 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.01462, allocations: 40.7 kB / 304 MB, free: 3.645 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006699/0.01529, allocations: 209.1 kB / 304.2 MB, free: 3.414 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.306e-05/0.01535, allocations: 21.03 kB / 304.2 MB, free: 3.395 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.01545, allocations: 28.38 kB / 304.2 MB, free: 3.367 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.01649, allocations: 282.6 kB / 304.5 MB, free: 3.086 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.592e-05/0.01653, allocations: 8.078 kB / 304.5 MB, free: 3.078 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.426e-05/0.01658, allocations: 12.38 kB / 304.5 MB, free: 3.066 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.0166, allocations: 8.375 kB / 304.5 MB, free: 3.059 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001114/0.01771, allocations: 266.4 kB / 304.8 MB, free: 2.797 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002167/0.01988, allocations: 0.6433 MB / 305.4 MB, free: 2.121 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.021, allocations: 349.1 kB / 305.8 MB, free: 1.77 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006939/0.02169, allocations: 176.8 kB / 305.9 MB, free: 1.594 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.682e-05/0.02175, allocations: 7.984 kB / 305.9 MB, free: 1.586 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.386e-05/0.02179, allocations: 34.56 kB / 306 MB, free: 1.543 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 3.437e-06/0.0218, allocations: 0 / 306 MB, free: 1.543 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.008343/0.03014, allocations: 1.824 MB / 307.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.953e-05/0.03022, allocations: 56.06 kB / 307.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000343/0.03056, allocations: 182.8 kB / 308 MB, free: 15.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.816e-05/0.03062, allocations: 41.64 kB / 308.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.03078, allocations: 149.1 kB / 308.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002891/0.03107, allocations: 218 kB / 308.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002527/0.03132, allocations: 94.33 kB / 308.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002652/0.03159, allocations: 346.8 kB / 308.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006648/0.03225, allocations: 161.2 kB / 309 MB, free: 14.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000656/0.03291, allocations: 169.8 kB / 309.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.03436, allocations: 381.8 kB / 309.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.03437, allocations: 7.938 kB / 309.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001685/0.03605, allocations: 489.1 kB / 310 MB, free: 13.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.03608, allocations: 7.938 kB / 310.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.03609, allocations: 0 / 310.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.042e-05/0.03612, allocations: 4 kB / 310.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009101/0.03703, allocations: 119.8 kB / 310.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.884e-05/0.03705, allocations: 4 kB / 310.2 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003804/0.03743, allocations: 19.98 kB / 310.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.76e-05/0.03749, allocations: 23.98 kB / 310.2 MB, free: 13.18 MB / 302.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 (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.0003554/0.03784, allocations: 165.7 kB / 310.4 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.03797, allocations: 35.77 kB / 310.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001906/0.03816, allocations: 47.34 kB / 310.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.03817, allocations: 4 kB / 310.5 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.749e-05/0.03819, allocations: 3.984 kB / 310.5 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.0382, allocations: 0 / 310.5 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003774/0.04198, allocations: 1.161 MB / 311.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/0.04199, allocations: 8.062 kB / 311.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009945/0.04298, allocations: 119.8 kB / 311.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-05/0.04301, allocations: 11.98 kB / 311.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.261e-05/0.04308, allocations: 16 kB / 311.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.97e-05/0.0431, allocations: 11.94 kB / 311.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/0.04311, allocations: 4 kB / 311.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002748/0.04586, allocations: 0.8829 MB / 312.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.04598, allocations: 39.77 kB / 312.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.791e-05/0.04608, allocations: 16 kB / 312.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005072/0.04659, allocations: 31.95 kB / 312.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.04674, allocations: 47.81 kB / 312.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.866e-05/0.04681, allocations: 23.98 kB / 312.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002384/0.04705, allocations: 144.2 kB / 313 MB, free: 10.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.04705, allocations: 0 / 313 MB, free: 10.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00078/0.04783, allocations: 92 kB / 313.1 MB, free: 10.16 MB / 302.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 (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.0002627/0.04809, allocations: 123.1 kB / 313.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.04973, allocations: 415.9 kB / 313.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.04973, allocations: 0 / 313.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008106/0.05054, allocations: 247.3 kB / 313.8 MB, free: 9.383 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.05168, allocations: 85.09 kB / 313.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002974/0.05465, allocations: 0.9136 MB / 314.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.05497, allocations: 187.3 kB / 315 MB, free: 8.105 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003426/0.05531, allocations: 43.27 kB / 315.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.05551, allocations: 40.5 kB / 315.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of SimCode: time 8.91e-07/0.05551, allocations: 0 / 315.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of Templates: time 0.01507/0.07058, allocations: 4.141 MB / 319.2 MB, free: 3.883 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.565791849046946]