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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001722/0.001722, allocations: 123 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002113/0.002113, allocations: 189.2 kB / 20.73 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 225.6 MB / 249.1 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 51.92 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.106, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004023/0.11, allocations: 2.62 MB / 420.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007524/0.1108, allocations: 378.6 kB / 420.8 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.1109, allocations: 7.938 kB / 420.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001633/0.1111, allocations: 51.5 kB / 420.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000188/0.1113, allocations: 103.1 kB / 420.9 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.1116, allocations: 91.81 kB / 421 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004008/0.112, allocations: 378.3 kB / 421.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001908/0.1122, allocations: 79.09 kB / 421.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.1123, allocations: 147.5 kB / 421.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.1125, allocations: 163.2 kB / 421.8 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.715e-05/0.1126, allocations: 28 kB / 421.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.174e-05/0.1126, allocations: 36 kB / 421.8 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.678e-05/0.1127, allocations: 75.73 kB / 421.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.1129, allocations: 159.2 kB / 422.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004117/0.1133, allocations: 374.5 kB / 422.4 MB, free: 7.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.1133, allocations: 4 kB / 422.4 MB, free: 7.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1133, allocations: 0 / 422.4 MB, free: 7.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.1133, allocations: 0 / 422.4 MB, free: 7.953 MB / 350.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.001201/0.1145, allocations: 0.6388 MB / 423.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.1145, allocations: 12.03 kB / 423.1 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.782e-05/0.1146, allocations: 62.73 kB / 423.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.013e-05/0.1147, allocations: 36.73 kB / 423.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000405/0.1151, allocations: 271.7 kB / 423.4 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.1152, allocations: 24.88 kB / 423.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.211e-05/0.1152, allocations: 28.38 kB / 423.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000576/0.1158, allocations: 273.4 kB / 423.8 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.1158, allocations: 7.875 kB / 423.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.1158, allocations: 12 kB / 423.8 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.1159, allocations: 8 kB / 423.8 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006232/0.1165, allocations: 266.1 kB / 424 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.1178, allocations: 0.7876 MB / 424.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006259/0.1184, allocations: 338.6 kB / 425.2 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003642/0.1188, allocations: 189.2 kB / 425.3 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.49e-05/0.1188, allocations: 7.984 kB / 425.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.1189, allocations: 38.56 kB / 425.4 MB, free: 4.805 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.382e-06/0.1189, allocations: 0 / 425.4 MB, free: 4.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=63): time 0.004422/0.1233, allocations: 1.969 MB / 427.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/0.1234, allocations: 63.91 kB / 427.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.1236, allocations: 195 kB / 427.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.614e-05/0.1236, allocations: 37.7 kB / 427.6 MB, free: 2.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.1237, allocations: 149.1 kB / 427.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.1239, allocations: 222.1 kB / 428 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.1241, allocations: 90.25 kB / 428.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.1243, allocations: 350.7 kB / 428.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003508/0.1247, allocations: 157 kB / 428.6 MB, free: 1.469 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003502/0.125, allocations: 181 kB / 428.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007196/0.1257, allocations: 372 kB / 429.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1257, allocations: 0 / 429.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008905/0.1266, allocations: 494.8 kB / 429.6 MB, free: 444 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.1266, allocations: 4 kB / 429.6 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1266, allocations: 4 kB / 429.6 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.1267, allocations: 0 / 429.6 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004991/0.1272, allocations: 123.9 kB / 429.7 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.974e-06/0.1272, allocations: 0 / 429.7 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.1274, allocations: 27.92 kB / 429.8 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.314e-05/0.1274, allocations: 16 kB / 429.8 MB, free: 268 kB / 350.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.0001955/0.1276, allocations: 169.7 kB / 430 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.697e-05/0.1277, allocations: 31.81 kB / 430 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.1278, allocations: 47.33 kB / 430 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.53e-05/0.1278, allocations: 8.047 kB / 430 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.238e-06/0.1278, allocations: 0 / 430 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.1278, allocations: 7.875 kB / 430 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002106/0.1299, allocations: 1.306 MB / 431.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.1299, allocations: 12 kB / 431.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004969/0.1304, allocations: 132.2 kB / 431.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.094e-05/0.1305, allocations: 8 kB / 431.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.513e-05/0.1305, allocations: 19.98 kB / 431.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.208e-06/0.1305, allocations: 8 kB / 431.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.1305, allocations: 7.938 kB / 431.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.1319, allocations: 0.8801 MB / 432.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.132, allocations: 116.9 kB / 432.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.921e-05/0.1321, allocations: 16 kB / 432.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/0.1323, allocations: 23.98 kB / 432.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.034e-05/0.1324, allocations: 59.56 kB / 432.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-05/0.1324, allocations: 24 kB / 432.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001385/0.1326, allocations: 140.4 kB / 432.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1326, allocations: 0 / 432.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003836/0.133, allocations: 96 kB / 432.9 MB, free: 12.95 MB / 366.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.001828/0.1348, allocations: 1.439 MB / 434.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008329/0.1356, allocations: 418.7 kB / 434.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1356, allocations: 3.938 kB / 434.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000453/0.1361, allocations: 239.5 kB / 435 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006202/0.1367, allocations: 91.19 kB / 435.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005217/0.1419, allocations: 3.687 MB / 438.7 MB, free: 6.812 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004411/0.1424, allocations: 0.7933 MB / 439.5 MB, free: 5.996 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001985/0.1426, allocations: 51.25 kB / 439.6 MB, free: 5.949 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.1428, allocations: 119.4 kB / 439.7 MB, free: 5.832 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1428, allocations: 4 kB / 439.7 MB, free: 5.828 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2335/0.3762, allocations: 7.525 MB / 447.2 MB, free: 31.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.58/8.956, allocations: 4.734 kB / 447.2 MB, free: 31.25 MB / 366.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable elastoGap1.v_rel in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv. Warning: Get data of variable elastoGap1.v_rel from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv failed! Error: Could not read variable springDamper1.v_rel in file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv. Warning: Get data of variable springDamper1.v_rel from file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.517814686056226]