Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0008882/0.0008884, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.227/1.227, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006703/0.0006703, allocations: 82.42 kB / 271.2 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002733/0.0002734, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.1819, allocations: 47.57 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.001801/0.1838, allocations: 2.173 MB / 377.4 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004549/0.1842, allocations: 370.2 kB / 377.7 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.1844, allocations: 5.406 kB / 377.7 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.693e-05/0.1845, allocations: 32.61 kB / 377.8 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.1846, allocations: 86.23 kB / 377.8 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002054/0.1848, allocations: 70.33 kB / 377.9 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000247/0.1851, allocations: 350.3 kB / 378.3 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.1852, allocations: 91.45 kB / 378.3 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.1853, allocations: 117.5 kB / 378.5 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.1855, allocations: 149.1 kB / 378.6 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.613e-05/0.1855, allocations: 15.34 kB / 378.6 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.424e-05/0.1856, allocations: 15.91 kB / 378.6 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.666e-05/0.1856, allocations: 49.55 kB / 378.7 MB, free: 42.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.1857, allocations: 172.9 kB / 378.8 MB, free: 42.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001753/0.1859, allocations: 256.8 kB / 379.1 MB, free: 42.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1859, allocations: 0 / 379.1 MB, free: 42.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1859, allocations: 0.875 kB / 379.1 MB, free: 42.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1859, allocations: 0 / 379.1 MB, free: 42.46 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.0008092/0.1868, allocations: 0.6017 MB / 379.7 MB, free: 41.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.1868, allocations: 9.531 kB / 379.7 MB, free: 41.94 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.993e-05/0.1869, allocations: 67.25 kB / 379.8 MB, free: 41.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.207e-05/0.1869, allocations: 38.12 kB / 379.8 MB, free: 41.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.1871, allocations: 264.5 kB / 380.1 MB, free: 41.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.1872, allocations: 24.75 kB / 380.1 MB, free: 41.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.452e-05/0.1872, allocations: 26.97 kB / 380.1 MB, free: 41.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004887/0.1877, allocations: 283.9 kB / 380.4 MB, free: 41.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.1877, allocations: 9.328 kB / 380.4 MB, free: 41.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.42e-05/0.1878, allocations: 14.66 kB / 380.4 MB, free: 41.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.1878, allocations: 6.188 kB / 380.4 MB, free: 41.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005125/0.1883, allocations: 282.5 kB / 380.7 MB, free: 41.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.1893, allocations: 0.8016 MB / 381.5 MB, free: 40.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005104/0.1898, allocations: 362 kB / 381.9 MB, free: 40.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000314/0.1901, allocations: 205 kB / 382.1 MB, free: 40.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.645e-05/0.1902, allocations: 4.625 kB / 382.1 MB, free: 40.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.509e-05/0.1902, allocations: 40.66 kB / 382.1 MB, free: 40.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.463e-06/0.1902, allocations: 0 / 382.1 MB, free: 40.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.003733/0.194, allocations: 2.034 MB / 384.1 MB, free: 39.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.068e-05/0.194, allocations: 62.38 kB / 384.2 MB, free: 38.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.1941, allocations: 194.1 kB / 384.4 MB, free: 38.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.863e-05/0.1942, allocations: 39.91 kB / 384.4 MB, free: 38.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.444e-05/0.1943, allocations: 147.9 kB / 384.6 MB, free: 38.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.833e-05/0.1943, allocations: 213.3 kB / 384.8 MB, free: 38.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.137e-05/0.1944, allocations: 10.84 kB / 384.8 MB, free: 38.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.927e-05/0.1944, allocations: 350 kB / 385.1 MB, free: 38.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002995/0.1947, allocations: 171.1 kB / 385.3 MB, free: 38.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002914/0.195, allocations: 174.1 kB / 385.5 MB, free: 37.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006025/0.1956, allocations: 389.9 kB / 385.9 MB, free: 37.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1957, allocations: 0 / 385.9 MB, free: 37.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0006618/0.1963, allocations: 498.6 kB / 386.3 MB, free: 37.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.1963, allocations: 4 kB / 386.3 MB, free: 37.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1964, allocations: 0 / 386.3 MB, free: 37.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1964, allocations: 4 kB / 386.3 MB, free: 37.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004046/0.1968, allocations: 127.8 kB / 386.5 MB, free: 37.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.1968, allocations: 4 kB / 386.5 MB, free: 37.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/0.197, allocations: 39.91 kB / 386.5 MB, free: 37.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.197, allocations: 16 kB / 386.5 MB, free: 37.02 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.0001156/0.1971, allocations: 166.6 kB / 386.7 MB, free: 36.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.95e-05/0.1972, allocations: 31.62 kB / 386.7 MB, free: 36.81 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.806e-05/0.1973, allocations: 47.33 kB / 386.8 MB, free: 36.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1973, allocations: 8 kB / 386.8 MB, free: 36.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.1973, allocations: 3.984 kB / 386.8 MB, free: 36.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.1973, allocations: 7.922 kB / 386.8 MB, free: 36.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/0.1988, allocations: 1.329 MB / 388.1 MB, free: 35.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.1988, allocations: 4 kB / 388.1 MB, free: 35.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004143/0.1992, allocations: 136.3 kB / 388.3 MB, free: 35.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-06/0.1992, allocations: 4 kB / 388.3 MB, free: 35.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.754e-05/0.1993, allocations: 16 kB / 388.3 MB, free: 35.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.1993, allocations: 11.98 kB / 388.3 MB, free: 35.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.1993, allocations: 7.938 kB / 388.3 MB, free: 35.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009737/0.2003, allocations: 0.8902 MB / 389.2 MB, free: 34.17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.361e-05/0.2003, allocations: 124.6 kB / 389.3 MB, free: 34.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/0.2004, allocations: 16 kB / 389.3 MB, free: 34.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.2006, allocations: 31.98 kB / 389.4 MB, free: 33.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.583e-05/0.2007, allocations: 55.81 kB / 389.4 MB, free: 33.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.512e-05/0.2007, allocations: 23.94 kB / 389.4 MB, free: 33.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.886e-05/0.2008, allocations: 140.4 kB / 389.6 MB, free: 33.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2008, allocations: 0 / 389.6 MB, free: 33.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003266/0.2011, allocations: 100 kB / 389.7 MB, free: 33.67 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.001131/0.2023, allocations: 1.455 MB / 391.1 MB, free: 32.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006223/0.2029, allocations: 446.8 kB / 391.6 MB, free: 31.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.2029, allocations: 4 kB / 391.6 MB, free: 31.69 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003338/0.2032, allocations: 260.8 kB / 391.8 MB, free: 31.44 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006268/0.2039, allocations: 78.91 kB / 391.9 MB, free: 31.36 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002704/0.2066, allocations: 2.451 MB / 394.3 MB, free: 28.81 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001588/0.2068, allocations: 0.7974 MB / 395.1 MB, free: 27.99 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/0.2069, allocations: 123.4 kB / 395.3 MB, free: 27.87 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.207, allocations: 0 / 395.3 MB, free: 27.87 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.714/2.921, allocations: 5.062 MB / 400.3 MB, free: 22.79 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches