Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001066/0.001066, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 226.6 MB / 244.3 MB, free: 8.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006912/0.0006912, allocations: 96.64 kB / 296.4 MB, free: 7.039 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002045/0.0002045, allocations: 4 kB / 356.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1933/0.1935, allocations: 51.3 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.001778/0.1954, allocations: 2.191 MB / 409.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000498/0.1959, allocations: 371.7 kB / 410 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.196, allocations: 11.94 kB / 410.1 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001019/0.1961, allocations: 27.77 kB / 410.1 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001098/0.1962, allocations: 86.55 kB / 410.2 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.1964, allocations: 67.86 kB / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002083/0.1967, allocations: 348.2 kB / 410.6 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.1968, allocations: 79.84 kB / 410.7 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.503e-05/0.1969, allocations: 123.5 kB / 410.8 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.1971, allocations: 139.4 kB / 410.9 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.137e-05/0.1971, allocations: 16 kB / 410.9 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.977e-05/0.1972, allocations: 16.69 kB / 410.9 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.991e-05/0.1972, allocations: 51.81 kB / 411 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.206e-05/0.1972, allocations: 89.05 kB / 411.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.1974, allocations: 264.2 kB / 411.3 MB, free: 24.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1974, allocations: 0 / 411.3 MB, free: 24.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1974, allocations: 0 / 411.3 MB, free: 24.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.1974, allocations: 0 / 411.3 MB, free: 24.01 MB / 298.7 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.0007801/0.1982, allocations: 0.6002 MB / 411.9 MB, free: 23.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.945e-05/0.1983, allocations: 8.031 kB / 411.9 MB, free: 23.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.482e-05/0.1983, allocations: 35.62 kB / 412 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001981/0.1985, allocations: 246.5 kB / 412.2 MB, free: 23.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.1986, allocations: 24.56 kB / 412.2 MB, free: 23.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.02e-05/0.1986, allocations: 31.91 kB / 412.3 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004841/0.1991, allocations: 284.7 kB / 412.6 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.1991, allocations: 11.98 kB / 412.6 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.305e-05/0.1991, allocations: 8 kB / 412.6 MB, free: 22.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.1992, allocations: 11.98 kB / 412.6 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000494/0.1997, allocations: 282.1 kB / 412.9 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000932/0.2006, allocations: 0.7952 MB / 413.7 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000466/0.2011, allocations: 371.3 kB / 414 MB, free: 21.17 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002792/0.2014, allocations: 208.6 kB / 414.2 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.2014, allocations: 11.98 kB / 414.2 MB, free: 20.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/0.2014, allocations: 42.5 kB / 414.3 MB, free: 20.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.323e-06/0.2014, allocations: 0 / 414.3 MB, free: 20.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.003428/0.2049, allocations: 2.019 MB / 416.3 MB, free: 18.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.306e-05/0.2049, allocations: 63.97 kB / 416.4 MB, free: 18.72 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.205, allocations: 190.9 kB / 416.5 MB, free: 18.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.205, allocations: 45.62 kB / 416.6 MB, free: 18.47 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.075e-05/0.2051, allocations: 145.1 kB / 416.7 MB, free: 18.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.295e-05/0.2052, allocations: 212.8 kB / 416.9 MB, free: 18.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.879e-05/0.2052, allocations: 12 kB / 417 MB, free: 18.1 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.942e-05/0.2053, allocations: 346.8 kB / 417.3 MB, free: 17.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002754/0.2056, allocations: 165 kB / 417.5 MB, free: 17.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002635/0.2058, allocations: 184.9 kB / 417.6 MB, free: 17.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002878/0.2061, allocations: 182.2 kB / 417.8 MB, free: 17.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.2061, allocations: 7.938 kB / 417.8 MB, free: 17.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0006523/0.2068, allocations: 490.7 kB / 418.3 MB, free: 16.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.2068, allocations: 8 kB / 418.3 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.2068, allocations: 4 kB / 418.3 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.2068, allocations: 0 / 418.3 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004364/0.2073, allocations: 127.8 kB / 418.4 MB, free: 16.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.2073, allocations: 0 / 418.4 MB, free: 16.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001864/0.2075, allocations: 31.98 kB / 418.5 MB, free: 16.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.569e-05/0.2075, allocations: 23.98 kB / 418.5 MB, free: 16.55 MB / 298.7 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 (elastoGap1.contact,elastoGap2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001142/0.2076, allocations: 161.7 kB / 418.6 MB, free: 16.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.067e-05/0.2077, allocations: 35.53 kB / 418.7 MB, free: 16.35 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.928e-05/0.2078, allocations: 51.33 kB / 418.7 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2078, allocations: 4 kB / 418.7 MB, free: 16.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.2078, allocations: 0 / 418.7 MB, free: 16.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2078, allocations: 0 / 418.7 MB, free: 16.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.2092, allocations: 1.34 MB / 420.1 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.2092, allocations: 8.125 kB / 420.1 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004312/0.2097, allocations: 127.8 kB / 420.2 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.742e-06/0.2097, allocations: 8 kB / 420.2 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/0.2097, allocations: 20 kB / 420.2 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.2097, allocations: 8 kB / 420.2 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.2098, allocations: 11.89 kB / 420.3 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009649/0.2107, allocations: 0.9019 MB / 421.2 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.219e-05/0.2108, allocations: 108.7 kB / 421.3 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/0.2108, allocations: 24.03 kB / 421.3 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002577/0.2111, allocations: 27.98 kB / 421.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.41e-05/0.2111, allocations: 51.84 kB / 421.4 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.2112, allocations: 23.98 kB / 421.4 MB, free: 13.44 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.04e-05/0.2113, allocations: 140.6 kB / 421.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2113, allocations: 0 / 421.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003225/0.2116, allocations: 96 kB / 421.6 MB, free: 13.21 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.768e-05/0.2117, allocations: 111.1 kB / 421.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006274/0.2123, allocations: 450.6 kB / 422.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2123, allocations: 8 kB / 422.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003391/0.2127, allocations: 256.7 kB / 422.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005455/0.2132, allocations: 102.4 kB / 422.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.2144, allocations: 1.23 MB / 423.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001587/0.2146, allocations: 0.7896 MB / 424.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.2147, allocations: 39.42 kB / 424.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2147, allocations: 0 / 424.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of Templates: time 0.00459/0.2193, allocations: 4.503 MB / 429.1 MB, free: 5.637 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches