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.001463/0.001463, allocations: 86.95 kB / 16.31 MB, free: 6.449 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.00117/0.00117, allocations: 180.2 kB / 17.21 MB, free: 6.32 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: 223.3 MB / 241.2 MB, free: 5.27 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002329/0.0002329, allocations: 4.094 kB / 300.8 MB, free: 5.598 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09994/0.1002, allocations: 50.43 MB / 351.2 MB, free: 11.45 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002474/0.1027, allocations: 2.181 MB / 353.4 MB, free: 9.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000621/0.1034, allocations: 378.7 kB / 353.8 MB, free: 8.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.1035, allocations: 4 kB / 353.8 MB, free: 8.879 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.1036, allocations: 35.7 kB / 353.8 MB, free: 8.844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.1038, allocations: 79.31 kB / 353.9 MB, free: 8.766 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002875/0.1041, allocations: 71.86 kB / 354 MB, free: 8.695 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000311/0.1044, allocations: 338.4 kB / 354.3 MB, free: 8.363 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/0.1046, allocations: 81.67 kB / 354.4 MB, free: 8.281 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.1047, allocations: 119.6 kB / 354.5 MB, free: 8.164 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001777/0.1049, allocations: 143.4 kB / 354.6 MB, free: 8.023 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.704e-05/0.1049, allocations: 16 kB / 354.7 MB, free: 8.008 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.1e-05/0.105, allocations: 19.94 kB / 354.7 MB, free: 7.988 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.565e-05/0.105, allocations: 51.81 kB / 354.7 MB, free: 7.938 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.509e-05/0.1051, allocations: 85.52 kB / 354.8 MB, free: 7.848 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002376/0.1054, allocations: 259.2 kB / 355.1 MB, free: 7.594 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1054, allocations: 4 kB / 355.1 MB, free: 7.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1054, allocations: 0 / 355.1 MB, free: 7.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.1054, allocations: 0 / 355.1 MB, free: 7.59 MB / 286.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.0009376/0.1063, allocations: 0.5963 MB / 355.7 MB, free: 6.945 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.1064, allocations: 12.02 kB / 355.7 MB, free: 6.934 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.749e-05/0.1065, allocations: 47.45 kB / 355.7 MB, free: 6.887 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002949/0.1068, allocations: 250.4 kB / 356 MB, free: 6.602 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.1068, allocations: 20.56 kB / 356 MB, free: 6.582 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.952e-05/0.1069, allocations: 35.91 kB / 356 MB, free: 6.547 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005586/0.1074, allocations: 280.8 kB / 356.3 MB, free: 6.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.1075, allocations: 4 kB / 356.3 MB, free: 6.266 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.574e-05/0.1075, allocations: 8 kB / 356.3 MB, free: 6.258 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.1075, allocations: 8 kB / 356.3 MB, free: 6.25 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005732/0.1081, allocations: 286 kB / 356.6 MB, free: 5.969 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.1094, allocations: 0.803 MB / 357.4 MB, free: 5.113 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006021/0.11, allocations: 371.9 kB / 357.8 MB, free: 4.734 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003471/0.1104, allocations: 204.8 kB / 358 MB, free: 4.531 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.473e-05/0.1104, allocations: 11.94 kB / 358 MB, free: 4.52 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.1104, allocations: 34.5 kB / 358 MB, free: 4.477 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.744e-06/0.1104, allocations: 0 / 358 MB, free: 4.477 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.004069/0.1145, allocations: 2.03 MB / 360 MB, free: 2.355 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.1146, allocations: 55.97 kB / 360.1 MB, free: 2.289 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.1148, allocations: 199 kB / 360.3 MB, free: 2.082 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.489e-05/0.1148, allocations: 37.7 kB / 360.3 MB, free: 2.039 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.424e-05/0.1149, allocations: 149 kB / 360.5 MB, free: 1.891 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/0.1151, allocations: 220.8 kB / 360.7 MB, free: 1.672 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.511e-05/0.1152, allocations: 12 kB / 360.7 MB, free: 1.66 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.1153, allocations: 346.7 kB / 361 MB, free: 1.312 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003143/0.1156, allocations: 173 kB / 361.2 MB, free: 1.145 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003043/0.1159, allocations: 169 kB / 361.4 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003367/0.1163, allocations: 186.2 kB / 361.6 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1163, allocations: 0 / 361.6 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008001/0.1171, allocations: 0.4909 MB / 362 MB, free: 308 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.1171, allocations: 4 kB / 362 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1171, allocations: 3.984 kB / 362.1 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.1172, allocations: 4 kB / 362.1 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004596/0.1176, allocations: 123.8 kB / 362.2 MB, free: 172 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.1177, allocations: 4 kB / 362.2 MB, free: 168 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.1178, allocations: 31.98 kB / 362.2 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.054e-05/0.1179, allocations: 16 kB / 362.2 MB, free: 120 kB / 286.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 (elastoGap1.contact,elastoGap2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001722/0.1181, allocations: 165.7 kB / 362.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.187e-05/0.1181, allocations: 39.48 kB / 362.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/0.1182, allocations: 43.34 kB / 362.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/0.1182, allocations: 8 kB / 362.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1183, allocations: 0 / 362.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.1183, allocations: 11.97 kB / 362.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.1201, allocations: 1.329 MB / 363.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/0.1201, allocations: 4 kB / 363.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004579/0.1206, allocations: 131.8 kB / 364 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.807e-06/0.1206, allocations: 8 kB / 364 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.597e-05/0.1207, allocations: 27.98 kB / 364 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.1207, allocations: 4 kB / 364 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.1207, allocations: 12.19 kB / 364 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.122, allocations: 0.9018 MB / 364.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.031e-05/0.1221, allocations: 104.7 kB / 365 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.9e-05/0.1221, allocations: 19.94 kB / 365 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002407/0.1224, allocations: 36.02 kB / 365.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.258e-05/0.1225, allocations: 51.84 kB / 365.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.82e-05/0.1225, allocations: 20 kB / 365.1 MB, free: 13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001053/0.1226, allocations: 136.6 kB / 365.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1226, allocations: 4 kB / 365.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003741/0.123, allocations: 92 kB / 365.4 MB, free: 12.77 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000134/0.1232, allocations: 127.1 kB / 365.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000786/0.1239, allocations: 446.7 kB / 365.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.124, allocations: 0 / 365.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004255/0.1244, allocations: 264.7 kB / 366.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006436/0.125, allocations: 79.67 kB / 366.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.1268, allocations: 1.213 MB / 367.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.1272, allocations: 0.7935 MB / 368.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001867/0.1274, allocations: 47.27 kB / 368.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.1275, allocations: 39.42 kB / 368.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of SimCode: time 1.903e-06/0.1275, allocations: 0 / 368.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of Templates: time 0.007254/0.1348, allocations: 3.659 MB / 372 MB, free: 6.035 MB / 302.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