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.001071/0.001071, 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.001338/0.001338, 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.282/1.282, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001089/0.001089, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2234, allocations: 50.55 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.005207/0.2286, allocations: 2.676 MB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.2304, allocations: 0.7248 MB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001975/0.2306, allocations: 4 kB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002255/0.2309, allocations: 55.44 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002937/0.2312, allocations: 103 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003787/0.2316, allocations: 87.89 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004912/0.2321, allocations: 390.3 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000299/0.2324, allocations: 115.1 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002349/0.2327, allocations: 151.5 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002471/0.2329, allocations: 171.2 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.493e-05/0.233, allocations: 28 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.639e-05/0.2331, allocations: 32 kB / 413.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.026e-05/0.2331, allocations: 75.75 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002189/0.2334, allocations: 171.2 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004833/0.2339, allocations: 380.3 kB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2339, allocations: 4 kB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2339, allocations: 0 / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.2339, allocations: 0 / 413.9 MB, free: 12.39 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.00136/0.2353, allocations: 0.6236 MB / 414.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.2353, allocations: 8.031 kB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.074e-05/0.2354, allocations: 70.72 kB / 414.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.917e-05/0.2355, allocations: 36.5 kB / 414.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004884/0.236, allocations: 272.6 kB / 414.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.774e-05/0.2361, allocations: 24.78 kB / 414.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.016e-05/0.2362, allocations: 39.89 kB / 414.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005021/0.2367, allocations: 254.1 kB / 415.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.2367, allocations: 4 kB / 415.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.82e-05/0.2368, allocations: 12 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.2368, allocations: 4 kB / 415.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005895/0.2374, allocations: 234.5 kB / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.2392, allocations: 0.7959 MB / 416.2 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006935/0.2399, allocations: 351.5 kB / 416.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003362/0.2402, allocations: 177.5 kB / 416.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.883e-05/0.2403, allocations: 4.375 kB / 416.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.2403, allocations: 42.94 kB / 416.8 MB, free: 9.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.425e-06/0.2404, allocations: 0 / 416.8 MB, free: 9.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.00539/0.2457, allocations: 1.903 MB / 418.7 MB, free: 7.297 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.2458, allocations: 63.97 kB / 418.8 MB, free: 7.223 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.2461, allocations: 208.3 kB / 419 MB, free: 7.012 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.097e-05/0.2461, allocations: 37.7 kB / 419 MB, free: 6.969 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.2463, allocations: 149 kB / 419.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002184/0.2465, allocations: 228.7 kB / 419.4 MB, free: 6.594 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002149/0.2467, allocations: 94.34 kB / 419.5 MB, free: 6.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.2468, allocations: 342.8 kB / 419.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002214/0.2471, allocations: 149.2 kB / 419.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.2473, allocations: 153.8 kB / 420.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004666/0.2478, allocations: 349.6 kB / 420.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2478, allocations: 0 / 420.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0005948/0.2484, allocations: 460.9 kB / 420.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.2484, allocations: 8 kB / 420.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.2484, allocations: 0 / 420.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.2484, allocations: 3.938 kB / 420.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000422/0.2489, allocations: 119.8 kB / 421 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.2489, allocations: 4 kB / 421 MB, free: 4.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001585/0.249, allocations: 16 kB / 421 MB, free: 4.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.146e-05/0.2491, allocations: 23.98 kB / 421.1 MB, free: 4.887 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.0001405/0.2492, allocations: 153.8 kB / 421.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.796e-05/0.2493, allocations: 39.53 kB / 421.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.2494, allocations: 55.27 kB / 421.3 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.2494, allocations: 11.94 kB / 421.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.2494, allocations: 3.938 kB / 421.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2494, allocations: 0 / 421.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.2511, allocations: 1.289 MB / 422.6 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.2511, allocations: 4.562 kB / 422.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004322/0.2515, allocations: 119.8 kB / 422.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.2515, allocations: 4 kB / 422.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.268e-05/0.2516, allocations: 23.98 kB / 422.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.2516, allocations: 7.938 kB / 422.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.2516, allocations: 8 kB / 422.8 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009035/0.2525, allocations: 0.835 MB / 423.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.134e-05/0.2526, allocations: 116.6 kB / 423.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.62e-05/0.2526, allocations: 23.97 kB / 423.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.2528, allocations: 20 kB / 423.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.186e-05/0.2529, allocations: 48.27 kB / 423.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.077e-05/0.253, allocations: 32.08 kB / 423.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001049/0.2531, allocations: 148.5 kB / 424 MB, free: 1.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2531, allocations: 0 / 424 MB, free: 1.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003512/0.2534, allocations: 96 kB / 424.1 MB, free: 1.656 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.001116/0.2546, allocations: 1.403 MB / 425.5 MB, free: 172 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005733/0.2551, allocations: 411 kB / 425.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2552, allocations: 0 / 425.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003044/0.2555, allocations: 242.2 kB / 426.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006115/0.2561, allocations: 96.02 kB / 426.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003746/0.2598, allocations: 3.668 MB / 429.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.2601, allocations: 0.7973 MB / 430.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001632/0.2603, allocations: 51.33 kB / 430.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001727/0.2605, allocations: 123.4 kB / 430.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2605, allocations: 0 / 430.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9563/1.217, allocations: 7.954 MB / 438.8 MB, free: 2.762 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.82, allocations: 15.28 kB / 438.8 MB, free: 2.75 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