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.001721/0.001721, allocations: 112 kB / 17.06 MB, free: 5.992 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.001874/0.001874, allocations: 193.4 kB / 18 MB, free: 5.074 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.461/1.461, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 47.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.309, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004003/0.3131, allocations: 2.613 MB / 402.8 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007743/0.3139, allocations: 374.6 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.314, allocations: 11.94 kB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001755/0.3142, allocations: 47.52 kB / 403.3 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001881/0.3144, allocations: 103.1 kB / 403.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003236/0.3148, allocations: 87.83 kB / 403.5 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004059/0.3152, allocations: 378.3 kB / 403.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002368/0.3154, allocations: 111.1 kB / 403.9 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/0.3156, allocations: 143.5 kB / 404.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002282/0.3158, allocations: 167.3 kB / 404.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.045e-05/0.3159, allocations: 28 kB / 404.3 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.971e-05/0.3159, allocations: 32 kB / 404.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.773e-05/0.316, allocations: 63.77 kB / 404.4 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.3162, allocations: 167.2 kB / 404.5 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00045/0.3167, allocations: 373.6 kB / 404.9 MB, free: 4.152 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3167, allocations: 0 / 404.9 MB, free: 4.152 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3167, allocations: 4 kB / 404.9 MB, free: 4.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.3167, allocations: 0 / 404.9 MB, free: 4.148 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.001178/0.3179, allocations: 0.635 MB / 405.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.3179, allocations: 12.03 kB / 405.5 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.27e-05/0.318, allocations: 62.73 kB / 405.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.764e-05/0.3181, allocations: 40.67 kB / 405.6 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003978/0.3185, allocations: 275.6 kB / 405.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.494e-05/0.3185, allocations: 20.94 kB / 405.9 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.514e-05/0.3186, allocations: 28.38 kB / 405.9 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006193/0.3192, allocations: 277.4 kB / 406.2 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/0.3193, allocations: 7.922 kB / 406.2 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.016e-05/0.3193, allocations: 12 kB / 406.2 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.3193, allocations: 11.98 kB / 406.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006134/0.3199, allocations: 258.1 kB / 406.5 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.3213, allocations: 0.7915 MB / 407.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006278/0.3219, allocations: 359.8 kB / 407.6 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003693/0.3223, allocations: 196.8 kB / 407.8 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.3223, allocations: 8 kB / 407.8 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.3224, allocations: 38.56 kB / 407.9 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.503e-06/0.3224, allocations: 0 / 407.9 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.004418/0.3268, allocations: 1.984 MB / 409.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/0.3269, allocations: 59.97 kB / 409.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002086/0.3271, allocations: 191 kB / 410.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.727e-05/0.3271, allocations: 37.7 kB / 410.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.3272, allocations: 149.1 kB / 410.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.3274, allocations: 222.1 kB / 410.5 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/0.3276, allocations: 94.25 kB / 410.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.3278, allocations: 342.7 kB / 410.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003462/0.3281, allocations: 165 kB / 411.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003587/0.3285, allocations: 169 kB / 411.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007205/0.3292, allocations: 376 kB / 411.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.3292, allocations: 0 / 411.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009008/0.3301, allocations: 490.8 kB / 412.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3302, allocations: 8 kB / 412.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3302, allocations: 0 / 412.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.3302, allocations: 0 / 412.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004851/0.3307, allocations: 127.9 kB / 412.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.3307, allocations: 0 / 412.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002018/0.3309, allocations: 27.92 kB / 412.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.238e-05/0.331, allocations: 19.94 kB / 412.3 MB, free: 12.41 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.000175/0.3311, allocations: 157.7 kB / 412.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.996e-05/0.3312, allocations: 39.8 kB / 412.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.3314, allocations: 51.33 kB / 412.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.3314, allocations: 8 kB / 412.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.3314, allocations: 4 kB / 412.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.3314, allocations: 7.922 kB / 412.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.3335, allocations: 1.313 MB / 413.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.3335, allocations: 7.938 kB / 413.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004965/0.334, allocations: 123.8 kB / 414 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.074e-05/0.334, allocations: 8 kB / 414 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.702e-05/0.3341, allocations: 19.98 kB / 414 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.236e-05/0.3341, allocations: 11.94 kB / 414 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.3341, allocations: 4.375 kB / 414 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.3355, allocations: 0.8723 MB / 414.9 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.3357, allocations: 120.9 kB / 415 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.491e-05/0.3357, allocations: 16 kB / 415 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.336, allocations: 27.98 kB / 415.1 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.3361, allocations: 59.56 kB / 415.1 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.177e-05/0.3361, allocations: 20 kB / 415.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001397/0.3363, allocations: 136.6 kB / 415.3 MB, free: 9.211 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3363, allocations: 3.938 kB / 415.3 MB, free: 9.207 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000408/0.3367, allocations: 96 kB / 415.4 MB, free: 9.113 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.001824/0.3385, allocations: 1.443 MB / 416.8 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008844/0.3394, allocations: 446.7 kB / 417.3 MB, free: 7.152 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3394, allocations: 0 / 417.3 MB, free: 7.152 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004543/0.3399, allocations: 252.7 kB / 417.5 MB, free: 6.906 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006653/0.3406, allocations: 87.25 kB / 417.6 MB, free: 6.824 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005429/0.346, allocations: 3.691 MB / 421.3 MB, free: 2.938 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.3465, allocations: 0.7933 MB / 422.1 MB, free: 2.121 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002017/0.3467, allocations: 47.27 kB / 422.1 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.347, allocations: 123.4 kB / 422.2 MB, free: 1.957 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.347, allocations: 0 / 422.2 MB, free: 1.957 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03808/0.3851, allocations: 7.477 MB / 429.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.55/8.935, allocations: 7.172 kB / 429.7 MB, free: 10.61 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