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.001144/0.001144, allocations: 112.3 kB / 17.68 MB, free: 5.473 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.001087/0.001087, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.4/1.4, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 55.52 kB / 302 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09348/0.09454, allocations: 49.44 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003409/0.09798, allocations: 2.603 MB / 354.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006459/0.09865, allocations: 386.5 kB / 354.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.09877, allocations: 4 kB / 354.5 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001485/0.09892, allocations: 43.52 kB / 354.5 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.0991, allocations: 103.1 kB / 354.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002764/0.09938, allocations: 95.81 kB / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003147/0.0997, allocations: 370.4 kB / 355.1 MB, free: 104 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002199/0.09993, allocations: 115.7 kB / 355.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.1001, allocations: 139.5 kB / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.1003, allocations: 163.3 kB / 355.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.349e-05/0.1003, allocations: 32 kB / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.514e-05/0.1004, allocations: 28 kB / 355.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.858e-05/0.1004, allocations: 75.75 kB / 355.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001368/0.1006, allocations: 163.2 kB / 355.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003007/0.1009, allocations: 370.7 kB / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1009, allocations: 3.938 kB / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1009, allocations: 0 / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.1009, allocations: 0 / 356.1 MB, free: 15.03 MB / 302.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.001013/0.1019, allocations: 0.6276 MB / 356.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.102, allocations: 8.031 kB / 356.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.379e-05/0.102, allocations: 32.56 kB / 356.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003149/0.1024, allocations: 271.4 kB / 357.1 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/0.1024, allocations: 32.94 kB / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.447e-05/0.1025, allocations: 32.28 kB / 357.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004915/0.103, allocations: 273.4 kB / 357.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.103, allocations: 192 / 357.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.784e-05/0.103, allocations: 23.88 kB / 357.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.103, allocations: 8 kB / 357.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005406/0.1036, allocations: 266.1 kB / 357.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.1047, allocations: 0.7913 MB / 358.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005589/0.1053, allocations: 370.5 kB / 358.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003258/0.1057, allocations: 192.8 kB / 359 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.932e-05/0.1057, allocations: 4 kB / 359 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.1057, allocations: 42.55 kB / 359.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.583e-06/0.1057, allocations: 0 / 359.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.004009/0.1098, allocations: 1.952 MB / 361 MB, free: 9.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.1098, allocations: 63.97 kB / 361.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002303/0.11, allocations: 191 kB / 361.3 MB, free: 9.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.1101, allocations: 37.7 kB / 361.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.1102, allocations: 152.9 kB / 361.5 MB, free: 9.406 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/0.1104, allocations: 212.8 kB / 361.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/0.1105, allocations: 94.23 kB / 361.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.1106, allocations: 342.8 kB / 362.1 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000318/0.111, allocations: 165 kB / 362.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003076/0.1113, allocations: 169 kB / 362.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007057/0.112, allocations: 376 kB / 362.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.112, allocations: 0 / 362.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008477/0.1129, allocations: 486.6 kB / 363.3 MB, free: 7.574 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.1129, allocations: 4 kB / 363.3 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.1129, allocations: 4 kB / 363.3 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.1129, allocations: 4 kB / 363.3 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004676/0.1134, allocations: 119.9 kB / 363.4 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.1134, allocations: 7.938 kB / 363.4 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/0.1136, allocations: 27.92 kB / 363.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/0.1137, allocations: 19.92 kB / 363.5 MB, free: 7.391 MB / 302.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.0001654/0.1139, allocations: 153.8 kB / 363.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.64e-05/0.1139, allocations: 43.53 kB / 363.6 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.114, allocations: 43.34 kB / 363.7 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.1141, allocations: 4 kB / 363.7 MB, free: 7.141 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.1141, allocations: 4 kB / 363.7 MB, free: 7.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.1141, allocations: 3.984 kB / 363.7 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001882/0.116, allocations: 1.313 MB / 365 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.116, allocations: 4 kB / 365 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004858/0.1165, allocations: 128.4 kB / 365.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.144e-05/0.1165, allocations: 15.94 kB / 365.2 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.617e-05/0.1165, allocations: 16 kB / 365.2 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.244e-06/0.1166, allocations: 7.938 kB / 365.2 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.347e-06/0.1166, allocations: 12 kB / 365.2 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.1179, allocations: 0.8721 MB / 366.1 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.118, allocations: 120.7 kB / 366.2 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.987e-05/0.1181, allocations: 23.97 kB / 366.2 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000251/0.1184, allocations: 23.98 kB / 366.2 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.803e-05/0.1185, allocations: 43.64 kB / 366.3 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.514e-05/0.1185, allocations: 23.98 kB / 366.3 MB, free: 4.328 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001255/0.1186, allocations: 152.5 kB / 366.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1186, allocations: 0 / 366.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004053/0.1191, allocations: 92 kB / 366.5 MB, free: 4.09 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 (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.0001739/0.1192, allocations: 123.1 kB / 366.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008303/0.1201, allocations: 439 kB / 367.1 MB, free: 3.535 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1201, allocations: 0 / 367.1 MB, free: 3.535 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004397/0.1205, allocations: 263.3 kB / 367.3 MB, free: 3.277 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006218/0.1212, allocations: 81.02 kB / 367.4 MB, free: 3.199 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.1228, allocations: 1.008 MB / 368.4 MB, free: 2.109 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.1232, allocations: 0.7933 MB / 369.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001815/0.1234, allocations: 51.25 kB / 369.3 MB, free: 1.238 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.1235, allocations: 35.44 kB / 369.3 MB, free: 1.203 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1235, allocations: 0 / 369.3 MB, free: 1.203 MB / 302.1 MB Notification: Performance of Templates: time 0.1651/0.2886, allocations: 4.096 MB / 373.4 MB, free: 24.43 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 -s cvode -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