Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_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.00207/0.00207, allocations: 102.6 kB / 17.58 MB, free: 5.426 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.002425/0.002425, allocations: 187.9 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.818/2.818, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001863, allocations: 52.14 kB / 280.8 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.1699, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.008095/0.1781, allocations: 2.588 MB / 330 MB, free: 1.781 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001713/0.1799, allocations: 370.8 kB / 330.3 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004743/0.1804, allocations: 11.94 kB / 330.3 MB, free: 1.406 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003422/0.1808, allocations: 55.5 kB / 330.4 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005719/0.1814, allocations: 87.12 kB / 330.5 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005696/0.182, allocations: 91.81 kB / 330.6 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007796/0.1828, allocations: 386.3 kB / 330.9 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003745/0.1832, allocations: 119 kB / 331.1 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003869/0.1836, allocations: 135.6 kB / 331.2 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003891/0.184, allocations: 163.3 kB / 331.4 MB, free: 396 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.1841, allocations: 28 kB / 331.4 MB, free: 368 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001219/0.1843, allocations: 36 kB / 331.4 MB, free: 332 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001672/0.1845, allocations: 71.75 kB / 331.5 MB, free: 260 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003248/0.1848, allocations: 171.1 kB / 331.7 MB, free: 88 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006517/0.1855, allocations: 362.8 kB / 332 MB, free: 15.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.456e-05/0.1855, allocations: 4 kB / 332 MB, free: 15.72 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.518e-06/0.1856, allocations: 0 / 332 MB, free: 15.72 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.804e-05/0.1856, allocations: 0 / 332 MB, free: 15.72 MB / 286.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.002142/0.1878, allocations: 0.6198 MB / 332.6 MB, free: 15.05 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.818e-05/0.1879, allocations: 12.03 kB / 332.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001369/0.188, allocations: 66.56 kB / 332.7 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001432/0.1882, allocations: 32.56 kB / 332.7 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005573/0.1888, allocations: 263.6 kB / 333 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.582e-05/0.1889, allocations: 24.94 kB / 333 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.644e-05/0.189, allocations: 32.38 kB / 333.1 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.1901, allocations: 277.3 kB / 333.3 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.856e-05/0.1901, allocations: 7.844 kB / 333.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.044e-05/0.1902, allocations: 12 kB / 333.3 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.32e-05/0.1902, allocations: 4 kB / 333.3 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.1914, allocations: 270.1 kB / 333.6 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002413/0.1938, allocations: 0.8068 MB / 334.4 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.1951, allocations: 346.8 kB / 334.8 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006498/0.1958, allocations: 188.8 kB / 334.9 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.095e-05/0.1958, allocations: 12 kB / 335 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.591e-05/0.196, allocations: 42.48 kB / 335 MB, free: 12.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 4.128e-06/0.196, allocations: 0 / 335 MB, free: 12.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.008551/0.2045, allocations: 1.957 MB / 336.9 MB, free: 10.52 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.2047, allocations: 63.97 kB / 337 MB, free: 10.45 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003754/0.2052, allocations: 198.8 kB / 337.2 MB, free: 10.24 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.485e-05/0.2053, allocations: 41.64 kB / 337.2 MB, free: 10.19 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.2054, allocations: 148.9 kB / 337.4 MB, free: 10.04 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003053/0.2058, allocations: 216.8 kB / 337.6 MB, free: 9.824 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003548/0.2061, allocations: 94.23 kB / 337.7 MB, free: 9.723 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002294/0.2064, allocations: 346.8 kB / 338 MB, free: 9.375 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006574/0.2071, allocations: 169 kB / 338.2 MB, free: 9.211 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006684/0.2078, allocations: 169 kB / 338.4 MB, free: 9.047 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001356/0.2091, allocations: 372 kB / 338.7 MB, free: 8.68 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.2092, allocations: 0 / 338.7 MB, free: 8.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001828/0.211, allocations: 486.7 kB / 339.2 MB, free: 8.199 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.619e-05/0.2111, allocations: 8 kB / 339.2 MB, free: 8.191 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.2111, allocations: 0 / 339.2 MB, free: 8.191 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.101e-05/0.2112, allocations: 0 / 339.2 MB, free: 8.191 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009604/0.2122, allocations: 127.8 kB / 339.3 MB, free: 8.066 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.727e-05/0.2122, allocations: 0 / 339.3 MB, free: 8.066 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005468/0.2128, allocations: 27.92 kB / 339.4 MB, free: 8.039 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.467e-05/0.2129, allocations: 19.98 kB / 339.4 MB, free: 8.02 MB / 286.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.0003765/0.2133, allocations: 165.7 kB / 339.5 MB, free: 7.848 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.2135, allocations: 31.62 kB / 339.6 MB, free: 7.816 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002181/0.2137, allocations: 43.34 kB / 339.6 MB, free: 7.777 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/0.2137, allocations: 8 kB / 339.6 MB, free: 7.77 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-05/0.2138, allocations: 3.984 kB / 339.6 MB, free: 7.766 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.802e-05/0.2138, allocations: 7.938 kB / 339.6 MB, free: 7.758 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004478/0.2183, allocations: 1.321 MB / 341 MB, free: 6.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.701e-05/0.2183, allocations: 4 kB / 341 MB, free: 6.316 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009896/0.2193, allocations: 131.7 kB / 341.1 MB, free: 6.188 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.582e-05/0.2194, allocations: 8 kB / 341.1 MB, free: 6.18 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.489e-05/0.2195, allocations: 16.56 kB / 341.1 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.948e-05/0.2195, allocations: 4 kB / 341.1 MB, free: 6.16 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.614e-05/0.2195, allocations: 19.92 kB / 341.1 MB, free: 6.141 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002721/0.2223, allocations: 0.8706 MB / 342 MB, free: 5.199 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003321/0.2226, allocations: 112.7 kB / 342.1 MB, free: 5.07 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.2228, allocations: 20.03 kB / 342.1 MB, free: 5.051 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006006/0.2234, allocations: 27.98 kB / 342.2 MB, free: 5.023 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/0.2236, allocations: 51.77 kB / 342.2 MB, free: 4.973 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.219e-05/0.2237, allocations: 23.98 kB / 342.2 MB, free: 4.949 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003139/0.224, allocations: 144.4 kB / 342.4 MB, free: 4.809 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.2241, allocations: 4 kB / 342.4 MB, free: 4.805 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0009016/0.225, allocations: 100 kB / 342.5 MB, free: 4.707 MB / 286.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.00321/0.2283, allocations: 1.431 MB / 343.9 MB, free: 3.195 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.2303, allocations: 462.7 kB / 344.4 MB, free: 2.738 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/0.2303, allocations: 3.938 kB / 344.4 MB, free: 2.734 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.2314, allocations: 264.6 kB / 344.6 MB, free: 2.477 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001751/0.2332, allocations: 77.27 kB / 344.7 MB, free: 2.402 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01293/0.2462, allocations: 3.675 MB / 348.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001268/0.2475, allocations: 0.7894 MB / 349.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005152/0.2481, allocations: 43.27 kB / 349.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003783/0.2485, allocations: 123.4 kB / 349.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of SimCode: time 3.557e-06/0.2485, allocations: 0 / 349.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05232/0.3009, allocations: 7.336 MB / 356.7 MB, free: 6.152 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.04, allocations: 4.297 kB / 356.7 MB, free: 6.148 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches