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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=1000,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=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 109.7 kB / 17.06 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001861/0.001862, allocations: 194.9 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 47.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2885, allocations: 49.44 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.00338/0.2919, allocations: 2.613 MB / 403.3 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006277/0.2925, allocations: 382.6 kB / 403.7 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.2927, allocations: 8 kB / 403.7 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.2928, allocations: 47.5 kB / 403.7 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.293, allocations: 95.12 kB / 403.8 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.2933, allocations: 99.8 kB / 403.9 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003213/0.2936, allocations: 374.4 kB / 404.3 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.2938, allocations: 119.7 kB / 404.4 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.294, allocations: 143.5 kB / 404.6 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002003/0.2942, allocations: 159.3 kB / 404.7 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.676e-05/0.2943, allocations: 36 kB / 404.8 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.276e-05/0.2943, allocations: 28 kB / 404.8 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.582e-05/0.2944, allocations: 75.7 kB / 404.9 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.2945, allocations: 167.2 kB / 405 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003494/0.2949, allocations: 370.5 kB / 405.4 MB, free: 4.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.2949, allocations: 0 / 405.4 MB, free: 4.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2949, allocations: 0 / 405.4 MB, free: 4.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.012e-06/0.2949, allocations: 0 / 405.4 MB, free: 4.188 MB / 318.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.0009999/0.2959, allocations: 0.6389 MB / 406 MB, free: 3.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.296, allocations: 8.031 kB / 406 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.395e-05/0.296, allocations: 36.75 kB / 406.1 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003308/0.2964, allocations: 283.6 kB / 406.3 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.2964, allocations: 20.94 kB / 406.4 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.303e-05/0.2965, allocations: 24.38 kB / 406.4 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005122/0.297, allocations: 273.4 kB / 406.6 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.297, allocations: 4.188 kB / 406.7 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.297, allocations: 15.88 kB / 406.7 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.2971, allocations: 8 kB / 406.7 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005445/0.2976, allocations: 270.1 kB / 406.9 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.2989, allocations: 0.7798 MB / 407.7 MB, free: 1.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005836/0.2995, allocations: 368.1 kB / 408.1 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003328/0.2998, allocations: 192.8 kB / 408.3 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.806e-05/0.2999, allocations: 7.984 kB / 408.3 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.2999, allocations: 38.56 kB / 408.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.543e-06/0.2999, allocations: 0 / 408.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.004145/0.3041, allocations: 1.992 MB / 410.3 MB, free: 15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.3041, allocations: 59.97 kB / 410.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/0.3043, allocations: 191 kB / 410.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.105e-05/0.3044, allocations: 33.7 kB / 410.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.3045, allocations: 153.1 kB / 410.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.3047, allocations: 222.1 kB / 410.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.3048, allocations: 90.25 kB / 411 MB, free: 14.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3049, allocations: 346.7 kB / 411.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003291/0.3053, allocations: 165 kB / 411.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003107/0.3056, allocations: 169 kB / 411.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006695/0.3063, allocations: 376 kB / 412.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3063, allocations: 0 / 412.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007998/0.3071, allocations: 494.8 kB / 412.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3071, allocations: 4 kB / 412.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.3071, allocations: 0 / 412.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.3072, allocations: 7.938 kB / 412.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004649/0.3076, allocations: 119.9 kB / 412.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.3077, allocations: 7.938 kB / 412.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001943/0.3079, allocations: 19.98 kB / 412.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-05/0.3079, allocations: 19.94 kB / 412.7 MB, free: 12.52 MB / 334.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.0001729/0.3081, allocations: 157.8 kB / 412.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.18e-05/0.3081, allocations: 31.81 kB / 412.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000136/0.3083, allocations: 55.33 kB / 413 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.3083, allocations: 4 kB / 413 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.3083, allocations: 0 / 413 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.3083, allocations: 3.984 kB / 413 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001946/0.3103, allocations: 1.317 MB / 414.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.3103, allocations: 4.562 kB / 414.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004768/0.3108, allocations: 123.8 kB / 414.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.3108, allocations: 11.94 kB / 414.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.348e-05/0.3108, allocations: 19.98 kB / 414.4 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.75e-05/0.3109, allocations: 11.94 kB / 414.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.3109, allocations: 4 kB / 414.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.3121, allocations: 0.8801 MB / 415.3 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.176e-05/0.3122, allocations: 116.9 kB / 415.5 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.956e-05/0.3123, allocations: 19.94 kB / 415.5 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/0.3125, allocations: 27.98 kB / 415.5 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.859e-05/0.3126, allocations: 51.62 kB / 415.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.151e-05/0.3127, allocations: 20 kB / 415.6 MB, free: 9.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001111/0.3128, allocations: 144.5 kB / 415.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3128, allocations: 0 / 415.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003919/0.3132, allocations: 96 kB / 415.8 MB, free: 9.219 MB / 334.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.0001251/0.3133, allocations: 119.1 kB / 415.9 MB, free: 9.094 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008278/0.3142, allocations: 442.9 kB / 416.4 MB, free: 8.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.3142, allocations: 0 / 416.4 MB, free: 8.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004298/0.3146, allocations: 256.3 kB / 416.6 MB, free: 8.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006156/0.3152, allocations: 95.97 kB / 416.7 MB, free: 8.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001545/0.3168, allocations: 1.019 MB / 417.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/0.3172, allocations: 0.7972 MB / 418.5 MB, free: 6.395 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001788/0.3173, allocations: 47.27 kB / 418.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.3175, allocations: 35.44 kB / 418.6 MB, free: 6.312 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3175, allocations: 0 / 418.6 MB, free: 6.312 MB / 334.1 MB Notification: Performance of Templates: time 0.007691/0.3252, allocations: 4.192 MB / 422.8 MB, free: 2.16 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches