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.001325/0.001325, allocations: 117.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.001356/0.001356, allocations: 200.6 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.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 59.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2986, allocations: 50.54 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004302/0.303, allocations: 2.684 MB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.3046, allocations: 0.7248 MB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003017/0.3049, allocations: 8 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002218/0.3052, allocations: 51.44 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003288/0.3055, allocations: 107.1 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003548/0.3059, allocations: 91.83 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000459/0.3063, allocations: 386.3 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002626/0.3066, allocations: 119.1 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.3068, allocations: 147.5 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002593/0.3071, allocations: 179.2 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.039e-05/0.3072, allocations: 28 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.474e-05/0.3072, allocations: 32 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.523e-05/0.3073, allocations: 67.77 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001717/0.3075, allocations: 167.2 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004219/0.3079, allocations: 385.4 kB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3079, allocations: 4 kB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3079, allocations: 0 / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.752e-05/0.308, allocations: 0 / 413.9 MB, free: 12.37 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.001124/0.3091, allocations: 0.6311 MB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.3092, allocations: 8.031 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.759e-05/0.3092, allocations: 66.72 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.076e-05/0.3093, allocations: 40.7 kB / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.3097, allocations: 280.7 kB / 414.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/0.3098, allocations: 24.78 kB / 414.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.091e-05/0.3098, allocations: 31.95 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004416/0.3103, allocations: 258.1 kB / 415.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.3103, allocations: 4 kB / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.743e-05/0.3104, allocations: 11.98 kB / 415.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.3104, allocations: 8 kB / 415.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003755/0.3107, allocations: 230.5 kB / 415.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.312, allocations: 0.8 MB / 416.3 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005314/0.3125, allocations: 355 kB / 416.6 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002723/0.3128, allocations: 177.5 kB / 416.8 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.002e-05/0.3128, allocations: 4.375 kB / 416.8 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/0.3129, allocations: 34.94 kB / 416.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.623e-06/0.3129, allocations: 4 kB / 416.8 MB, free: 9.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.003953/0.3168, allocations: 1.912 MB / 418.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.3169, allocations: 63.91 kB / 418.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000216/0.3171, allocations: 208.4 kB / 419 MB, free: 6.969 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.3172, allocations: 37.7 kB / 419 MB, free: 6.926 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.3173, allocations: 149.1 kB / 419.2 MB, free: 6.777 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.3174, allocations: 234 kB / 419.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/0.3176, allocations: 98.33 kB / 419.5 MB, free: 6.445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3177, allocations: 338.8 kB / 419.8 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/0.318, allocations: 153.2 kB / 420 MB, free: 5.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/0.3182, allocations: 153.8 kB / 420.1 MB, free: 5.805 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005321/0.3188, allocations: 349.6 kB / 420.5 MB, free: 5.465 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.3188, allocations: 4 kB / 420.5 MB, free: 5.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006887/0.3195, allocations: 465.1 kB / 420.9 MB, free: 5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.3195, allocations: 7.984 kB / 420.9 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.3195, allocations: 0 / 420.9 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.782e-05/0.3196, allocations: 7.938 kB / 420.9 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004493/0.32, allocations: 115.8 kB / 421.1 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.646e-05/0.3201, allocations: 8 kB / 421.1 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002623/0.3203, allocations: 15.98 kB / 421.1 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.137e-05/0.3204, allocations: 16 kB / 421.1 MB, free: 4.832 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.0001964/0.3206, allocations: 157.8 kB / 421.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.88e-05/0.3207, allocations: 35.77 kB / 421.3 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.3208, allocations: 59.27 kB / 421.3 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3208, allocations: 4 kB / 421.4 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/0.3208, allocations: 7.938 kB / 421.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.3208, allocations: 7.984 kB / 421.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.3228, allocations: 1.282 MB / 422.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.3228, allocations: 4 kB / 422.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004995/0.3233, allocations: 119.9 kB / 422.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-05/0.3234, allocations: 8 kB / 422.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.12e-05/0.3235, allocations: 19.98 kB / 422.8 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.084e-05/0.3235, allocations: 11.94 kB / 422.8 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.3235, allocations: 4 kB / 422.8 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.3246, allocations: 0.8429 MB / 423.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.85e-05/0.3248, allocations: 120.9 kB / 423.8 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.697e-05/0.3248, allocations: 20.03 kB / 423.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002366/0.3251, allocations: 20 kB / 423.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.771e-05/0.3252, allocations: 52.25 kB / 423.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.3252, allocations: 24 kB / 423.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.3253, allocations: 152.5 kB / 424 MB, free: 1.688 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3253, allocations: 4 kB / 424 MB, free: 1.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003965/0.3257, allocations: 96 kB / 424.1 MB, free: 1.59 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.001448/0.3272, allocations: 1.395 MB / 425.5 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007027/0.3279, allocations: 411 kB / 425.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.3279, allocations: 4 kB / 425.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003804/0.3283, allocations: 234.2 kB / 426.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007098/0.329, allocations: 102.9 kB / 426.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004736/0.3338, allocations: 3.682 MB / 429.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.3342, allocations: 0.7973 MB / 430.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002158/0.3345, allocations: 51.33 kB / 430.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002232/0.3347, allocations: 127.4 kB / 430.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3347, allocations: 0 / 430.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.367, allocations: 7.836 MB / 438.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.295/8.662, allocations: 7.234 kB / 438.8 MB, free: 2.793 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.0.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