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.001529/0.001529, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001634/0.001634, allocations: 214.4 kB / 23.74 MB, free: 4.656 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.471/1.471, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.001772/0.001772, allocations: 47.91 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2671, allocations: 53.36 MB / 431.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004098/0.2712, allocations: 2.698 MB / 433.8 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.2728, allocations: 0.7365 MB / 434.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002745/0.2731, allocations: 7.938 kB / 434.6 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002187/0.2733, allocations: 55.45 kB / 434.6 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003187/0.2737, allocations: 107 kB / 434.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003767/0.274, allocations: 91.88 kB / 434.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005284/0.2746, allocations: 382.3 kB / 435.2 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.2748, allocations: 88.2 kB / 435.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002325/0.275, allocations: 151.4 kB / 435.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002804/0.2753, allocations: 179.2 kB / 435.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.443e-05/0.2754, allocations: 28 kB / 435.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.943e-05/0.2754, allocations: 32 kB / 435.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.389e-05/0.2755, allocations: 71.75 kB / 435.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001896/0.2757, allocations: 171.1 kB / 435.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004931/0.2762, allocations: 382.8 kB / 436.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.2762, allocations: 3.984 kB / 436.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2762, allocations: 0 / 436.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.153e-05/0.2762, allocations: 0 / 436.3 MB, free: 1.652 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.00116/0.2774, allocations: 0.552 MB / 436.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.2774, allocations: 8.031 kB / 436.8 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.271e-05/0.2775, allocations: 70.72 kB / 436.9 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.608e-05/0.2776, allocations: 40.7 kB / 436.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000454/0.2781, allocations: 218.9 kB / 437.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.615e-05/0.2781, allocations: 24.78 kB / 437.2 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.349e-05/0.2782, allocations: 31.95 kB / 437.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004657/0.2786, allocations: 258.1 kB / 437.5 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.2786, allocations: 4 kB / 437.5 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.544e-05/0.2787, allocations: 8 kB / 437.5 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.2787, allocations: 8 kB / 437.5 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004015/0.2791, allocations: 242.4 kB / 437.7 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00142/0.2805, allocations: 0.7524 MB / 438.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005231/0.281, allocations: 322.5 kB / 438.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002627/0.2813, allocations: 161.5 kB / 438.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-05/0.2813, allocations: 12.36 kB / 439 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.2814, allocations: 34.94 kB / 439 MB, free: 14.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.174e-06/0.2814, allocations: 0 / 439 MB, free: 14.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003909/0.2853, allocations: 1.768 MB / 440.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.606e-05/0.2853, allocations: 60.06 kB / 440.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002607/0.2856, allocations: 203.3 kB / 441 MB, free: 12.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.878e-05/0.2856, allocations: 41.7 kB / 441.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.2858, allocations: 153.1 kB / 441.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002052/0.286, allocations: 234 kB / 441.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.2861, allocations: 94.34 kB / 441.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.2863, allocations: 342.8 kB / 441.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002629/0.2865, allocations: 145.2 kB / 442 MB, free: 11.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/0.2868, allocations: 157.8 kB / 442.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005614/0.2874, allocations: 350 kB / 442.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2874, allocations: 7.938 kB / 442.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007595/0.2881, allocations: 465.1 kB / 443 MB, free: 10.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.2881, allocations: 4 kB / 443 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.2882, allocations: 0 / 443 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.2882, allocations: 7.938 kB / 443 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004702/0.2886, allocations: 119.8 kB / 443.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.715e-05/0.2887, allocations: 7.984 kB / 443.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.2889, allocations: 12 kB / 443.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.545e-05/0.2889, allocations: 16 kB / 443.1 MB, free: 10.56 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.000218/0.2891, allocations: 165.8 kB / 443.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.85e-05/0.2892, allocations: 39.75 kB / 443.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001487/0.2894, allocations: 55.28 kB / 443.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.2894, allocations: 7.938 kB / 443.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/0.2894, allocations: 0 / 443.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.2894, allocations: 7.984 kB / 443.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002213/0.2916, allocations: 1.254 MB / 444.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.2916, allocations: 4 kB / 444.7 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004796/0.2921, allocations: 115.8 kB / 444.8 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.236e-05/0.2921, allocations: 8 kB / 444.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.35e-05/0.2922, allocations: 20.55 kB / 444.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-05/0.2922, allocations: 15.94 kB / 444.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.2922, allocations: 4 kB / 444.8 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.2934, allocations: 0.8493 MB / 445.7 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.673e-05/0.2935, allocations: 39.86 kB / 445.7 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.343e-05/0.2935, allocations: 20.03 kB / 445.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002853/0.2938, allocations: 19.98 kB / 445.7 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.2939, allocations: 56.23 kB / 445.8 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-05/0.2939, allocations: 20 kB / 445.8 MB, free: 7.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000159/0.2941, allocations: 156.5 kB / 446 MB, free: 7.527 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2941, allocations: 0 / 446 MB, free: 7.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004308/0.2945, allocations: 96 kB / 446.1 MB, free: 7.434 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.001599/0.2961, allocations: 1.398 MB / 447.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007827/0.2969, allocations: 383.7 kB / 447.8 MB, free: 5.574 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.2969, allocations: 0 / 447.8 MB, free: 5.574 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003779/0.2973, allocations: 227.2 kB / 448.1 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007505/0.2981, allocations: 92.5 kB / 448.1 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005503/0.3036, allocations: 3.676 MB / 451.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005389/0.3041, allocations: 0.7972 MB / 452.6 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002336/0.3043, allocations: 55.33 kB / 452.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000221/0.3045, allocations: 123.4 kB / 452.8 MB, free: 400 kB / 350.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3046, allocations: 0 / 452.8 MB, free: 400 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04789/0.3524, allocations: 8.341 MB / 461.1 MB, free: 8.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.77, allocations: 0 / 461.1 MB, free: 8.234 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 & /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/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.18812572909519]