Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001393/0.001393, allocations: 113.6 kB / 21.19 MB, free: 0.5547 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.001396/0.001396, allocations: 208.7 kB / 24.49 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 207.6 MB / 235.3 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 61.33 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3247, allocations: 49.16 MB / 396.3 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003831/0.3285, allocations: 2.604 MB / 398.9 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000737/0.3293, allocations: 375.6 kB / 399.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001404/0.3294, allocations: 8.375 kB / 399.3 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001824/0.3296, allocations: 49.91 kB / 399.4 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001778/0.3298, allocations: 100.9 kB / 399.5 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003146/0.3301, allocations: 97.47 kB / 399.6 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004013/0.3305, allocations: 373.5 kB / 399.9 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002068/0.3307, allocations: 86.08 kB / 400 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000184/0.3309, allocations: 151.7 kB / 400.2 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002239/0.3311, allocations: 167 kB / 400.3 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.145e-05/0.3311, allocations: 29.31 kB / 400.4 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.845e-05/0.3312, allocations: 30.41 kB / 400.4 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.15e-05/0.3313, allocations: 65.83 kB / 400.4 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.3314, allocations: 165.4 kB / 400.6 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004603/0.3319, allocations: 375.4 kB / 401 MB, free: 6.047 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3319, allocations: 1.219 kB / 401 MB, free: 6.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3319, allocations: 0 / 401 MB, free: 6.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.3319, allocations: 0 / 401 MB, free: 6.047 MB / 318.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.001027/0.3329, allocations: 0.5571 MB / 401.5 MB, free: 5.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.333, allocations: 18 kB / 401.5 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.734e-05/0.333, allocations: 67.05 kB / 401.6 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.815e-05/0.3331, allocations: 37.48 kB / 401.7 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003327/0.3334, allocations: 207.9 kB / 401.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.664e-05/0.3335, allocations: 25.31 kB / 401.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.735e-05/0.3335, allocations: 34.58 kB / 401.9 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005445/0.3341, allocations: 272.2 kB / 402.2 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/0.3341, allocations: 13.62 kB / 402.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.3341, allocations: 10.28 kB / 402.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.3341, allocations: 6.875 kB / 402.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005912/0.3347, allocations: 269.5 kB / 402.5 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.336, allocations: 0.766 MB / 403.2 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006111/0.3366, allocations: 332.2 kB / 403.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000356/0.337, allocations: 175 kB / 403.7 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.043e-05/0.337, allocations: 4.891 kB / 403.7 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.107e-05/0.337, allocations: 40.75 kB / 403.8 MB, free: 4.375 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.663e-06/0.337, allocations: 0 / 403.8 MB, free: 4.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.004333/0.3414, allocations: 1.821 MB / 405.6 MB, free: 3.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.155e-05/0.3414, allocations: 57.56 kB / 405.7 MB, free: 3.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.3416, allocations: 199.4 kB / 405.8 MB, free: 3.324 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.3416, allocations: 35.92 kB / 405.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.745e-05/0.3417, allocations: 144.3 kB / 406 MB, free: 3.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.3418, allocations: 228.6 kB / 406.2 MB, free: 2.977 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.3419, allocations: 91.83 kB / 406.3 MB, free: 2.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.719e-05/0.342, allocations: 353.7 kB / 406.7 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003207/0.3423, allocations: 162 kB / 406.8 MB, free: 2.535 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/0.3427, allocations: 172.8 kB / 407 MB, free: 2.473 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006928/0.3434, allocations: 375.3 kB / 407.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.3434, allocations: 3.938 kB / 407.4 MB, free: 2.305 MB / 318.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009437/0.3443, allocations: 491.2 kB / 407.9 MB, free: 2.102 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.3443, allocations: 6.062 kB / 407.9 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.3443, allocations: 0 / 407.9 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.143e-05/0.3444, allocations: 3.703 kB / 407.9 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005538/0.3449, allocations: 121.6 kB / 408 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.3449, allocations: 6.75 kB / 408 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001935/0.3451, allocations: 26.77 kB / 408 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.986e-05/0.3452, allocations: 16.61 kB / 408 MB, free: 2.07 MB / 318.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.0001724/0.3454, allocations: 158.7 kB / 408.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.715e-05/0.3454, allocations: 33.12 kB / 408.2 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001265/0.3456, allocations: 46.19 kB / 408.3 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.3456, allocations: 6.25 kB / 408.3 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/0.3456, allocations: 5.219 kB / 408.3 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.55e-05/0.3456, allocations: 11.22 kB / 408.3 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002021/0.3476, allocations: 1.266 MB / 409.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.3476, allocations: 5.188 kB / 409.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004896/0.3481, allocations: 127 kB / 409.7 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.013e-05/0.3481, allocations: 7.688 kB / 409.7 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.553e-05/0.3482, allocations: 17.66 kB / 409.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-05/0.3482, allocations: 12.34 kB / 409.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.3482, allocations: 7.672 kB / 409.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.3494, allocations: 0.8918 MB / 410.6 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.287e-05/0.3495, allocations: 35.02 kB / 410.7 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.609e-05/0.3495, allocations: 17.45 kB / 410.7 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002494/0.3498, allocations: 34.03 kB / 410.7 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.3499, allocations: 60.05 kB / 410.8 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.053e-05/0.3499, allocations: 22.12 kB / 410.8 MB, free: 420 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001103/0.35, allocations: 138.4 kB / 410.9 MB, free: 328 kB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.35, allocations: 0 / 410.9 MB, free: 328 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003922/0.3504, allocations: 98.56 kB / 411 MB, free: 308 kB / 318.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.001738/0.3522, allocations: 1.44 MB / 412.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008402/0.353, allocations: 424.8 kB / 412.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.353, allocations: 2.812 kB / 412.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004446/0.3535, allocations: 233.9 kB / 413.1 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006457/0.3541, allocations: 84.59 kB / 413.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005611/0.3597, allocations: 3.681 MB / 416.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005608/0.3603, allocations: 0.7938 MB / 417.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002085/0.3605, allocations: 48.69 kB / 417.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.3607, allocations: 122.7 kB / 417.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3607, allocations: 0 / 417.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03945/0.4002, allocations: 7.971 MB / 425.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.69, allocations: 4.922 kB / 425.8 MB, free: 5.078 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv. Warning: Get data of variable elastoGap1.v_rel from file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv failed! Error: Could not read variable springDamper1.v_rel in file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv. Warning: Get data of variable springDamper1.v_rel from file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.19427532699774]