Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 115.6 kB / 20.43 MB, free: 1.309 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 210 kB / 23.74 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.483/1.483, allocations: 230.6 MB / 257.5 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 51.86 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2998, allocations: 53.36 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.00443/0.3042, allocations: 2.698 MB / 433.8 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.3057, allocations: 0.7365 MB / 434.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001541/0.3059, allocations: 11.94 kB / 434.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.3061, allocations: 55.44 kB / 434.6 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002975/0.3064, allocations: 99.12 kB / 434.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003087/0.3067, allocations: 95.81 kB / 434.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004125/0.3071, allocations: 390.3 kB / 435.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001911/0.3073, allocations: 80.19 kB / 435.3 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001846/0.3075, allocations: 155.4 kB / 435.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002486/0.3077, allocations: 167.3 kB / 435.6 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.72e-05/0.3077, allocations: 28 kB / 435.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.53e-05/0.3078, allocations: 32 kB / 435.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.064e-05/0.3079, allocations: 75.69 kB / 435.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.308, allocations: 179.1 kB / 435.9 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004561/0.3085, allocations: 382.8 kB / 436.3 MB, free: 1.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3085, allocations: 0 / 436.3 MB, free: 1.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3085, allocations: 0 / 436.3 MB, free: 1.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.3085, allocations: 0 / 436.3 MB, free: 1.68 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001028/0.3095, allocations: 0.5597 MB / 436.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.3096, allocations: 8.031 kB / 436.8 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.202e-05/0.3097, allocations: 62.73 kB / 436.9 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.782e-05/0.3097, allocations: 36.7 kB / 436.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004142/0.3102, allocations: 214.9 kB / 437.1 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/0.3102, allocations: 32.72 kB / 437.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.52e-05/0.3103, allocations: 39.94 kB / 437.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004725/0.3107, allocations: 258.1 kB / 437.5 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.3107, allocations: 0 / 437.5 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.765e-05/0.3108, allocations: 12 kB / 437.5 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.3108, allocations: 8 kB / 437.5 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004198/0.3112, allocations: 230.5 kB / 437.7 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.3127, allocations: 0.7641 MB / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005169/0.3133, allocations: 307.6 kB / 438.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/0.3135, allocations: 165.5 kB / 438.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.246e-05/0.3136, allocations: 8.312 kB / 438.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.3136, allocations: 34.94 kB / 439 MB, free: 14.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.663e-06/0.3136, allocations: 0 / 439 MB, free: 14.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004082/0.3177, allocations: 1.776 MB / 440.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.23e-05/0.3177, allocations: 60 kB / 440.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002542/0.318, allocations: 207.3 kB / 441 MB, free: 12.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.994e-05/0.318, allocations: 37.7 kB / 441.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.3182, allocations: 153.1 kB / 441.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001932/0.3184, allocations: 230 kB / 441.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.3185, allocations: 90.34 kB / 441.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003247/0.3189, allocations: 350.8 kB / 441.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002509/0.3191, allocations: 145.2 kB / 442 MB, free: 11.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002639/0.3194, allocations: 153.8 kB / 442.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005901/0.32, allocations: 354 kB / 442.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.32, allocations: 0 / 442.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007405/0.3207, allocations: 465.1 kB / 443 MB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.3207, allocations: 4 kB / 443 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.3207, allocations: 4 kB / 443 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.3208, allocations: 7.922 kB / 443 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004683/0.3212, allocations: 119.9 kB / 443.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.489e-05/0.3213, allocations: 7.984 kB / 443.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001873/0.3214, allocations: 16 kB / 443.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.438e-05/0.3215, allocations: 19.98 kB / 443.1 MB, free: 10.58 MB / 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 (71): * Single equations (assignments): 71 * 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.0002075/0.3217, allocations: 161.7 kB / 443.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.356e-05/0.3218, allocations: 39.77 kB / 443.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001327/0.3219, allocations: 47.28 kB / 443.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.3219, allocations: 8 kB / 443.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.3219, allocations: 7.984 kB / 443.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3219, allocations: 0 / 443.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002055/0.324, allocations: 1.262 MB / 444.6 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.324, allocations: 8.125 kB / 444.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004619/0.3244, allocations: 119.8 kB / 444.8 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.3244, allocations: 4 kB / 444.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.218e-05/0.3245, allocations: 16 kB / 444.8 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.858e-06/0.3245, allocations: 11.94 kB / 444.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.3245, allocations: 4 kB / 444.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.3257, allocations: 0.8455 MB / 445.7 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.631e-05/0.3258, allocations: 39.8 kB / 445.7 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.281e-05/0.3259, allocations: 23.94 kB / 445.7 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.3261, allocations: 16 kB / 445.7 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.396e-05/0.3262, allocations: 52.23 kB / 445.8 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.638e-05/0.3262, allocations: 23.98 kB / 445.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001463/0.3264, allocations: 152.5 kB / 446 MB, free: 7.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3264, allocations: 7.938 kB / 446 MB, free: 7.555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004014/0.3268, allocations: 96 kB / 446.1 MB, free: 7.461 MB / 350.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 (65): * Single equations (assignments): 65 * 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.001526/0.3283, allocations: 1.394 MB / 447.4 MB, free: 5.984 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007005/0.329, allocations: 387.7 kB / 447.8 MB, free: 5.602 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.329, allocations: 4 kB / 447.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003475/0.3293, allocations: 222.2 kB / 448 MB, free: 5.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006922/0.33, allocations: 99.62 kB / 448.1 MB, free: 5.285 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005069/0.3351, allocations: 3.676 MB / 451.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007346/0.3358, allocations: 0.7972 MB / 452.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002027/0.336, allocations: 47.34 kB / 452.7 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002024/0.3362, allocations: 127.4 kB / 452.8 MB, free: 432 kB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3362, allocations: 0 / 452.8 MB, free: 432 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05464/0.3909, allocations: 8.341 MB / 461.1 MB, free: 8.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.77, allocations: 0 / 461.1 MB, free: 8.27 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv. Warning: Get data of variable elastoGap1.v_rel from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv failed! Error: Could not read variable springDamper1.v_rel in file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv. Warning: Get data of variable springDamper1.v_rel from file Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.299570893999771]