Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001097/0.001097, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001227/0.001227, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2254, allocations: 50.54 MB / 408.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003605/0.229, allocations: 2.677 MB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001349/0.2304, allocations: 0.7209 MB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002246/0.2306, allocations: 7.938 kB / 412.1 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.2309, allocations: 51.5 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002572/0.2311, allocations: 107 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003079/0.2314, allocations: 91.83 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004347/0.2319, allocations: 390.3 kB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002284/0.2321, allocations: 119.1 kB / 412.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.2323, allocations: 143.5 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002286/0.2325, allocations: 171.2 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.253e-05/0.2326, allocations: 28 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.491e-05/0.2327, allocations: 32 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.882e-05/0.2327, allocations: 75.73 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001493/0.2329, allocations: 175.1 kB / 413.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003487/0.2332, allocations: 376.4 kB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2333, allocations: 4 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2333, allocations: 0 / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.2333, allocations: 0 / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0009819/0.2343, allocations: 0.6275 MB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.2343, allocations: 8.031 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.543e-05/0.2344, allocations: 66.72 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.813e-05/0.2345, allocations: 36.56 kB / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003801/0.2348, allocations: 272.6 kB / 414.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.2349, allocations: 24.78 kB / 414.9 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.286e-05/0.2349, allocations: 39.89 kB / 414.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004099/0.2353, allocations: 254.1 kB / 415.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.2354, allocations: 4 kB / 415.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.538e-05/0.2354, allocations: 8 kB / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.2354, allocations: 8 kB / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003771/0.2358, allocations: 238.4 kB / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.237, allocations: 0.8038 MB / 416.2 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004504/0.2375, allocations: 345.8 kB / 416.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002404/0.2377, allocations: 177.5 kB / 416.8 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.262e-05/0.2378, allocations: 4.375 kB / 416.8 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.2378, allocations: 34.94 kB / 416.8 MB, free: 9.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.583e-06/0.2378, allocations: 8 kB / 416.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.003497/0.2413, allocations: 1.903 MB / 418.7 MB, free: 7.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/0.2414, allocations: 55.97 kB / 418.8 MB, free: 7.199 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001951/0.2416, allocations: 212.4 kB / 419 MB, free: 6.984 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.054e-05/0.2416, allocations: 37.7 kB / 419 MB, free: 6.941 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.357e-05/0.2417, allocations: 145 kB / 419.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.2418, allocations: 224.7 kB / 419.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.242, allocations: 94.34 kB / 419.5 MB, free: 6.477 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.2421, allocations: 346.8 kB / 419.8 MB, free: 6.129 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002348/0.2423, allocations: 145.2 kB / 419.9 MB, free: 5.988 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.2426, allocations: 153.8 kB / 420.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005012/0.2431, allocations: 361.5 kB / 420.4 MB, free: 5.484 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.2431, allocations: 0 / 420.4 MB, free: 5.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006515/0.2438, allocations: 457 kB / 420.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.2438, allocations: 4 kB / 420.9 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.2438, allocations: 0 / 420.9 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.2438, allocations: 7.938 kB / 420.9 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/0.2443, allocations: 123.8 kB / 421 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.2443, allocations: 4 kB / 421 MB, free: 4.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000168/0.2444, allocations: 12 kB / 421 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.671e-05/0.2445, allocations: 19.98 kB / 421.1 MB, free: 4.863 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 (71): * Single equations (assignments): 71 * 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.0001575/0.2447, allocations: 161.7 kB / 421.2 MB, free: 4.695 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.306e-05/0.2447, allocations: 35.53 kB / 421.2 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.2448, allocations: 55.27 kB / 421.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.2448, allocations: 4 kB / 421.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.2449, allocations: 8 kB / 421.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.2449, allocations: 0 / 421.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.2465, allocations: 1.294 MB / 422.6 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.2465, allocations: 4 kB / 422.6 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004464/0.247, allocations: 119.8 kB / 422.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.007e-06/0.247, allocations: 8 kB / 422.7 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.491e-05/0.247, allocations: 19.98 kB / 422.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.405e-06/0.2471, allocations: 8 kB / 422.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/0.2471, allocations: 11.88 kB / 422.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.2481, allocations: 0.839 MB / 423.6 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.753e-05/0.2482, allocations: 112.6 kB / 423.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.506e-05/0.2483, allocations: 20.03 kB / 423.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.2485, allocations: 20 kB / 423.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.738e-05/0.2486, allocations: 48.27 kB / 423.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-05/0.2486, allocations: 23.98 kB / 423.8 MB, free: 1.875 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.2487, allocations: 156.5 kB / 424 MB, free: 1.723 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2488, allocations: 0 / 424 MB, free: 1.723 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003803/0.2491, allocations: 100 kB / 424.1 MB, free: 1.625 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 (65): * Single equations (assignments): 65 * 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.001198/0.2503, allocations: 1.391 MB / 425.5 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006144/0.251, allocations: 419 kB / 425.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.251, allocations: 0 / 425.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003194/0.2513, allocations: 238.2 kB / 426.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006616/0.252, allocations: 101.6 kB / 426.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004122/0.2561, allocations: 3.664 MB / 429.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.2565, allocations: 0.7973 MB / 430.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001846/0.2566, allocations: 47.33 kB / 430.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001834/0.2568, allocations: 123.4 kB / 430.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2568, allocations: 4 kB / 430.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03029/0.2871, allocations: 7.964 MB / 438.8 MB, free: 2.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.978/8.265, allocations: 11.17 kB / 438.8 MB, free: 2.715 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches