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.0008446/0.0008447, allocations: 96.41 kB / 16.3 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.0009492/0.0009492, allocations: 182.3 kB / 17.2 MB, free: 5.906 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.268/1.268, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002827/0.0002827, allocations: 6.219 kB / 300.7 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09401/0.09431, allocations: 50.42 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002307/0.09665, allocations: 2.065 MB / 353.2 MB, free: 9.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005785/0.09725, allocations: 390.7 kB / 353.6 MB, free: 9.297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.603e-05/0.09736, allocations: 7.938 kB / 353.6 MB, free: 9.289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.828e-05/0.09742, allocations: 35.75 kB / 353.6 MB, free: 9.254 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001943/0.09762, allocations: 119.7 kB / 353.7 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000212/0.09784, allocations: 63.92 kB / 353.8 MB, free: 9.074 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002828/0.09813, allocations: 251.4 kB / 354 MB, free: 8.828 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.09831, allocations: 81.69 kB / 354.1 MB, free: 8.746 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.09845, allocations: 123.5 kB / 354.2 MB, free: 8.625 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001624/0.09862, allocations: 135.4 kB / 354.4 MB, free: 8.492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.51e-05/0.09866, allocations: 16 kB / 354.4 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.902e-05/0.09871, allocations: 16 kB / 354.4 MB, free: 8.461 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.51e-05/0.09876, allocations: 55.77 kB / 354.5 MB, free: 8.406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.722e-05/0.09882, allocations: 77.58 kB / 354.5 MB, free: 8.324 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002333/0.09906, allocations: 271.2 kB / 354.8 MB, free: 8.059 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.09907, allocations: 0 / 354.8 MB, free: 8.059 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.09908, allocations: 0 / 354.8 MB, free: 8.059 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.09909, allocations: 4 kB / 354.8 MB, free: 8.055 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.0009757/0.1001, allocations: 0.5963 MB / 355.4 MB, free: 7.41 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.1001, allocations: 8.031 kB / 355.4 MB, free: 7.402 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.173e-05/0.1002, allocations: 43.52 kB / 355.5 MB, free: 7.359 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/0.1005, allocations: 262.3 kB / 355.7 MB, free: 7.062 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.1005, allocations: 24.56 kB / 355.7 MB, free: 7.039 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.021e-05/0.1005, allocations: 35.91 kB / 355.8 MB, free: 7.004 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005213/0.1011, allocations: 268.8 kB / 356 MB, free: 6.738 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.1011, allocations: 7.984 kB / 356 MB, free: 6.73 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.1011, allocations: 12 kB / 356.1 MB, free: 6.719 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.1012, allocations: 8 kB / 356.1 MB, free: 6.711 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005525/0.1017, allocations: 290 kB / 356.3 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.1029, allocations: 0.7952 MB / 357.1 MB, free: 5.582 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005992/0.1035, allocations: 375.1 kB / 357.5 MB, free: 5.199 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.1036, allocations: 4 kB / 357.5 MB, free: 5.195 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.995e-05/0.1036, allocations: 38.56 kB / 357.5 MB, free: 5.148 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.513e-06/0.1036, allocations: 0 / 357.5 MB, free: 5.148 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.004005/0.1076, allocations: 2.035 MB / 359.6 MB, free: 3.023 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.1077, allocations: 59.97 kB / 359.6 MB, free: 2.953 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.1078, allocations: 198.9 kB / 359.8 MB, free: 2.746 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.64e-05/0.1079, allocations: 33.7 kB / 359.9 MB, free: 2.707 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.878e-05/0.108, allocations: 149 kB / 360 MB, free: 2.559 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/0.1081, allocations: 216.8 kB / 360.2 MB, free: 2.344 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.41e-05/0.1081, allocations: 16 kB / 360.2 MB, free: 2.328 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1083, allocations: 338.8 kB / 360.6 MB, free: 1.988 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000314/0.1086, allocations: 169 kB / 360.7 MB, free: 1.824 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003107/0.1089, allocations: 173 kB / 360.9 MB, free: 1.652 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003349/0.1093, allocations: 182.2 kB / 361.1 MB, free: 1.477 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1093, allocations: 4 kB / 361.1 MB, free: 1.473 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.000793/0.1101, allocations: 0.4908 MB / 361.6 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.1101, allocations: 4 kB / 361.6 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1101, allocations: 4 kB / 361.6 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.1101, allocations: 4 kB / 361.6 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004602/0.1106, allocations: 127.8 kB / 361.7 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.1106, allocations: 4 kB / 361.7 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001922/0.1108, allocations: 27.98 kB / 361.7 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.946e-05/0.1108, allocations: 20 kB / 361.8 MB, free: 0.7891 MB / 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.000155/0.111, allocations: 157.8 kB / 361.9 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.035e-05/0.1111, allocations: 39.48 kB / 362 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.361e-05/0.1112, allocations: 47.33 kB / 362 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1112, allocations: 8 kB / 362 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.1112, allocations: 0 / 362 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.655e-05/0.1112, allocations: 3.984 kB / 362 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001825/0.113, allocations: 1.325 MB / 363.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.1131, allocations: 8.094 kB / 363.3 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004695/0.1135, allocations: 131.8 kB / 363.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.827e-06/0.1136, allocations: 8 kB / 363.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.144e-05/0.1136, allocations: 19.98 kB / 363.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.985e-06/0.1136, allocations: 7.938 kB / 363.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.1136, allocations: 11.94 kB / 363.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/0.115, allocations: 1.112 MB / 364.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.846e-05/0.1151, allocations: 108.8 kB / 364.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.62e-05/0.1151, allocations: 28.03 kB / 364.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002639/0.1154, allocations: 35.97 kB / 364.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.737e-05/0.1155, allocations: 51.84 kB / 364.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.999e-05/0.1155, allocations: 31.92 kB / 364.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001057/0.1156, allocations: 136.6 kB / 365 MB, free: 13.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1157, allocations: 0 / 365 MB, free: 13.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003783/0.116, allocations: 96 kB / 365.1 MB, free: 13.11 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.0001345/0.1162, allocations: 119.1 kB / 365.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007578/0.1169, allocations: 442.7 kB / 365.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.117, allocations: 4 kB / 365.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004079/0.1174, allocations: 256 kB / 365.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004822/0.1179, allocations: 76.44 kB / 366 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.1196, allocations: 1.205 MB / 367.2 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/0.12, allocations: 0.7974 MB / 368 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001783/0.1202, allocations: 55.19 kB / 368 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.1203, allocations: 35.42 kB / 368.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1203, allocations: 0 / 368.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Templates: time 0.007392/0.1277, allocations: 3.646 MB / 371.7 MB, free: 6.414 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","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches