Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00165/0.00165, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001829/0.001829, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2856, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004649/0.2903, allocations: 2.675 MB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00162/0.292, allocations: 0.7248 MB / 412.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002848/0.2923, allocations: 7.938 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002346/0.2926, allocations: 43.52 kB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003202/0.2929, allocations: 103 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003542/0.2933, allocations: 99.81 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005899/0.2939, allocations: 390.3 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002603/0.2942, allocations: 107.1 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002871/0.2945, allocations: 147.5 kB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000377/0.2948, allocations: 171.2 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.542e-05/0.2949, allocations: 28 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.446e-05/0.295, allocations: 32 kB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.716e-05/0.2951, allocations: 75.73 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002374/0.2954, allocations: 167.2 kB / 413.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005129/0.2959, allocations: 389.2 kB / 413.9 MB, free: 12.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2959, allocations: 0 / 413.9 MB, free: 12.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2959, allocations: 0 / 413.9 MB, free: 12.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.2959, allocations: 0 / 413.9 MB, free: 12.4 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.001202/0.2972, allocations: 0.6312 MB / 414.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.2972, allocations: 8.031 kB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.633e-05/0.2973, allocations: 70.72 kB / 414.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.078e-05/0.2974, allocations: 40.7 kB / 414.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004448/0.2978, allocations: 272.8 kB / 414.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.364e-05/0.2979, allocations: 24.78 kB / 414.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.303e-05/0.2979, allocations: 35.95 kB / 414.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004875/0.2984, allocations: 254.1 kB / 415.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.2985, allocations: 3.938 kB / 415.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.185e-05/0.2985, allocations: 12 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.2985, allocations: 7.984 kB / 415.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004303/0.299, allocations: 230.5 kB / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/0.3004, allocations: 0.8 MB / 416.2 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00055/0.301, allocations: 343.5 kB / 416.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002794/0.3013, allocations: 181.5 kB / 416.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.3013, allocations: 4.375 kB / 416.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.552e-05/0.3014, allocations: 38.94 kB / 416.8 MB, free: 9.297 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.124e-06/0.3014, allocations: 0 / 416.8 MB, free: 9.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.00395/0.3053, allocations: 1.912 MB / 418.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.3054, allocations: 59.97 kB / 418.8 MB, free: 7.223 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002372/0.3056, allocations: 212.4 kB / 419 MB, free: 7.008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.3057, allocations: 41.7 kB / 419 MB, free: 6.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.3058, allocations: 153.1 kB / 419.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.306, allocations: 226 kB / 419.4 MB, free: 6.586 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.3062, allocations: 98.33 kB / 419.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.3063, allocations: 338.8 kB / 419.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002562/0.3066, allocations: 145.2 kB / 420 MB, free: 6.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.3069, allocations: 161.8 kB / 420.1 MB, free: 5.844 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005544/0.3074, allocations: 353.6 kB / 420.5 MB, free: 5.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.3074, allocations: 0 / 420.5 MB, free: 5.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007161/0.3082, allocations: 465.1 kB / 420.9 MB, free: 5.039 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.3082, allocations: 8 kB / 420.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.3082, allocations: 3.984 kB / 420.9 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.3082, allocations: 3.938 kB / 420.9 MB, free: 5.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004691/0.3087, allocations: 119.8 kB / 421 MB, free: 4.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.3087, allocations: 4 kB / 421.1 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001844/0.3089, allocations: 12 kB / 421.1 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.515e-05/0.309, allocations: 19.98 kB / 421.1 MB, free: 4.871 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 (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.0001814/0.3091, allocations: 165.7 kB / 421.2 MB, free: 4.699 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.888e-05/0.3092, allocations: 39.77 kB / 421.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.3093, allocations: 55.27 kB / 421.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.3094, allocations: 8 kB / 421.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.3094, allocations: 0 / 421.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.3094, allocations: 3.984 kB / 421.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001946/0.3113, allocations: 1.29 MB / 422.6 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.3114, allocations: 4 kB / 422.6 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004557/0.3118, allocations: 115.8 kB / 422.8 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.138e-06/0.3118, allocations: 4 kB / 422.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.414e-05/0.3119, allocations: 24.55 kB / 422.8 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.702e-05/0.3119, allocations: 7.984 kB / 422.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/0.3119, allocations: 11.94 kB / 422.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.3131, allocations: 0.843 MB / 423.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.761e-05/0.3132, allocations: 112.9 kB / 423.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.513e-05/0.3133, allocations: 27.97 kB / 423.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.3135, allocations: 16 kB / 423.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.727e-05/0.3136, allocations: 52.25 kB / 423.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.423e-05/0.3136, allocations: 20 kB / 423.9 MB, free: 1.875 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000137/0.3138, allocations: 152.5 kB / 424 MB, free: 1.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3138, allocations: 0 / 424 MB, free: 1.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004011/0.3142, allocations: 100 kB / 424.1 MB, free: 1.629 MB / 334.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.001435/0.3156, allocations: 1.403 MB / 425.5 MB, free: 144 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006816/0.3163, allocations: 411.1 kB / 425.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3164, allocations: 0 / 425.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003652/0.3167, allocations: 243.1 kB / 426.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006855/0.3174, allocations: 98.58 kB / 426.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004859/0.3223, allocations: 3.682 MB / 429.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004765/0.3228, allocations: 0.7973 MB / 430.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002083/0.323, allocations: 51.33 kB / 430.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000207/0.3232, allocations: 127.4 kB / 430.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3232, allocations: 4 kB / 430.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03391/0.3572, allocations: 7.826 MB / 438.7 MB, free: 2.836 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.419/8.776, allocations: 18.98 kB / 438.8 MB, free: 2.824 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv","/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_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches