Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009944/0.0009944, allocations: 91.5 kB / 21.19 MB, free: 3.398 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001825/0.001825, allocations: 164.5 kB / 24.56 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9661/0.9661, allocations: 177 MB / 204.8 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 272.9 MB, free: 1.512 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.326e-05/1.474e-05, allocations: 5.266 kB / 272.9 MB, free: 1.508 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002452/0.002467, allocations: 2.666 MB / 275.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009564/0.003423, allocations: 0.7169 MB / 276.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.003538, allocations: 7.938 kB / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.003669, allocations: 51.45 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001567/0.003826, allocations: 119 kB / 276.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.004078, allocations: 95.73 kB / 276.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000264/0.004342, allocations: 398 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.004485, allocations: 75.62 kB / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001649/0.00465, allocations: 223.5 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.00479, allocations: 127.6 kB / 277.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.924e-05/0.004829, allocations: 36 kB / 277.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.397e-05/0.004863, allocations: 31.94 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.528e-05/0.004909, allocations: 75.73 kB / 277.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.656e-05/0.004995, allocations: 119.7 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002244/0.00522, allocations: 267 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.005222, allocations: 0 / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.005222, allocations: 0 / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.556e-06/0.005226, allocations: 0 / 277.9 MB, free: 12.5 MB / 266.7 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.0006269/0.005853, allocations: 0.6558 MB / 278.5 MB, free: 11.81 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.005885, allocations: 11.98 kB / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.84e-05/0.005964, allocations: 64.69 kB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000233/0.006197, allocations: 220.9 kB / 278.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.006219, allocations: 21.03 kB / 278.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.006258, allocations: 32.38 kB / 278.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.006515, allocations: 219.1 kB / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.006527, allocations: 4 kB / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.92e-05/0.006547, allocations: 12 kB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.006556, allocations: 11.98 kB / 279.1 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002025/0.006758, allocations: 143.8 kB / 279.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007831/0.007541, allocations: 0.6665 MB / 279.9 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002917/0.007833, allocations: 273.3 kB / 280.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.008001, allocations: 120.3 kB / 280.3 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.008027, allocations: 16.36 kB / 280.3 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.008048, allocations: 37.77 kB / 280.4 MB, free: 9.879 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.583e-06/0.00805, allocations: 0 / 280.4 MB, free: 9.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.001808/0.009858, allocations: 1.441 MB / 281.8 MB, free: 8.379 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.965e-05/0.009887, allocations: 60.06 kB / 281.9 MB, free: 8.309 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.01002, allocations: 245.6 kB / 282.1 MB, free: 8.051 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.01004, allocations: 37.7 kB / 282.1 MB, free: 8.008 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.45e-05/0.01011, allocations: 203.8 kB / 282.3 MB, free: 7.805 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.01022, allocations: 225.9 kB / 282.5 MB, free: 7.582 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.552e-05/0.01031, allocations: 108 kB / 282.7 MB, free: 7.469 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.01042, allocations: 0.5156 MB / 283.2 MB, free: 6.941 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.01054, allocations: 81.27 kB / 283.2 MB, free: 6.863 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.01065, allocations: 93.84 kB / 283.3 MB, free: 6.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/0.01093, allocations: 248.7 kB / 283.6 MB, free: 6.523 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.01093, allocations: 0 / 283.6 MB, free: 6.523 MB / 266.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0003711/0.0113, allocations: 377.1 kB / 283.9 MB, free: 6.148 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.01132, allocations: 10.64 kB / 284 MB, free: 6.141 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.01132, allocations: 0 / 284 MB, free: 6.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.01133, allocations: 8 kB / 284 MB, free: 6.133 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/0.01158, allocations: 111.9 kB / 284.1 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.01158, allocations: 4 kB / 284.1 MB, free: 6.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.531e-05/0.01166, allocations: 16 kB / 284.1 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.01168, allocations: 27.86 kB / 284.1 MB, free: 5.977 MB / 266.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 (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 9.589e-05/0.01177, allocations: 176.5 kB / 284.3 MB, free: 5.793 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.384e-05/0.01183, allocations: 59.77 kB / 284.4 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.922e-05/0.0119, allocations: 51.33 kB / 284.4 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.0119, allocations: 7.984 kB / 284.4 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.01191, allocations: 8 kB / 284.4 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.01191, allocations: 0 / 284.4 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009811/0.01289, allocations: 1.122 MB / 285.5 MB, free: 4.426 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.01289, allocations: 4 kB / 285.5 MB, free: 4.422 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002424/0.01314, allocations: 119.8 kB / 285.7 MB, free: 4.305 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.01314, allocations: 8 kB / 285.7 MB, free: 4.297 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.01316, allocations: 19.94 kB / 285.7 MB, free: 4.277 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.632e-06/0.01317, allocations: 11.94 kB / 285.7 MB, free: 4.266 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.01317, allocations: 7.984 kB / 285.7 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006202/0.01379, allocations: 0.787 MB / 286.5 MB, free: 3.379 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.29e-05/0.01383, allocations: 39.75 kB / 286.5 MB, free: 3.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.134e-05/0.01386, allocations: 19.94 kB / 286.6 MB, free: 3.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.01397, allocations: 16 kB / 286.6 MB, free: 3.305 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.672e-05/0.01402, allocations: 52.3 kB / 286.6 MB, free: 3.254 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.01404, allocations: 27.98 kB / 286.6 MB, free: 3.227 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.475e-05/0.01412, allocations: 172.5 kB / 286.8 MB, free: 3.059 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01412, allocations: 0 / 286.8 MB, free: 3.059 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002367/0.01435, allocations: 96 kB / 286.9 MB, free: 2.965 MB / 266.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 (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 7.652e-05/0.01443, allocations: 131 kB / 287 MB, free: 2.824 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000376/0.0148, allocations: 309.2 kB / 287.3 MB, free: 2.516 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.01481, allocations: 7.938 kB / 287.3 MB, free: 2.508 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001729/0.01498, allocations: 192.4 kB / 287.5 MB, free: 2.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.01536, allocations: 100.1 kB / 287.6 MB, free: 2.223 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009059/0.01627, allocations: 0.9497 MB / 288.6 MB, free: 1.168 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.714e-05/0.01633, allocations: 106.8 kB / 288.7 MB, free: 1.047 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.01645, allocations: 47.3 kB / 288.7 MB, free: 1 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.696e-05/0.01652, allocations: 40.48 kB / 288.8 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.01653, allocations: 0 / 288.8 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of Templates: time 0.006188/0.02271, allocations: 4.676 MB / 293.4 MB, free: 12.36 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.673570971004665]