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.001126/0.001126, allocations: 116.2 kB / 17.75 MB, free: 5.203 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.001136/0.001136, allocations: 188.4 kB / 18.67 MB, free: 4.285 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.361/1.361, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009829/0.000983, allocations: 47.92 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3309, allocations: 49.43 MB / 401.4 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003752/0.3347, allocations: 2.621 MB / 404 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007849/0.3355, allocations: 382.6 kB / 404.4 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.3356, allocations: 8 kB / 404.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001678/0.3358, allocations: 43.52 kB / 404.4 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001776/0.336, allocations: 103.1 kB / 404.5 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003157/0.3363, allocations: 87.77 kB / 404.6 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003749/0.3367, allocations: 382.4 kB / 405 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002511/0.337, allocations: 119.6 kB / 405.1 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.3371, allocations: 139.6 kB / 405.2 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002099/0.3373, allocations: 167.3 kB / 405.4 MB, free: 5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.275e-05/0.3374, allocations: 32 kB / 405.4 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.35e-05/0.3375, allocations: 28 kB / 405.5 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.607e-05/0.3376, allocations: 63.77 kB / 405.5 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.3378, allocations: 171.2 kB / 405.7 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003855/0.3382, allocations: 368 kB / 406.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3382, allocations: 4 kB / 406.1 MB, free: 4.352 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3382, allocations: 0 / 406.1 MB, free: 4.352 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.3382, allocations: 0 / 406.1 MB, free: 4.352 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.00105/0.3392, allocations: 0.6314 MB / 406.7 MB, free: 3.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.3393, allocations: 11.97 kB / 406.7 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.728e-05/0.3394, allocations: 32.56 kB / 406.7 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003342/0.3397, allocations: 271.6 kB / 407 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/0.3398, allocations: 16.94 kB / 407 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.843e-05/0.3398, allocations: 32.38 kB / 407 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005546/0.3404, allocations: 277.4 kB / 407.3 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.3404, allocations: 12.03 kB / 407.3 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.3405, allocations: 11.94 kB / 407.3 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.3405, allocations: 8 kB / 407.3 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006135/0.3411, allocations: 266.1 kB / 407.6 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.3424, allocations: 0.7874 MB / 408.4 MB, free: 1.867 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005928/0.343, allocations: 370.6 kB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000329/0.3433, allocations: 192.8 kB / 408.9 MB, free: 1.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.88e-05/0.3434, allocations: 11.98 kB / 409 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.3434, allocations: 34.56 kB / 409 MB, free: 1.246 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.412e-06/0.3434, allocations: 0 / 409 MB, free: 1.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.004043/0.3474, allocations: 1.968 MB / 411 MB, free: 15.19 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.013e-05/0.3475, allocations: 59.97 kB / 411 MB, free: 15.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001808/0.3477, allocations: 195 kB / 411.2 MB, free: 14.92 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/0.3477, allocations: 37.7 kB / 411.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.891e-05/0.3478, allocations: 137.1 kB / 411.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.348, allocations: 224.7 kB / 411.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.3481, allocations: 94.23 kB / 411.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.3482, allocations: 350.7 kB / 412 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003169/0.3486, allocations: 157 kB / 412.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003043/0.3489, allocations: 169 kB / 412.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006492/0.3495, allocations: 376 kB / 412.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3495, allocations: 0 / 412.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007907/0.3503, allocations: 486.6 kB / 413.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.3504, allocations: 8 kB / 413.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.3504, allocations: 0 / 413.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.3504, allocations: 0 / 413.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000456/0.3509, allocations: 127.8 kB / 413.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.3509, allocations: 0 / 413.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.3511, allocations: 27.98 kB / 413.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.373e-05/0.3511, allocations: 23.92 kB / 413.4 MB, free: 12.71 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.0001599/0.3513, allocations: 157.8 kB / 413.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.953e-05/0.3513, allocations: 31.62 kB / 413.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.3514, allocations: 51.27 kB / 413.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3515, allocations: 8 kB / 413.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.3515, allocations: 4 kB / 413.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.3515, allocations: 0 / 413.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/0.3534, allocations: 1.313 MB / 414.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/0.3534, allocations: 4 kB / 414.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004665/0.3539, allocations: 123.8 kB / 415.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.019e-05/0.3539, allocations: 11.94 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.303e-05/0.354, allocations: 16 kB / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.139e-05/0.354, allocations: 11.94 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.354, allocations: 8.344 kB / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.3553, allocations: 0.8837 MB / 416 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.312e-05/0.3554, allocations: 108.7 kB / 416.1 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.357e-05/0.3555, allocations: 20.03 kB / 416.1 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.3557, allocations: 27.98 kB / 416.1 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.966e-05/0.3558, allocations: 55.58 kB / 416.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-05/0.3558, allocations: 23.98 kB / 416.2 MB, free: 9.648 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001073/0.356, allocations: 136.6 kB / 416.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.356, allocations: 0 / 416.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003829/0.3563, allocations: 100 kB / 416.5 MB, free: 9.418 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.000132/0.3565, allocations: 123.2 kB / 416.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007771/0.3573, allocations: 431 kB / 417 MB, free: 8.867 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.3573, allocations: 4 kB / 417 MB, free: 8.863 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004287/0.3577, allocations: 263.3 kB / 417.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006034/0.3583, allocations: 88.89 kB / 417.3 MB, free: 8.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.36, allocations: 1.041 MB / 418.4 MB, free: 7.391 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004031/0.3604, allocations: 0.7933 MB / 419.2 MB, free: 6.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.3605, allocations: 39.42 kB / 419.2 MB, free: 6.531 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3606, allocations: 0 / 419.2 MB, free: 6.531 MB / 334.1 MB Notification: Performance of Templates: time 0.006736/0.3673, allocations: 4.641 MB / 423.9 MB, free: 1.91 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/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