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.001589/0.001589, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001961/0.001961, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.578/1.578, allocations: 207.6 MB / 235.3 MB, free: 10 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.001987/0.001987, allocations: 59.05 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3086, allocations: 49.15 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.00455/0.3131, allocations: 2.612 MB / 398.9 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007815/0.3139, allocations: 378.9 kB / 399.3 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001635/0.314, allocations: 8.312 kB / 399.3 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000183/0.3142, allocations: 46.78 kB / 399.4 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.3144, allocations: 104.3 kB / 399.5 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003406/0.3148, allocations: 92.98 kB / 399.6 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004247/0.3152, allocations: 373 kB / 399.9 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.3154, allocations: 83.33 kB / 400 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001912/0.3156, allocations: 150 kB / 400.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002426/0.3158, allocations: 164.2 kB / 400.3 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.94e-05/0.3159, allocations: 29.88 kB / 400.3 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.54e-05/0.316, allocations: 30.5 kB / 400.4 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.983e-05/0.316, allocations: 70.45 kB / 400.4 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001587/0.3162, allocations: 169 kB / 400.6 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005085/0.3167, allocations: 375.5 kB / 401 MB, free: 6.047 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3167, allocations: 0 / 401 MB, free: 6.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.584e-06/0.3167, allocations: 1.344 kB / 401 MB, free: 6.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.728e-06/0.3167, allocations: 0.75 kB / 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.001089/0.3178, allocations: 0.5564 MB / 401.5 MB, free: 5.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.3178, allocations: 14.06 kB / 401.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.13e-05/0.3179, allocations: 66.47 kB / 401.6 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.892e-05/0.318, allocations: 38.33 kB / 401.6 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003373/0.3183, allocations: 210.5 kB / 401.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.871e-05/0.3184, allocations: 21.44 kB / 401.9 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.6e-05/0.3184, allocations: 35.48 kB / 401.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005466/0.319, allocations: 276.9 kB / 402.2 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.319, allocations: 4.547 kB / 402.2 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.319, allocations: 10.56 kB / 402.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.319, allocations: 6.781 kB / 402.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000568/0.3196, allocations: 265.6 kB / 402.5 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.3208, allocations: 0.7612 MB / 403.2 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005985/0.3214, allocations: 338.2 kB / 403.6 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003188/0.3217, allocations: 173.2 kB / 403.7 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.076e-05/0.3218, allocations: 8.641 kB / 403.7 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.3218, allocations: 39.66 kB / 403.8 MB, free: 4.387 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.803e-06/0.3218, allocations: 1.188 kB / 403.8 MB, free: 4.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.003959/0.3258, allocations: 1.821 MB / 405.6 MB, free: 3.527 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.3258, allocations: 58.97 kB / 405.6 MB, free: 3.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001864/0.326, allocations: 197.5 kB / 405.8 MB, free: 3.332 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.326, allocations: 40.97 kB / 405.9 MB, free: 3.289 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.355e-05/0.3261, allocations: 144.7 kB / 406 MB, free: 3.164 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/0.3262, allocations: 228.8 kB / 406.2 MB, free: 2.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.3263, allocations: 91.47 kB / 406.3 MB, free: 2.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.992e-05/0.3264, allocations: 352.1 kB / 406.7 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000321/0.3268, allocations: 163 kB / 406.8 MB, free: 2.539 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000318/0.3271, allocations: 177 kB / 407 MB, free: 2.473 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006432/0.3277, allocations: 376 kB / 407.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3277, allocations: 0.7031 kB / 407.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008571/0.3286, allocations: 490 kB / 407.9 MB, free: 2.105 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.3286, allocations: 4.906 kB / 407.9 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.3286, allocations: 5.922 kB / 407.9 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.3286, allocations: 2.562 kB / 407.9 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004898/0.3291, allocations: 121.8 kB / 408 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.3291, allocations: 2.438 kB / 408 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.3293, allocations: 26.86 kB / 408 MB, free: 2.078 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.621e-05/0.3294, allocations: 17.55 kB / 408 MB, free: 2.074 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.0001674/0.3295, allocations: 158.1 kB / 408.2 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.87e-05/0.3296, allocations: 37.84 kB / 408.2 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.3297, allocations: 45.48 kB / 408.3 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/0.3297, allocations: 6.922 kB / 408.3 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.581e-05/0.3298, allocations: 0 / 408.3 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.3298, allocations: 8.391 kB / 408.3 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001974/0.3317, allocations: 1.269 MB / 409.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/0.3317, allocations: 4.312 kB / 409.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004857/0.3322, allocations: 127.9 kB / 409.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-05/0.3322, allocations: 8.031 kB / 409.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.629e-05/0.3323, allocations: 21.64 kB / 409.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.188e-05/0.3323, allocations: 11.55 kB / 409.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/0.3323, allocations: 8.297 kB / 409.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001254/0.3336, allocations: 0.8805 MB / 410.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.791e-05/0.3336, allocations: 38.05 kB / 410.7 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.281e-05/0.3337, allocations: 17.36 kB / 410.7 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.3339, allocations: 30.61 kB / 410.7 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.963e-05/0.334, allocations: 56.39 kB / 410.8 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.655e-05/0.334, allocations: 22.36 kB / 410.8 MB, free: 436 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001155/0.3342, allocations: 142.1 kB / 410.9 MB, free: 340 kB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3342, allocations: 3.938 kB / 410.9 MB, free: 336 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004089/0.3346, allocations: 102.3 kB / 411 MB, free: 312 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.001752/0.3363, allocations: 1.441 MB / 412.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009041/0.3372, allocations: 423.9 kB / 412.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3372, allocations: 1.688 kB / 412.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004823/0.3377, allocations: 238.7 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.0006812/0.3384, allocations: 82.12 kB / 413.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005613/0.344, allocations: 3.678 MB / 416.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005073/0.3445, allocations: 0.7937 MB / 417.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002292/0.3447, allocations: 49.39 kB / 417.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002796/0.345, allocations: 121.5 kB / 417.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of SimCode: time 1.363e-06/0.345, allocations: 0 / 417.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.042/0.387, allocations: 7.971 MB / 425.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.69, allocations: 11.94 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.241702175000682]