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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002102/0.002102, allocations: 108.8 kB / 16.92 MB, free: 6.145 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.002845/0.002845, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.615/2.615, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 46.31 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.1851, allocations: 49.45 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.007553/0.1927, allocations: 2.604 MB / 352.8 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.1942, allocations: 382.5 kB / 353.1 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004304/0.1947, allocations: 4 kB / 353.1 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003643/0.1951, allocations: 43.52 kB / 353.2 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006111/0.1958, allocations: 107 kB / 353.3 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006262/0.1964, allocations: 91.81 kB / 353.4 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008315/0.1973, allocations: 374.4 kB / 353.8 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003884/0.1977, allocations: 107 kB / 353.9 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004031/0.1981, allocations: 143.5 kB / 354 MB, free: 464 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004737/0.1986, allocations: 163.3 kB / 354.2 MB, free: 300 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001203/0.1987, allocations: 31.98 kB / 354.2 MB, free: 268 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001564/0.1989, allocations: 32 kB / 354.2 MB, free: 236 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.199, allocations: 67.77 kB / 354.3 MB, free: 168 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003187/0.1993, allocations: 167.2 kB / 354.4 MB, free: 0 / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000672/0.2, allocations: 366.9 kB / 354.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.2001, allocations: 0 / 354.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.506e-06/0.2001, allocations: 0 / 354.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.608e-05/0.2001, allocations: 0 / 354.8 MB, free: 15.64 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.002117/0.2022, allocations: 0.6276 MB / 355.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.25e-05/0.2023, allocations: 8.031 kB / 355.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001373/0.2025, allocations: 66.72 kB / 355.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.2026, allocations: 40.55 kB / 355.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004812/0.2031, allocations: 267.4 kB / 355.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.758e-05/0.2032, allocations: 20.94 kB / 355.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.427e-05/0.2033, allocations: 32.28 kB / 355.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007773/0.2041, allocations: 281.3 kB / 356.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.2041, allocations: 3.938 kB / 356.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.365e-05/0.2041, allocations: 12 kB / 356.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.2042, allocations: 8 kB / 356.2 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000831/0.205, allocations: 266 kB / 356.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.2069, allocations: 0.7914 MB / 357.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009042/0.2078, allocations: 370.5 kB / 357.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005259/0.2083, allocations: 196.8 kB / 357.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.162e-05/0.2084, allocations: 4 kB / 357.8 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/0.2085, allocations: 38.56 kB / 357.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 3.396e-06/0.2085, allocations: 0 / 357.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.00666/0.2151, allocations: 1.96 MB / 359.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.281e-05/0.2152, allocations: 55.97 kB / 359.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003588/0.2156, allocations: 203 kB / 360 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.887e-05/0.2157, allocations: 33.7 kB / 360 MB, free: 10.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001919/0.2159, allocations: 152.9 kB / 360.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002757/0.2162, allocations: 212.8 kB / 360.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002306/0.2164, allocations: 90.25 kB / 360.5 MB, free: 9.641 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002926/0.2167, allocations: 346.7 kB / 360.8 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005906/0.2173, allocations: 161 kB / 361 MB, free: 9.137 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005148/0.2179, allocations: 176.9 kB / 361.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.219, allocations: 380 kB / 361.5 MB, free: 8.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.219, allocations: 0 / 361.5 MB, free: 8.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00139/0.2204, allocations: 486.6 kB / 362 MB, free: 8.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.2205, allocations: 8 kB / 362 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.2205, allocations: 0 / 362 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.957e-05/0.2206, allocations: 4 kB / 362 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007504/0.2213, allocations: 119.8 kB / 362.1 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.209e-05/0.2214, allocations: 4 kB / 362.1 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.2217, allocations: 27.91 kB / 362.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.632e-05/0.2218, allocations: 16 kB / 362.2 MB, free: 7.934 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.0003022/0.2221, allocations: 161.7 kB / 362.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.2222, allocations: 31.62 kB / 362.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001586/0.2224, allocations: 59.27 kB / 362.4 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.2224, allocations: 4 kB / 362.4 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.2224, allocations: 0 / 362.4 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.2225, allocations: 7.922 kB / 362.4 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003431/0.2259, allocations: 1.313 MB / 363.8 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/0.2259, allocations: 8 kB / 363.8 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007005/0.2266, allocations: 123.8 kB / 363.9 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.354e-05/0.2267, allocations: 8 kB / 363.9 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.029e-05/0.2267, allocations: 16 kB / 363.9 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-05/0.2267, allocations: 19.86 kB / 363.9 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.2268, allocations: 4.375 kB / 363.9 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002108/0.2289, allocations: 0.8823 MB / 364.8 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001586/0.2291, allocations: 120.6 kB / 364.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.934e-05/0.2292, allocations: 16 kB / 364.9 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00039/0.2296, allocations: 27.98 kB / 365 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.2297, allocations: 55.81 kB / 365 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.026e-05/0.2298, allocations: 20 kB / 365.1 MB, free: 4.852 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001881/0.23, allocations: 136.6 kB / 365.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.23, allocations: 0 / 365.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006558/0.2306, allocations: 96 kB / 365.3 MB, free: 4.625 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.002425/0.2331, allocations: 1.435 MB / 366.7 MB, free: 3.109 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00149/0.2346, allocations: 466.6 kB / 367.2 MB, free: 2.652 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.2346, allocations: 0 / 367.2 MB, free: 2.652 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006855/0.2353, allocations: 256.7 kB / 367.4 MB, free: 2.402 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.2364, allocations: 82.61 kB / 367.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3415/0.5779, allocations: 3.67 MB / 371.2 MB, free: 24.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005912/0.5786, allocations: 0.7924 MB / 372 MB, free: 23.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004314/0.579, allocations: 47.62 kB / 372 MB, free: 23.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003357/0.5794, allocations: 121.1 kB / 372.1 MB, free: 23.38 MB / 302.1 MB Notification: Performance of SimCode: time 2.265e-06/0.5794, allocations: 0.75 kB / 372.1 MB, free: 23.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04988/0.6293, allocations: 7.344 MB / 379.5 MB, free: 22.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.84/14.47, allocations: 9.672 kB / 379.5 MB, free: 22.22 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv","/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