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.001869/0.001869, allocations: 108.3 kB / 17.74 MB, free: 5.34 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.002281/0.002281, allocations: 187 kB / 18.67 MB, free: 4.414 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.466/1.466, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 51.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3365, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.0045/0.3411, allocations: 2.607 MB / 404 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.3422, allocations: 378.6 kB / 404.4 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003402/0.3426, allocations: 4 kB / 404.4 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002465/0.3429, allocations: 59.38 kB / 404.4 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003906/0.3433, allocations: 95.12 kB / 404.5 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004227/0.3437, allocations: 87.88 kB / 404.6 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005306/0.3442, allocations: 382.3 kB / 405 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000262/0.3445, allocations: 115.7 kB / 405.1 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002318/0.3448, allocations: 139.6 kB / 405.2 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002539/0.345, allocations: 163.3 kB / 405.4 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.493e-05/0.3451, allocations: 32 kB / 405.4 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.935e-05/0.3452, allocations: 28 kB / 405.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.652e-05/0.3452, allocations: 75.75 kB / 405.5 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.3454, allocations: 163.2 kB / 405.7 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003756/0.3458, allocations: 371.8 kB / 406 MB, free: 4.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3458, allocations: 7.938 kB / 406.1 MB, free: 4.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3458, allocations: 0 / 406.1 MB, free: 4.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.3458, allocations: 0 / 406.1 MB, free: 4.191 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.001165/0.347, allocations: 0.6306 MB / 406.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.347, allocations: 8.031 kB / 406.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.896e-05/0.3471, allocations: 44.56 kB / 406.7 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003632/0.3475, allocations: 263.6 kB / 407 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.051e-05/0.3475, allocations: 24.94 kB / 407 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.587e-05/0.3476, allocations: 32.3 kB / 407 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005724/0.3482, allocations: 277.4 kB / 407.3 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.3482, allocations: 8.094 kB / 407.3 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.331e-05/0.3483, allocations: 15.94 kB / 407.3 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.3483, allocations: 8 kB / 407.3 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005727/0.3489, allocations: 266 kB / 407.6 MB, free: 2.543 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.3501, allocations: 0.7874 MB / 408.4 MB, free: 1.703 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005893/0.3507, allocations: 360.3 kB / 408.7 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003416/0.3511, allocations: 192.8 kB / 408.9 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.133e-05/0.3511, allocations: 11.98 kB / 408.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.3512, allocations: 38.56 kB / 409 MB, free: 1.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.693e-06/0.3512, allocations: 0 / 409 MB, free: 1.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.00427/0.3554, allocations: 1.972 MB / 411 MB, free: 15.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.3555, allocations: 55.97 kB / 411 MB, free: 14.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002056/0.3557, allocations: 195 kB / 411.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.438e-05/0.3558, allocations: 37.7 kB / 411.2 MB, free: 14.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.995e-05/0.3559, allocations: 141.1 kB / 411.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.356, allocations: 220.6 kB / 411.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.3562, allocations: 98.23 kB / 411.7 MB, free: 14.26 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.3564, allocations: 342.8 kB / 412 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003657/0.3567, allocations: 161 kB / 412.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003481/0.3571, allocations: 169 kB / 412.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007195/0.3578, allocations: 384 kB / 412.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3578, allocations: 0 / 412.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.000884/0.3587, allocations: 482.7 kB / 413.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.3588, allocations: 4 kB / 413.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3588, allocations: 0 / 413.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.75e-05/0.3588, allocations: 7.984 kB / 413.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004858/0.3593, allocations: 123.8 kB / 413.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.3593, allocations: 4 kB / 413.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.3595, allocations: 27.92 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.723e-05/0.3596, allocations: 19.94 kB / 413.4 MB, free: 12.55 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.0001926/0.3598, allocations: 161.7 kB / 413.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.451e-05/0.3599, allocations: 31.62 kB / 413.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.36, allocations: 43.34 kB / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.36, allocations: 8 kB / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.36, allocations: 4 kB / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.36, allocations: 3.984 kB / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001922/0.362, allocations: 1.309 MB / 414.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.362, allocations: 4 kB / 414.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000474/0.3625, allocations: 123.8 kB / 415.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-05/0.3625, allocations: 11.94 kB / 415.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.2e-05/0.3625, allocations: 27.88 kB / 415.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.115e-06/0.3625, allocations: 8 kB / 415.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.3626, allocations: 4.375 kB / 415.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001476/0.364, allocations: 0.8837 MB / 416 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.56e-05/0.3641, allocations: 112.7 kB / 416.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.821e-05/0.3642, allocations: 20.03 kB / 416.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000268/0.3645, allocations: 27.98 kB / 416.1 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.936e-05/0.3646, allocations: 51.58 kB / 416.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.009e-05/0.3646, allocations: 20 kB / 416.2 MB, free: 9.492 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001203/0.3647, allocations: 140.6 kB / 416.4 MB, free: 9.355 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3647, allocations: 0 / 416.4 MB, free: 9.355 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004395/0.3652, allocations: 96 kB / 416.4 MB, free: 9.262 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.0001489/0.3654, allocations: 123.1 kB / 416.6 MB, free: 9.133 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008625/0.3662, allocations: 438.9 kB / 417 MB, free: 8.703 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3662, allocations: 0 / 417 MB, free: 8.703 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00044/0.3667, allocations: 255.5 kB / 417.2 MB, free: 8.453 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000657/0.3673, allocations: 88.75 kB / 417.3 MB, free: 8.367 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.3693, allocations: 1.045 MB / 418.4 MB, free: 7.234 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004989/0.3698, allocations: 0.7933 MB / 419.2 MB, free: 6.414 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.3699, allocations: 47.42 kB / 419.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3699, allocations: 0 / 419.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of Templates: time 0.00871/0.3786, allocations: 4.6 MB / 423.8 MB, free: 1.789 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