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.001398/0.001398, allocations: 101 kB / 16.5 MB, free: 6.641 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.001553/0.001553, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.339/1.339, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000985/0.000985, allocations: 55.03 kB / 299.9 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08409/0.08509, allocations: 49.45 MB / 349.4 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003546/0.08867, allocations: 2.646 MB / 352 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006356/0.08934, allocations: 390.5 kB / 352.4 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.08947, allocations: 4 kB / 352.4 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.08963, allocations: 39.64 kB / 352.5 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001488/0.0898, allocations: 83.31 kB / 352.5 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.09008, allocations: 71.94 kB / 352.6 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003197/0.09041, allocations: 362.4 kB / 353 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.09062, allocations: 91.66 kB / 353.1 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.09077, allocations: 123.6 kB / 353.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001743/0.09095, allocations: 159.3 kB / 353.3 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.199e-05/0.091, allocations: 20 kB / 353.4 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.901e-05/0.09106, allocations: 20 kB / 353.4 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.575e-05/0.09112, allocations: 59.75 kB / 353.4 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.09127, allocations: 155.2 kB / 353.6 MB, free: 452 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002976/0.09157, allocations: 362.9 kB / 353.9 MB, free: 88 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.09158, allocations: 0 / 353.9 MB, free: 88 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.09159, allocations: 4 kB / 353.9 MB, free: 84 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.0916, allocations: 0 / 353.9 MB, free: 84 kB / 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.001046/0.09265, allocations: 0.616 MB / 354.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.0927, allocations: 12.03 kB / 354.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.15e-05/0.09279, allocations: 32.56 kB / 354.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002565/0.09305, allocations: 271.5 kB / 354.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.265e-05/0.09309, allocations: 24.92 kB / 354.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.09315, allocations: 32.28 kB / 354.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005196/0.09367, allocations: 269.4 kB / 355.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.0937, allocations: 4.188 kB / 355.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.51e-05/0.09375, allocations: 23.81 kB / 355.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.09376, allocations: 8 kB / 355.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005443/0.09431, allocations: 266.1 kB / 355.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.09553, allocations: 0.7952 MB / 356.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005977/0.09614, allocations: 366.5 kB / 356.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003446/0.09649, allocations: 200.8 kB / 356.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.09654, allocations: 4 kB / 356.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.09657, allocations: 38.56 kB / 356.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.643e-06/0.09658, allocations: 0 / 356.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.004036/0.1006, allocations: 1.956 MB / 358.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.1007, allocations: 63.95 kB / 358.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001822/0.1009, allocations: 195 kB / 359.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.1009, allocations: 33.7 kB / 359.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.307e-05/0.101, allocations: 148.9 kB / 359.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.1011, allocations: 216.8 kB / 359.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.1013, allocations: 90.25 kB / 359.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1014, allocations: 350.7 kB / 359.9 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003265/0.1018, allocations: 157 kB / 360.1 MB, free: 9.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003242/0.1021, allocations: 180.9 kB / 360.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006585/0.1028, allocations: 376 kB / 360.6 MB, free: 9.113 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.1028, allocations: 0 / 360.6 MB, free: 9.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008009/0.1036, allocations: 478.7 kB / 361.1 MB, free: 8.637 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.1036, allocations: 8 kB / 361.1 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.1036, allocations: 0 / 361.1 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.1037, allocations: 4 kB / 361.1 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004624/0.1041, allocations: 123.8 kB / 361.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.1041, allocations: 4 kB / 361.2 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.1043, allocations: 23.98 kB / 361.2 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.894e-05/0.1044, allocations: 15.94 kB / 361.2 MB, free: 8.461 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.0001563/0.1045, allocations: 165.7 kB / 361.4 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.463e-05/0.1046, allocations: 39.53 kB / 361.4 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.627e-05/0.1047, allocations: 47.33 kB / 361.5 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1047, allocations: 4 kB / 361.5 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.1047, allocations: 4 kB / 361.5 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.024e-06/0.1048, allocations: 3.984 kB / 361.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/0.1066, allocations: 1.321 MB / 362.8 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.1066, allocations: 4 kB / 362.8 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004677/0.1071, allocations: 119.8 kB / 362.9 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.946e-06/0.1071, allocations: 15.88 kB / 363 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.31e-05/0.1072, allocations: 19.98 kB / 363 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/0.1072, allocations: 8 kB / 363 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.1072, allocations: 8.281 kB / 363 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/0.1084, allocations: 0.8745 MB / 363.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.957e-05/0.1085, allocations: 112.8 kB / 364 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.108e-05/0.1086, allocations: 16 kB / 364 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002703/0.1089, allocations: 31.97 kB / 364 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.957e-05/0.109, allocations: 55.81 kB / 364.1 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.037e-05/0.109, allocations: 27.94 kB / 364.1 MB, free: 5.387 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001022/0.1091, allocations: 136.6 kB / 364.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1091, allocations: 0 / 364.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003759/0.1095, allocations: 100 kB / 364.3 MB, free: 5.156 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.0001134/0.1096, allocations: 123.1 kB / 364.5 MB, free: 5.027 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007526/0.1104, allocations: 434.7 kB / 364.9 MB, free: 4.602 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1104, allocations: 0 / 364.9 MB, free: 4.602 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004104/0.1108, allocations: 259.8 kB / 365.1 MB, free: 4.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006647/0.1115, allocations: 83.98 kB / 365.2 MB, free: 4.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.1131, allocations: 1.159 MB / 366.4 MB, free: 3.031 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.1135, allocations: 0.7896 MB / 367.2 MB, free: 2.219 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001976/0.1137, allocations: 55.25 kB / 367.2 MB, free: 2.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.1138, allocations: 35.42 kB / 367.3 MB, free: 2.125 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1138, allocations: 0 / 367.3 MB, free: 2.125 MB / 302.1 MB Notification: Performance of Templates: time 0.1442/0.258, allocations: 3.821 MB / 371.1 MB, free: 24.96 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