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.001009/0.001009, allocations: 78.97 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001016/0.001016, allocations: 149.8 kB / 24.81 MB, free: 8.926 MB / 18.57 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.9482/0.9482, allocations: 173.4 MB / 201.5 MB, free: 8.301 MB / 186.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.322e-06/1.322e-06, allocations: 0 / 268.4 MB, free: 9.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.724e-05/1.856e-05, allocations: 2.312 kB / 268.4 MB, free: 9.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.006624/0.006643, allocations: 2.563 MB / 271 MB, free: 7.23 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009755/0.007618, allocations: 386.9 kB / 271.3 MB, free: 6.855 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000184/0.007802, allocations: 8.594 kB / 271.3 MB, free: 6.848 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001571/0.007959, allocations: 51.56 kB / 271.4 MB, free: 6.797 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002337/0.008193, allocations: 101.2 kB / 271.5 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003528/0.008546, allocations: 102.3 kB / 271.6 MB, free: 6.602 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004404/0.008986, allocations: 390.1 kB / 272 MB, free: 6.219 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.009172, allocations: 71.64 kB / 272 MB, free: 6.145 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003271/0.009499, allocations: 215.6 kB / 272.2 MB, free: 5.934 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.009701, allocations: 127.6 kB / 272.4 MB, free: 5.809 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.532e-05/0.009757, allocations: 28.62 kB / 272.4 MB, free: 5.781 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.477e-05/0.009811, allocations: 32 kB / 272.4 MB, free: 5.75 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.029e-05/0.009872, allocations: 73.39 kB / 272.5 MB, free: 5.68 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.009992, allocations: 115.8 kB / 272.6 MB, free: 5.566 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.01032, allocations: 255 kB / 272.9 MB, free: 5.316 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.01032, allocations: 0 / 272.9 MB, free: 5.316 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.021e-06/0.01032, allocations: 0 / 272.9 MB, free: 5.316 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.01032, allocations: 0.6562 kB / 272.9 MB, free: 5.316 MB / 250.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.0008248/0.01115, allocations: 0.6507 MB / 273.5 MB, free: 4.629 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.01119, allocations: 8.531 kB / 273.5 MB, free: 4.621 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.878e-05/0.01128, allocations: 56.75 kB / 273.6 MB, free: 4.566 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002717/0.01155, allocations: 220.9 kB / 273.8 MB, free: 4.324 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/0.01158, allocations: 25.03 kB / 273.8 MB, free: 4.297 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.793e-05/0.01163, allocations: 28.36 kB / 273.8 MB, free: 4.27 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.01197, allocations: 203.3 kB / 274 MB, free: 4.066 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.01199, allocations: 8.172 kB / 274.1 MB, free: 4.059 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.01201, allocations: 8.375 kB / 274.1 MB, free: 4.051 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.01202, allocations: 8.375 kB / 274.1 MB, free: 4.043 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002136/0.01223, allocations: 120.4 kB / 274.2 MB, free: 3.93 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009883/0.01322, allocations: 0.6314 MB / 274.8 MB, free: 3.27 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003642/0.01359, allocations: 255.1 kB / 275.1 MB, free: 3.004 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.01375, allocations: 105.5 kB / 275.2 MB, free: 2.898 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.01378, allocations: 15.92 kB / 275.2 MB, free: 2.883 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.01381, allocations: 41.39 kB / 275.2 MB, free: 2.832 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.974e-06/0.01381, allocations: 0 / 275.2 MB, free: 2.832 MB / 250.7 MB Notification: Performance of matching and sorting (n=63): time 0.002301/0.01611, allocations: 1.279 MB / 276.5 MB, free: 1.492 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.01615, allocations: 60.06 kB / 276.6 MB, free: 1.422 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.01631, allocations: 231.3 kB / 276.8 MB, free: 1.18 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.765e-05/0.01633, allocations: 33.7 kB / 276.8 MB, free: 1.141 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.01644, allocations: 199.8 kB / 277 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.0166, allocations: 226 kB / 277.2 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.01674, allocations: 103.9 kB / 277.3 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.01686, allocations: 0.5156 MB / 277.9 MB, free: 84 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.751e-05/0.01695, allocations: 69.25 kB / 277.9 MB, free: 12 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.806e-05/0.01703, allocations: 77.84 kB / 278 MB, free: 15.94 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001914/0.01723, allocations: 200.7 kB / 278.2 MB, free: 15.74 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.01723, allocations: 0 / 278.2 MB, free: 15.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0002969/0.01752, allocations: 337 kB / 278.5 MB, free: 15.4 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.01753, allocations: 8 kB / 278.5 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.01754, allocations: 0 / 278.5 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.356e-06/0.01755, allocations: 0 / 278.5 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002486/0.0178, allocations: 119.8 kB / 278.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.0178, allocations: 4 kB / 278.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.36e-05/0.01787, allocations: 16 kB / 278.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.501e-05/0.01789, allocations: 16 kB / 278.7 MB, free: 15.24 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 (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.0001058/0.01799, allocations: 184.4 kB / 278.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.716e-05/0.01805, allocations: 55.75 kB / 278.9 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.925e-05/0.01811, allocations: 43.34 kB / 279 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.01812, allocations: 8 kB / 279 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.01812, allocations: 0 / 279 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.01813, allocations: 3.984 kB / 279 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.01914, allocations: 1.054 MB / 280 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.01915, allocations: 4 kB / 280 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002384/0.01939, allocations: 116.4 kB / 280.1 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.01939, allocations: 15.98 kB / 280.2 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.01941, allocations: 16 kB / 280.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.093e-06/0.01942, allocations: 8 kB / 280.2 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.01942, allocations: 11.94 kB / 280.2 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005377/0.01996, allocations: 0.7221 MB / 280.9 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.098e-05/0.01999, allocations: 35.75 kB / 281 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.328e-05/0.02003, allocations: 19.98 kB / 281 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.02013, allocations: 24 kB / 281 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.925e-05/0.02018, allocations: 59.55 kB / 281.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.0202, allocations: 16 kB / 281.1 MB, free: 12.63 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.686e-05/0.02026, allocations: 166.9 kB / 281.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02026, allocations: 0 / 281.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002466/0.02051, allocations: 100 kB / 281.3 MB, free: 12.37 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 (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 9.529e-05/0.0206, allocations: 119.1 kB / 281.4 MB, free: 12.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002744/0.02088, allocations: 277.1 kB / 281.7 MB, free: 11.97 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.02088, allocations: 8 kB / 281.7 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001835/0.02106, allocations: 172.7 kB / 281.9 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.02143, allocations: 98.78 kB / 282 MB, free: 11.7 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009492/0.02238, allocations: 0.916 MB / 282.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.305e-05/0.02246, allocations: 110.8 kB / 283 MB, free: 10.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.02259, allocations: 43.27 kB / 283.1 MB, free: 10.51 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/0.02277, allocations: 150.2 kB / 283.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.02277, allocations: 4 kB / 283.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of Templates: time 0.006453/0.02922, allocations: 4.59 MB / 287.8 MB, free: 5.859 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6693395250476897]