Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009432/0.0009432, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 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.0009375/0.0009375, allocations: 163.9 kB / 24.99 MB, free: 8.336 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9711/0.9711, allocations: 177.1 MB / 205.3 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.205e-06/2.205e-06, allocations: 0 / 273 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.337e-05/3.558e-05, allocations: 2.312 kB / 273 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003914/0.00395, allocations: 2.65 MB / 275.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.005656, allocations: 0.7169 MB / 276.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003064/0.005962, allocations: 7.938 kB / 276.4 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002587/0.006221, allocations: 59.44 kB / 276.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002684/0.006489, allocations: 107 kB / 276.6 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.006852, allocations: 95.73 kB / 276.7 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000427/0.007279, allocations: 406 kB / 277.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002226/0.007502, allocations: 75.62 kB / 277.1 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002962/0.007798, allocations: 223.5 kB / 277.4 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002373/0.008035, allocations: 127.7 kB / 277.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.486e-05/0.0081, allocations: 28 kB / 277.5 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.229e-05/0.008153, allocations: 32 kB / 277.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.891e-05/0.008222, allocations: 75.72 kB / 277.6 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.008356, allocations: 119.7 kB / 277.7 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003655/0.008721, allocations: 266.9 kB / 278 MB, free: 12.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.008725, allocations: 0 / 278 MB, free: 12.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.008727, allocations: 0 / 278 MB, free: 12.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.008734, allocations: 4 kB / 278 MB, free: 12.86 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.0009842/0.009719, allocations: 0.6518 MB / 278.7 MB, free: 12.17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.009764, allocations: 12.03 kB / 278.7 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.009883, allocations: 60.7 kB / 278.7 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.01022, allocations: 224.9 kB / 278.9 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.01025, allocations: 25.03 kB / 279 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.952e-05/0.01031, allocations: 32.38 kB / 279 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003914/0.01071, allocations: 215.1 kB / 279.2 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.01072, allocations: 0 / 279.2 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.946e-05/0.01075, allocations: 12 kB / 279.2 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.01077, allocations: 8 kB / 279.2 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003275/0.01109, allocations: 147.8 kB / 279.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.01231, allocations: 0.6742 MB / 280 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004792/0.01279, allocations: 272 kB / 280.3 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000232/0.01302, allocations: 121 kB / 280.4 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.456e-05/0.01306, allocations: 8.375 kB / 280.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.01309, allocations: 41.77 kB / 280.5 MB, free: 10.24 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.234e-06/0.01309, allocations: 0 / 280.5 MB, free: 10.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.003075/0.01617, allocations: 1.433 MB / 281.9 MB, free: 8.746 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.01622, allocations: 64 kB / 282 MB, free: 8.672 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.01644, allocations: 245.6 kB / 282.2 MB, free: 8.414 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.01647, allocations: 37.7 kB / 282.3 MB, free: 8.371 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.0166, allocations: 199.8 kB / 282.4 MB, free: 8.172 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.01677, allocations: 237.9 kB / 282.7 MB, free: 7.938 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.01691, allocations: 96 kB / 282.8 MB, free: 7.836 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.0171, allocations: 0.5195 MB / 283.3 MB, free: 7.305 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001936/0.01729, allocations: 89.25 kB / 283.4 MB, free: 7.219 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.01746, allocations: 85.86 kB / 283.5 MB, free: 7.133 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004186/0.01788, allocations: 252.7 kB / 283.7 MB, free: 6.883 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.01788, allocations: 0 / 283.7 MB, free: 6.883 MB / 266.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006182/0.0185, allocations: 381 kB / 284.1 MB, free: 6.504 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.01852, allocations: 8 kB / 284.1 MB, free: 6.496 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.01853, allocations: 0 / 284.1 MB, free: 6.496 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.01855, allocations: 4 kB / 284.1 MB, free: 6.492 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003798/0.01893, allocations: 115.9 kB / 284.2 MB, free: 6.379 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.01894, allocations: 0 / 284.2 MB, free: 6.379 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.01906, allocations: 15.98 kB / 284.2 MB, free: 6.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.975e-05/0.01909, allocations: 23.94 kB / 284.2 MB, free: 6.34 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 0.0001385/0.01923, allocations: 184.5 kB / 284.4 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.112e-05/0.01931, allocations: 55.77 kB / 284.5 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.134e-05/0.0194, allocations: 55.33 kB / 284.5 MB, free: 6.035 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.01941, allocations: 8 kB / 284.5 MB, free: 6.027 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.01942, allocations: 0 / 284.5 MB, free: 6.027 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.01943, allocations: 3.984 kB / 284.5 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001423/0.02085, allocations: 1.117 MB / 285.7 MB, free: 4.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.02085, allocations: 4 kB / 285.7 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002517/0.02111, allocations: 119.8 kB / 285.8 MB, free: 4.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.493e-06/0.02111, allocations: 4 kB / 285.8 MB, free: 4.664 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.346e-05/0.02114, allocations: 23.94 kB / 285.8 MB, free: 4.641 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.457e-06/0.02115, allocations: 15.91 kB / 285.8 MB, free: 4.625 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.02115, allocations: 8 kB / 285.8 MB, free: 4.617 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006696/0.02182, allocations: 0.7834 MB / 286.6 MB, free: 3.742 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.364e-05/0.02185, allocations: 35.77 kB / 286.7 MB, free: 3.707 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.02189, allocations: 23.88 kB / 286.7 MB, free: 3.684 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.022, allocations: 19.98 kB / 286.7 MB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.795e-05/0.02207, allocations: 52.36 kB / 286.7 MB, free: 3.613 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.02209, allocations: 20 kB / 286.8 MB, free: 3.594 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.891e-05/0.02217, allocations: 180.5 kB / 286.9 MB, free: 3.418 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02217, allocations: 0 / 286.9 MB, free: 3.418 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002526/0.02242, allocations: 100 kB / 287 MB, free: 3.32 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 0.0001102/0.02253, allocations: 119.1 kB / 287.2 MB, free: 3.191 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003753/0.02291, allocations: 313.2 kB / 287.5 MB, free: 2.879 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.02291, allocations: 3.938 kB / 287.5 MB, free: 2.875 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.0231, allocations: 204.5 kB / 287.7 MB, free: 2.672 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004262/0.02352, allocations: 97.72 kB / 287.8 MB, free: 2.582 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.02455, allocations: 0.9459 MB / 288.7 MB, free: 1.531 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001195/0.02467, allocations: 110.8 kB / 288.8 MB, free: 1.402 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001308/0.0248, allocations: 51.28 kB / 288.9 MB, free: 1.352 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.051e-05/0.02489, allocations: 36.5 kB / 288.9 MB, free: 1.316 MB / 266.7 MB Notification: Performance of SimCode: time 9.22e-07/0.02489, allocations: 0 / 288.9 MB, free: 1.316 MB / 266.7 MB Notification: Performance of Templates: time 0.09746/0.1223, allocations: 4.432 MB / 293.3 MB, free: 28.1 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.7522671059705317]