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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009986/0.0009985, allocations: 195.9 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 226.5 MB / 244.7 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007493/0.0007493, allocations: 99.53 kB / 296.7 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002243/0.0002245, allocations: 4 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1945/0.1948, allocations: 51.29 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.001934/0.1967, allocations: 2.199 MB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007349/0.1975, allocations: 370.8 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002151/0.1977, allocations: 9.156 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.1979, allocations: 39.69 kB / 410.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000215/0.1981, allocations: 82.5 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002937/0.1984, allocations: 63.92 kB / 410.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002755/0.1987, allocations: 350.4 kB / 411.2 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001773/0.1989, allocations: 99.27 kB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.199, allocations: 111.6 kB / 411.4 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.1992, allocations: 147.4 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.318e-05/0.1992, allocations: 17.06 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.044e-05/0.1993, allocations: 16 kB / 411.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.85e-05/0.1993, allocations: 55.75 kB / 411.7 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.1994, allocations: 168.7 kB / 411.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002172/0.1996, allocations: 264.5 kB / 412.1 MB, free: 23.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1997, allocations: 0 / 412.1 MB, free: 23.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1997, allocations: 0 / 412.1 MB, free: 23.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1997, allocations: 0 / 412.1 MB, free: 23.7 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.0008156/0.2005, allocations: 0.5965 MB / 412.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.2006, allocations: 12.02 kB / 412.7 MB, free: 23.04 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.807e-05/0.2006, allocations: 58.73 kB / 412.7 MB, free: 22.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.918e-05/0.2007, allocations: 36.56 kB / 412.8 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.2009, allocations: 263.6 kB / 413 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.749e-05/0.2009, allocations: 20.94 kB / 413.1 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.149e-05/0.201, allocations: 32.38 kB / 413.1 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004683/0.2014, allocations: 281.4 kB / 413.4 MB, free: 22.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.2015, allocations: 11.84 kB / 413.4 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.398e-05/0.2015, allocations: 8 kB / 413.4 MB, free: 22.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.2015, allocations: 8 kB / 413.4 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004817/0.202, allocations: 282.1 kB / 413.7 MB, free: 22.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009759/0.203, allocations: 0.799 MB / 414.5 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004819/0.2035, allocations: 372.3 kB / 414.8 MB, free: 20.78 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003028/0.2038, allocations: 200.7 kB / 415 MB, free: 20.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.2038, allocations: 11.98 kB / 415 MB, free: 20.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.519e-05/0.2039, allocations: 38.56 kB / 415.1 MB, free: 20.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.683e-06/0.2039, allocations: 0 / 415.1 MB, free: 20.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.003527/0.2074, allocations: 2.036 MB / 417.1 MB, free: 18.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.46e-05/0.2074, allocations: 59.97 kB / 417.2 MB, free: 18.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.2076, allocations: 195 kB / 417.4 MB, free: 18.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.2076, allocations: 37.7 kB / 417.4 MB, free: 18.08 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.489e-05/0.2077, allocations: 141.1 kB / 417.5 MB, free: 17.94 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.766e-05/0.2078, allocations: 220.7 kB / 417.8 MB, free: 17.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.193e-05/0.2078, allocations: 12 kB / 417.8 MB, free: 17.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.452e-05/0.2079, allocations: 346.7 kB / 418.1 MB, free: 17.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/0.2082, allocations: 173 kB / 418.3 MB, free: 17.19 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002717/0.2084, allocations: 176.9 kB / 418.4 MB, free: 17.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005793/0.209, allocations: 388 kB / 418.8 MB, free: 16.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.209, allocations: 0 / 418.8 MB, free: 16.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0006916/0.2097, allocations: 498.6 kB / 419.3 MB, free: 16.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.2098, allocations: 8 kB / 419.3 MB, free: 16.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2098, allocations: 3.984 kB / 419.3 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.2098, allocations: 0 / 419.3 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004245/0.2102, allocations: 127.8 kB / 419.4 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.2102, allocations: 0 / 419.4 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.2104, allocations: 35.92 kB / 419.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.777e-05/0.2105, allocations: 20 kB / 419.5 MB, free: 15.95 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.0001218/0.2106, allocations: 161.8 kB / 419.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.997e-05/0.2106, allocations: 31.62 kB / 419.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.231e-05/0.2107, allocations: 47.34 kB / 419.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.2107, allocations: 8 kB / 419.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2108, allocations: 0 / 419.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.2108, allocations: 7.922 kB / 419.8 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.2123, allocations: 1.336 MB / 421.1 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.2123, allocations: 4 kB / 421.1 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004353/0.2128, allocations: 127.8 kB / 421.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.2128, allocations: 8.5 kB / 421.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/0.2128, allocations: 19.98 kB / 421.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.963e-06/0.2128, allocations: 15.94 kB / 421.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.2129, allocations: 4 kB / 421.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.2139, allocations: 0.9018 MB / 422.2 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.691e-05/0.2139, allocations: 112.7 kB / 422.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.253e-05/0.214, allocations: 16 kB / 422.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.2142, allocations: 39.97 kB / 422.3 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.006e-05/0.2143, allocations: 47.83 kB / 422.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.614e-05/0.2144, allocations: 24 kB / 422.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.366e-05/0.2144, allocations: 136.6 kB / 422.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2144, allocations: 7.938 kB / 422.5 MB, free: 12.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003323/0.2148, allocations: 92 kB / 422.6 MB, free: 12.61 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 0.001235/0.216, allocations: 1.455 MB / 424.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006484/0.2167, allocations: 446.8 kB / 424.5 MB, free: 10.63 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.2167, allocations: 0 / 424.5 MB, free: 10.63 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003431/0.217, allocations: 267.5 kB / 424.8 MB, free: 10.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006529/0.2177, allocations: 89.61 kB / 424.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.2205, allocations: 2.44 MB / 427.3 MB, free: 7.742 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001677/0.2207, allocations: 0.7974 MB / 428.1 MB, free: 6.918 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.2209, allocations: 119.4 kB / 428.2 MB, free: 6.801 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.2209, allocations: 0 / 428.2 MB, free: 6.801 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.67/2.891, allocations: 5.064 MB / 433.3 MB, free: 1.734 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/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