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.001193/0.001193, allocations: 110.4 kB / 17.06 MB, free: 6.023 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.001204/0.001204, allocations: 191 kB / 18 MB, free: 5.105 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.372/1.372, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 52.05 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2927, allocations: 49.44 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004099/0.2968, allocations: 2.607 MB / 403.3 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009861/0.2978, allocations: 386.6 kB / 403.7 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002886/0.2982, allocations: 7.938 kB / 403.7 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002428/0.2984, allocations: 47.5 kB / 403.8 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003021/0.2987, allocations: 103.1 kB / 403.9 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003961/0.2992, allocations: 91.81 kB / 403.9 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004813/0.2996, allocations: 378.4 kB / 404.3 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002504/0.2999, allocations: 111.7 kB / 404.4 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002379/0.3001, allocations: 147.5 kB / 404.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002547/0.3004, allocations: 167.2 kB / 404.7 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.968e-05/0.3005, allocations: 28 kB / 404.8 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.047e-05/0.3006, allocations: 32 kB / 404.8 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.854e-05/0.3007, allocations: 67.77 kB / 404.9 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.3009, allocations: 171.2 kB / 405 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004223/0.3013, allocations: 363.9 kB / 405.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3013, allocations: 0 / 405.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3013, allocations: 7.922 kB / 405.4 MB, free: 4.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.3013, allocations: 0 / 405.4 MB, free: 4.203 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.001284/0.3026, allocations: 0.6314 MB / 406 MB, free: 3.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.3027, allocations: 8.031 kB / 406 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.97e-05/0.3028, allocations: 32.56 kB / 406.1 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004143/0.3032, allocations: 267.6 kB / 406.3 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.714e-05/0.3032, allocations: 20.94 kB / 406.3 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.548e-05/0.3033, allocations: 32.31 kB / 406.4 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006111/0.3039, allocations: 273.4 kB / 406.6 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.304, allocations: 8.094 kB / 406.6 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.262e-05/0.304, allocations: 15.94 kB / 406.7 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.304, allocations: 8 kB / 406.7 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005985/0.3046, allocations: 262.1 kB / 406.9 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.306, allocations: 0.7951 MB / 407.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006378/0.3066, allocations: 354.7 kB / 408.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003549/0.307, allocations: 200.8 kB / 408.3 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.389e-05/0.307, allocations: 7.938 kB / 408.3 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/0.3071, allocations: 38.56 kB / 408.3 MB, free: 1.109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.763e-06/0.3071, allocations: 3.938 kB / 408.3 MB, free: 1.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.004391/0.3115, allocations: 1.972 MB / 410.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/0.3116, allocations: 63.95 kB / 410.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.3118, allocations: 191 kB / 410.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4e-05/0.3118, allocations: 37.7 kB / 410.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.98e-05/0.3119, allocations: 145.1 kB / 410.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.3121, allocations: 224.7 kB / 410.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.3123, allocations: 90.25 kB / 411 MB, free: 14.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.3124, allocations: 342.7 kB / 411.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000358/0.3128, allocations: 161 kB / 411.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003492/0.3131, allocations: 173 kB / 411.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007047/0.3138, allocations: 376 kB / 412 MB, free: 13.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3139, allocations: 0 / 412 MB, free: 13.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.000873/0.3147, allocations: 482.7 kB / 412.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.3148, allocations: 4 kB / 412.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.3148, allocations: 4 kB / 412.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.3148, allocations: 7.938 kB / 412.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004813/0.3153, allocations: 123.9 kB / 412.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.3153, allocations: 0 / 412.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/0.3155, allocations: 23.98 kB / 412.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.279e-05/0.3156, allocations: 19.94 kB / 412.7 MB, free: 12.57 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.0001685/0.3158, allocations: 157.7 kB / 412.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.101e-05/0.3158, allocations: 31.62 kB / 412.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001178/0.316, allocations: 51.33 kB / 412.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.316, allocations: 12 kB / 412.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.986e-06/0.316, allocations: 0 / 412.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.316, allocations: 7.922 kB / 412.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002031/0.318, allocations: 1.313 MB / 414.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.3181, allocations: 8 kB / 414.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005252/0.3186, allocations: 119.8 kB / 414.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.615e-05/0.3186, allocations: 12.5 kB / 414.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.665e-05/0.3187, allocations: 19.98 kB / 414.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.117e-06/0.3187, allocations: 12 kB / 414.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.3187, allocations: 7.938 kB / 414.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00141/0.3201, allocations: 0.8682 MB / 415.3 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.056e-05/0.3202, allocations: 120.7 kB / 415.4 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.597e-05/0.3203, allocations: 20 kB / 415.4 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002638/0.3206, allocations: 23.98 kB / 415.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.39e-05/0.3207, allocations: 55.5 kB / 415.5 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-05/0.3207, allocations: 24 kB / 415.5 MB, free: 9.504 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001184/0.3208, allocations: 144.6 kB / 415.7 MB, free: 9.363 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3208, allocations: 0 / 415.7 MB, free: 9.363 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004083/0.3213, allocations: 96 kB / 415.8 MB, free: 9.27 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.0001387/0.3214, allocations: 115.1 kB / 415.9 MB, free: 9.148 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00083/0.3222, allocations: 438.9 kB / 416.3 MB, free: 8.719 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.3223, allocations: 4 kB / 416.3 MB, free: 8.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004746/0.3227, allocations: 255.3 kB / 416.6 MB, free: 8.465 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006543/0.3234, allocations: 93 kB / 416.7 MB, free: 8.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.3251, allocations: 1.008 MB / 417.7 MB, free: 7.285 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005466/0.3257, allocations: 0.7894 MB / 418.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001993/0.3259, allocations: 51.25 kB / 418.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.326, allocations: 39.42 kB / 418.6 MB, free: 6.379 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.326, allocations: 0 / 418.6 MB, free: 6.379 MB / 334.1 MB Notification: Performance of Templates: time 0.009251/0.3353, allocations: 4.194 MB / 422.7 MB, free: 2.227 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