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.0008147/0.0008147, allocations: 79.7 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008125/0.0008125, allocations: 174 kB / 23.95 MB, free: 0.6055 MB / 18.57 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 0.8727/0.8727, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.082e-06/1.082e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.233e-05/1.342e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002235/0.002249, allocations: 2.475 MB / 327 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.003289, allocations: 0.709 MB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.003391, allocations: 7.938 kB / 327.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.003516, allocations: 59.39 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000127/0.003643, allocations: 107 kB / 327.9 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002234/0.003866, allocations: 99.78 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002372/0.004103, allocations: 402 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.004253, allocations: 84.19 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.004405, allocations: 219.5 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.004536, allocations: 127.6 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.663e-05/0.004573, allocations: 28 kB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.785e-05/0.0046, allocations: 32 kB / 328.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.082e-05/0.004641, allocations: 67.73 kB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.554e-05/0.004717, allocations: 119.7 kB / 329.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002564/0.004973, allocations: 394.7 kB / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.033e-06/0.004975, allocations: 0 / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.004976, allocations: 4 kB / 329.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.004981, allocations: 0 / 329.4 MB, free: 11.03 MB / 298.7 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.0006183/0.005599, allocations: 0.5509 MB / 330 MB, free: 10.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.005634, allocations: 16.03 kB / 330 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.663e-05/0.005681, allocations: 66.72 kB / 330.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.165e-05/0.005722, allocations: 40.7 kB / 330.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.005944, allocations: 214.1 kB / 330.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.005965, allocations: 25.03 kB / 330.4 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.366e-05/0.005999, allocations: 32.33 kB / 330.4 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002858/0.006285, allocations: 262.2 kB / 330.6 MB, free: 9.766 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.0063, allocations: 4 kB / 330.6 MB, free: 9.762 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/0.006319, allocations: 12 kB / 330.7 MB, free: 9.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.006326, allocations: 8 kB / 330.7 MB, free: 9.742 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002529/0.006579, allocations: 230.5 kB / 330.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007883/0.007367, allocations: 0.6978 MB / 331.6 MB, free: 8.773 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000353/0.00772, allocations: 315.3 kB / 331.9 MB, free: 8.457 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001739/0.007894, allocations: 161.5 kB / 332.1 MB, free: 8.297 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.032e-05/0.007925, allocations: 4.375 kB / 332.1 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.007948, allocations: 38.94 kB / 332.1 MB, free: 8.246 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.202e-06/0.00795, allocations: 4 kB / 332.1 MB, free: 8.242 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.002295/0.01024, allocations: 1.764 MB / 333.9 MB, free: 6.426 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.01028, allocations: 56.06 kB / 333.9 MB, free: 6.355 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.01041, allocations: 215.3 kB / 334.1 MB, free: 6.137 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.01043, allocations: 37.7 kB / 334.2 MB, free: 6.094 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.795e-05/0.0105, allocations: 145.2 kB / 334.3 MB, free: 5.945 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003536/0.01085, allocations: 233.9 kB / 334.5 MB, free: 5.715 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.203e-05/0.01094, allocations: 90.34 kB / 334.6 MB, free: 5.621 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.51e-05/0.01102, allocations: 346.8 kB / 335 MB, free: 5.273 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.01118, allocations: 145.2 kB / 335.1 MB, free: 5.133 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001562/0.01133, allocations: 157.8 kB / 335.3 MB, free: 4.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000348/0.01168, allocations: 354 kB / 335.6 MB, free: 4.633 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.01168, allocations: 0 / 335.6 MB, free: 4.633 MB / 298.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004215/0.0121, allocations: 465.1 kB / 336.1 MB, free: 4.172 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.01212, allocations: 8 kB / 336.1 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.01212, allocations: 0 / 336.1 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.01213, allocations: 0 / 336.1 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002347/0.01237, allocations: 115.9 kB / 336.2 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.01238, allocations: 15.86 kB / 336.2 MB, free: 4.035 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.91e-05/0.01246, allocations: 16 kB / 336.2 MB, free: 4.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.01247, allocations: 16 kB / 336.2 MB, free: 4.004 MB / 298.7 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.0001026/0.01258, allocations: 157.8 kB / 336.4 MB, free: 3.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.526e-05/0.01261, allocations: 39.77 kB / 336.4 MB, free: 3.801 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.125e-05/0.01267, allocations: 51.33 kB / 336.5 MB, free: 3.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.01268, allocations: 8 kB / 336.5 MB, free: 3.742 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.01269, allocations: 0 / 336.5 MB, free: 3.742 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.01269, allocations: 7.922 kB / 336.5 MB, free: 3.734 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.01375, allocations: 1.189 MB / 337.7 MB, free: 2.438 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.01375, allocations: 7.938 kB / 337.7 MB, free: 2.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.01398, allocations: 123.8 kB / 337.8 MB, free: 2.309 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.01399, allocations: 8 kB / 337.8 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.01401, allocations: 16.56 kB / 337.8 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.493e-06/0.01401, allocations: 15.94 kB / 337.8 MB, free: 2.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.01402, allocations: 4 kB / 337.8 MB, free: 2.266 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006656/0.01468, allocations: 0.8344 MB / 338.7 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.278e-05/0.01472, allocations: 43.73 kB / 338.7 MB, free: 1.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.853e-05/0.01474, allocations: 16 kB / 338.7 MB, free: 1.305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.01486, allocations: 16 kB / 338.8 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.437e-05/0.01491, allocations: 56.3 kB / 338.8 MB, free: 1.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.01493, allocations: 23.98 kB / 338.8 MB, free: 1.211 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.54e-05/0.015, allocations: 160.4 kB / 339 MB, free: 1.055 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.015, allocations: 0 / 339 MB, free: 1.055 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002412/0.01524, allocations: 96 kB / 339.1 MB, free: 0.9609 MB / 298.7 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.0008172/0.01606, allocations: 1.395 MB / 340.5 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003947/0.01646, allocations: 396.2 kB / 340.9 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01646, allocations: 0 / 340.9 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002066/0.01666, allocations: 218.6 kB / 341.1 MB, free: 14.88 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003915/0.01706, allocations: 89.8 kB / 341.2 MB, free: 14.79 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003022/0.02008, allocations: 3.603 MB / 344.8 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001261/0.0202, allocations: 195.3 kB / 345 MB, free: 10.78 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001085/0.02031, allocations: 51.34 kB / 345 MB, free: 10.73 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.02045, allocations: 124.5 kB / 345.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of SimCode: time 4.2e-07/0.02045, allocations: 0 / 345.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02081/0.04126, allocations: 8.883 MB / 354 MB, free: 1.938 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.459/6.5, allocations: 7.922 kB / 354 MB, free: 1.93 MB / 314.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.09255796764046]