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.001255/0.001255, allocations: 109.5 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.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.001352/0.001352, allocations: 187.1 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.446/1.446, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002293/0.002293, allocations: 47.92 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.279, allocations: 52.2 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004229/0.2832, allocations: 2.634 MB / 425.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.2844, allocations: 378.7 kB / 425.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003433/0.2847, allocations: 7.938 kB / 425.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002458/0.285, allocations: 43.52 kB / 425.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003262/0.2853, allocations: 103.1 kB / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004162/0.2857, allocations: 95.77 kB / 425.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005819/0.2863, allocations: 374.4 kB / 426.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002327/0.2865, allocations: 83.5 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002524/0.2868, allocations: 143.6 kB / 426.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002797/0.2871, allocations: 167.3 kB / 426.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.14e-05/0.2871, allocations: 28 kB / 426.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.516e-05/0.2872, allocations: 32 kB / 426.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.356e-05/0.2873, allocations: 71.73 kB / 426.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001763/0.2874, allocations: 171.2 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004436/0.2879, allocations: 370.9 kB / 427.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.2879, allocations: 0 / 427.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2879, allocations: 0 / 427.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.962e-05/0.2879, allocations: 0 / 427.3 MB, free: 9.93 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001175/0.2891, allocations: 0.5637 MB / 427.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.2891, allocations: 8.031 kB / 427.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.054e-05/0.2892, allocations: 66.72 kB / 427.9 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.723e-05/0.2893, allocations: 36.75 kB / 427.9 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004203/0.2897, allocations: 214.8 kB / 428.2 MB, free: 8.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.873e-05/0.2897, allocations: 17.03 kB / 428.2 MB, free: 8.961 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.523e-05/0.2898, allocations: 32.38 kB / 428.2 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000581/0.2904, allocations: 278.5 kB / 428.5 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.2904, allocations: 7.938 kB / 428.5 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/0.2904, allocations: 8 kB / 428.5 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.2904, allocations: 8 kB / 428.5 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005815/0.291, allocations: 270.4 kB / 428.8 MB, free: 8.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.2923, allocations: 0.752 MB / 429.5 MB, free: 7.574 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006105/0.2929, allocations: 338.6 kB / 429.8 MB, free: 7.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000334/0.2933, allocations: 176.8 kB / 430 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.773e-05/0.2933, allocations: 4 kB / 430 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.2934, allocations: 38.56 kB / 430.1 MB, free: 7.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.703e-06/0.2934, allocations: 3.938 kB / 430.1 MB, free: 7 MB / 334.1 MB Notification: Performance of matching and sorting (n=63): time 0.004297/0.2977, allocations: 1.841 MB / 431.9 MB, free: 5.109 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.2977, allocations: 56.06 kB / 432 MB, free: 5.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002247/0.2979, allocations: 199 kB / 432.2 MB, free: 4.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.298, allocations: 37.7 kB / 432.2 MB, free: 4.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.2981, allocations: 149.1 kB / 432.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.2982, allocations: 218.1 kB / 432.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/0.2984, allocations: 94.33 kB / 432.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.2985, allocations: 346.8 kB / 433 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003378/0.2989, allocations: 161.2 kB / 433.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003271/0.2992, allocations: 173.8 kB / 433.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006867/0.2999, allocations: 373.9 kB / 433.7 MB, free: 3.293 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2999, allocations: 3.938 kB / 433.7 MB, free: 3.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008625/0.3008, allocations: 489.1 kB / 434.2 MB, free: 2.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.3008, allocations: 7.984 kB / 434.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.3008, allocations: 4 kB / 434.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.3008, allocations: 4 kB / 434.2 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004816/0.3013, allocations: 119.8 kB / 434.3 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.3013, allocations: 4 kB / 434.3 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.3015, allocations: 23.92 kB / 434.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.3015, allocations: 16 kB / 434.3 MB, free: 2.629 MB / 334.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.0002112/0.3018, allocations: 161.8 kB / 434.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.616e-05/0.3018, allocations: 39.81 kB / 434.5 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.3019, allocations: 43.34 kB / 434.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.302, allocations: 4 kB / 434.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.302, allocations: 3.938 kB / 434.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.302, allocations: 7.922 kB / 434.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.3041, allocations: 1.281 MB / 435.9 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.3041, allocations: 7.984 kB / 435.9 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004985/0.3046, allocations: 128.3 kB / 436 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.159e-05/0.3046, allocations: 8 kB / 436 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.949e-05/0.3046, allocations: 20 kB / 436 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.037e-05/0.3046, allocations: 15.86 kB / 436 MB, free: 0.793 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.3046, allocations: 8 kB / 436.1 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.306, allocations: 0.8746 MB / 436.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.002e-05/0.3061, allocations: 43.78 kB / 437 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.511e-05/0.3062, allocations: 16 kB / 437 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.3064, allocations: 27.98 kB / 437 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.988e-05/0.3065, allocations: 59.48 kB / 437.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-05/0.3066, allocations: 20 kB / 437.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001251/0.3067, allocations: 144.6 kB / 437.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3067, allocations: 0 / 437.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004103/0.3071, allocations: 100 kB / 437.3 MB, free: 15.43 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 (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.001714/0.3088, allocations: 1.43 MB / 438.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008705/0.3097, allocations: 423.9 kB / 439.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3097, allocations: 0 / 439.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004379/0.3101, allocations: 244 kB / 439.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006322/0.3107, allocations: 80.98 kB / 439.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005289/0.316, allocations: 3.693 MB / 443.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004508/0.3165, allocations: 0.7933 MB / 444 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002091/0.3167, allocations: 47.27 kB / 444 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002155/0.3169, allocations: 123.4 kB / 444.1 MB, free: 8.328 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3169, allocations: 0 / 444.1 MB, free: 8.328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0415/0.3584, allocations: 7.967 MB / 452.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.42, allocations: 3.438 kB / 452.1 MB, free: 0.5273 MB / 350.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/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: 13.788383662933484]