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.0008601/0.0008601, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008103/0.0008103, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8517/0.8517, allocations: 173.3 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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 2.424e-06/2.424e-06, allocations: 3.984 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.898e-05/2.14e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002462/0.002484, allocations: 2.397 MB / 320.8 MB, free: 3.945 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006439/0.003128, allocations: 386.5 kB / 321.2 MB, free: 3.566 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.00325, allocations: 7.938 kB / 321.2 MB, free: 3.559 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.003377, allocations: 47.52 kB / 321.3 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002369/0.003614, allocations: 107 kB / 321.4 MB, free: 3.406 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002576/0.003872, allocations: 99.75 kB / 321.5 MB, free: 3.309 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003009/0.004173, allocations: 390.1 kB / 321.8 MB, free: 2.926 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.004336, allocations: 87.55 kB / 321.9 MB, free: 2.832 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001819/0.004518, allocations: 211.6 kB / 322.1 MB, free: 2.625 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.004636, allocations: 123.7 kB / 322.2 MB, free: 2.504 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.646e-05/0.004672, allocations: 28 kB / 322.3 MB, free: 2.477 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.068e-05/0.004703, allocations: 32 kB / 322.3 MB, free: 2.445 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.004e-05/0.004743, allocations: 67.73 kB / 322.4 MB, free: 2.379 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.549e-05/0.004818, allocations: 115.7 kB / 322.5 MB, free: 2.266 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003573/0.005176, allocations: 390.7 kB / 322.9 MB, free: 1.883 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.005179, allocations: 4 kB / 322.9 MB, free: 1.879 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.00518, allocations: 0 / 322.9 MB, free: 1.879 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.005186, allocations: 0 / 322.9 MB, free: 1.879 MB / 282.7 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.0007111/0.005897, allocations: 0.556 MB / 323.4 MB, free: 1.289 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.005938, allocations: 8.922 kB / 323.4 MB, free: 1.281 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.149e-05/0.005989, allocations: 66.72 kB / 323.5 MB, free: 1.207 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.516e-05/0.006034, allocations: 36.75 kB / 323.5 MB, free: 1.172 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002862/0.00632, allocations: 205.1 kB / 323.7 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.006354, allocations: 21.03 kB / 323.8 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.44e-05/0.006399, allocations: 32.38 kB / 323.8 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003586/0.006757, allocations: 278.6 kB / 324.1 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.006772, allocations: 192 / 324.1 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.00679, allocations: 12.38 kB / 324.1 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.006799, allocations: 16.06 kB / 324.1 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003443/0.007143, allocations: 262.4 kB / 324.3 MB, free: 340 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.008266, allocations: 0.6936 MB / 325 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004003/0.008667, allocations: 336.5 kB / 325.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.008869, allocations: 173.4 kB / 325.5 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.008895, allocations: 8 kB / 325.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.008912, allocations: 34.56 kB / 325.6 MB, free: 15.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.333e-06/0.008914, allocations: 4 kB / 325.6 MB, free: 15.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.002477/0.01139, allocations: 1.826 MB / 327.4 MB, free: 13.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.01142, allocations: 60.06 kB / 327.5 MB, free: 13.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.01155, allocations: 195.1 kB / 327.7 MB, free: 12.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.01158, allocations: 41.7 kB / 327.7 MB, free: 12.83 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.928e-05/0.01165, allocations: 149.1 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003774/0.01202, allocations: 222.1 kB / 328.1 MB, free: 12.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.527e-05/0.01211, allocations: 94.28 kB / 328.2 MB, free: 12.37 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.767e-05/0.0122, allocations: 350.7 kB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001926/0.01239, allocations: 157.2 kB / 328.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.01258, allocations: 173.8 kB / 328.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004028/0.01298, allocations: 381.8 kB / 329.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.01298, allocations: 0 / 329.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0004925/0.01348, allocations: 489.1 kB / 329.7 MB, free: 10.83 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.01349, allocations: 4 kB / 329.7 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.0135, allocations: 0 / 329.7 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.01351, allocations: 4 kB / 329.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00024/0.01375, allocations: 123.8 kB / 329.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.01376, allocations: 4 kB / 329.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.844e-05/0.01385, allocations: 23.97 kB / 329.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.01386, allocations: 16 kB / 329.8 MB, free: 10.66 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 (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.0001204/0.01399, allocations: 165.7 kB / 330 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.595e-05/0.01402, allocations: 35.77 kB / 330 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.198e-05/0.01408, allocations: 55.27 kB / 330.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.01409, allocations: 4 kB / 330.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.01409, allocations: 4 kB / 330.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.0141, allocations: 3.984 kB / 330.1 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.01525, allocations: 1.2 MB / 331.3 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.01525, allocations: 7.984 kB / 331.3 MB, free: 9.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002406/0.01549, allocations: 123.8 kB / 331.4 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.0155, allocations: 12 kB / 331.4 MB, free: 8.938 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.01552, allocations: 19.94 kB / 331.5 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/0.01553, allocations: 16.39 kB / 331.5 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.01553, allocations: 8 kB / 331.5 MB, free: 8.895 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007764/0.01631, allocations: 0.8673 MB / 332.4 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.53e-05/0.01634, allocations: 43.8 kB / 332.4 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.09e-05/0.01637, allocations: 19.94 kB / 332.4 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.01649, allocations: 27.98 kB / 332.4 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.711e-05/0.01655, allocations: 59.55 kB / 332.5 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.01657, allocations: 20 kB / 332.5 MB, free: 7.785 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.112e-05/0.01664, allocations: 140.6 kB / 332.7 MB, free: 7.648 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01664, allocations: 0 / 332.7 MB, free: 7.648 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002469/0.01689, allocations: 96 kB / 332.8 MB, free: 7.555 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 (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.0009224/0.01781, allocations: 1.427 MB / 334.2 MB, free: 6.051 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004816/0.01829, allocations: 419.9 kB / 334.6 MB, free: 5.637 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.01829, allocations: 7.938 kB / 334.6 MB, free: 5.629 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002428/0.01853, allocations: 239.7 kB / 334.8 MB, free: 5.395 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003863/0.01892, allocations: 98.75 kB / 334.9 MB, free: 5.305 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003124/0.02204, allocations: 3.605 MB / 338.5 MB, free: 1.508 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/0.02216, allocations: 191.2 kB / 338.7 MB, free: 1.301 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000115/0.02228, allocations: 47.25 kB / 338.8 MB, free: 1.254 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.0224, allocations: 120.5 kB / 338.9 MB, free: 1.137 MB / 298.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02241, allocations: 0 / 338.9 MB, free: 1.137 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01954/0.04194, allocations: 8.485 MB / 347.4 MB, free: 8.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.812/6.854, allocations: 7.922 kB / 347.4 MB, free: 8.832 MB / 314.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.437527348287404]