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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 108.4 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 198.8 kB / 18.01 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 47.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3249, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004046/0.329, allocations: 2.615 MB / 402.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008084/0.3298, allocations: 382.6 kB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.3299, allocations: 4 kB / 403.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001646/0.3301, allocations: 51.5 kB / 403.3 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001973/0.3303, allocations: 99.12 kB / 403.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003264/0.3307, allocations: 95.81 kB / 403.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003659/0.3311, allocations: 374.3 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002249/0.3313, allocations: 111.1 kB / 403.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001777/0.3315, allocations: 151.5 kB / 404.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.3317, allocations: 163.3 kB / 404.2 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.116e-05/0.3317, allocations: 28 kB / 404.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.078e-05/0.3318, allocations: 32 kB / 404.3 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.548e-05/0.3319, allocations: 67.77 kB / 404.4 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001706/0.332, allocations: 171.2 kB / 404.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003933/0.3324, allocations: 365.6 kB / 404.9 MB, free: 4.137 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3325, allocations: 4 kB / 404.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3325, allocations: 4 kB / 404.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.3325, allocations: 0 / 404.9 MB, free: 4.129 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.001136/0.3336, allocations: 0.635 MB / 405.5 MB, free: 3.438 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.689e-05/0.3337, allocations: 12.03 kB / 405.5 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.521e-05/0.3338, allocations: 62.72 kB / 405.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.327e-05/0.3339, allocations: 32.75 kB / 405.6 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004081/0.3343, allocations: 279.6 kB / 405.9 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.341e-05/0.3343, allocations: 16.94 kB / 405.9 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.315e-05/0.3344, allocations: 32.38 kB / 406 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005702/0.335, allocations: 277.4 kB / 406.2 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.335, allocations: 7.938 kB / 406.2 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.807e-05/0.335, allocations: 8 kB / 406.2 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.335, allocations: 8 kB / 406.3 MB, free: 2.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005674/0.3356, allocations: 270 kB / 406.5 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.337, allocations: 0.7915 MB / 407.3 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006182/0.3376, allocations: 361.3 kB / 407.7 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003451/0.3379, allocations: 192.8 kB / 407.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.58e-05/0.338, allocations: 11.98 kB / 407.9 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.338, allocations: 34.56 kB / 407.9 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.963e-06/0.338, allocations: 0 / 407.9 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.004329/0.3424, allocations: 1.976 MB / 409.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.3424, allocations: 59.97 kB / 409.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001882/0.3426, allocations: 195 kB / 410.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.243e-05/0.3427, allocations: 37.7 kB / 410.2 MB, free: 14.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.832e-05/0.3428, allocations: 145.1 kB / 410.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.3429, allocations: 230.1 kB / 410.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.3431, allocations: 90.25 kB / 410.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3432, allocations: 350.7 kB / 411 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003362/0.3436, allocations: 157 kB / 411.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003262/0.3439, allocations: 169 kB / 411.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006786/0.3446, allocations: 376 kB / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3446, allocations: 0 / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008277/0.3455, allocations: 490.8 kB / 412.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.3455, allocations: 8 kB / 412.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3455, allocations: 0 / 412.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.3455, allocations: 0 / 412.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004814/0.346, allocations: 123.9 kB / 412.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.346, allocations: 3.938 kB / 412.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/0.3462, allocations: 27.92 kB / 412.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.3463, allocations: 19.98 kB / 412.3 MB, free: 12.4 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.0001852/0.3465, allocations: 161.7 kB / 412.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.788e-05/0.3465, allocations: 31.81 kB / 412.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.3467, allocations: 51.27 kB / 412.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3467, allocations: 12 kB / 412.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.3467, allocations: 0 / 412.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.3467, allocations: 3.938 kB / 412.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001982/0.3487, allocations: 1.321 MB / 413.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/0.3487, allocations: 4 kB / 413.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004886/0.3492, allocations: 127.7 kB / 414 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.281e-05/0.3492, allocations: 11.98 kB / 414 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.332e-05/0.3493, allocations: 16 kB / 414 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.928e-06/0.3493, allocations: 16.31 kB / 414 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.3493, allocations: 7.984 kB / 414.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.3506, allocations: 0.8762 MB / 414.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.3507, allocations: 108.9 kB / 415 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.492e-05/0.3508, allocations: 23.97 kB / 415.1 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.3511, allocations: 27.98 kB / 415.1 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.4e-05/0.3512, allocations: 51.64 kB / 415.1 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.254e-05/0.3512, allocations: 23.98 kB / 415.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001263/0.3513, allocations: 140.5 kB / 415.3 MB, free: 9.188 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3513, allocations: 0 / 415.3 MB, free: 9.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004083/0.3518, allocations: 104 kB / 415.4 MB, free: 9.086 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 (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.001629/0.3534, allocations: 1.428 MB / 416.8 MB, free: 7.574 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000846/0.3542, allocations: 446.6 kB / 417.3 MB, free: 7.141 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3543, allocations: 0 / 417.3 MB, free: 7.141 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004283/0.3547, allocations: 256.7 kB / 417.5 MB, free: 6.891 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006554/0.3554, allocations: 90.64 kB / 417.6 MB, free: 6.809 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005074/0.3604, allocations: 3.69 MB / 421.3 MB, free: 2.922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004158/0.3609, allocations: 0.7933 MB / 422.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002177/0.3611, allocations: 47.25 kB / 422.1 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001891/0.3613, allocations: 119.4 kB / 422.2 MB, free: 1.945 MB / 334.1 MB Notification: Performance of SimCode: time 1.453e-06/0.3613, allocations: 0 / 422.2 MB, free: 1.945 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03143/0.3928, allocations: 7.477 MB / 429.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.942/8.335, allocations: 7.109 kB / 429.7 MB, free: 10.59 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches