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.001244/0.001244, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 247 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 71.86 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2462, allocations: 50.55 MB / 408.8 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003748/0.25, allocations: 2.676 MB / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.2513, allocations: 0.7248 MB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.2514, allocations: 12 kB / 412.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.2516, allocations: 51.44 kB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001898/0.2518, allocations: 99.06 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.2521, allocations: 91.88 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003864/0.2524, allocations: 386.3 kB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.2527, allocations: 115.1 kB / 413 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001473/0.2528, allocations: 147.4 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002271/0.2531, allocations: 179.2 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.311e-05/0.2531, allocations: 28 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.966e-05/0.2532, allocations: 32 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.314e-05/0.2533, allocations: 67.75 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001676/0.2534, allocations: 171.2 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004064/0.2539, allocations: 389.3 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2539, allocations: 0 / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2539, allocations: 0 / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.2539, allocations: 0 / 413.9 MB, free: 12.33 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.0009731/0.2549, allocations: 0.6311 MB / 414.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.2549, allocations: 12.02 kB / 414.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.859e-05/0.255, allocations: 62.73 kB / 414.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.212e-05/0.2551, allocations: 40.7 kB / 414.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.2554, allocations: 272.8 kB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.2554, allocations: 24.78 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.127e-05/0.2555, allocations: 31.95 kB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000427/0.2559, allocations: 262.1 kB / 415.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.2559, allocations: 0 / 415.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.256, allocations: 12 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.256, allocations: 4 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003988/0.2564, allocations: 230.5 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001244/0.2576, allocations: 0.804 MB / 416.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004954/0.2582, allocations: 350.8 kB / 416.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002643/0.2584, allocations: 177.5 kB / 416.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/0.2585, allocations: 4.375 kB / 416.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.2585, allocations: 42.94 kB / 416.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.432e-06/0.2585, allocations: 0 / 416.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.003714/0.2622, allocations: 1.909 MB / 418.8 MB, free: 7.227 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.2623, allocations: 63.91 kB / 418.8 MB, free: 7.152 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/0.2625, allocations: 211.7 kB / 419.1 MB, free: 6.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.576e-05/0.2625, allocations: 37.7 kB / 419.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.2627, allocations: 153.1 kB / 419.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/0.2628, allocations: 234 kB / 419.5 MB, free: 6.512 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.263, allocations: 90.34 kB / 419.6 MB, free: 6.418 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.2632, allocations: 346.8 kB / 419.9 MB, free: 6.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/0.2634, allocations: 141.3 kB / 420 MB, free: 5.934 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002445/0.2636, allocations: 153.8 kB / 420.2 MB, free: 5.781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005404/0.2642, allocations: 353.6 kB / 420.5 MB, free: 5.438 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.2642, allocations: 0 / 420.5 MB, free: 5.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006729/0.2649, allocations: 469 kB / 421 MB, free: 4.973 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.2649, allocations: 8 kB / 421 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.2649, allocations: 8 kB / 421 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.2649, allocations: 3.938 kB / 421 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004333/0.2654, allocations: 119.8 kB / 421.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.2654, allocations: 4 kB / 421.1 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.2656, allocations: 15.98 kB / 421.1 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.2656, allocations: 16 kB / 421.2 MB, free: 4.801 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.0001629/0.2658, allocations: 157.8 kB / 421.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.347e-05/0.2658, allocations: 43.7 kB / 421.4 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.266, allocations: 55.27 kB / 421.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.266, allocations: 8 kB / 421.4 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.266, allocations: 0 / 421.4 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.266, allocations: 3.984 kB / 421.4 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001777/0.2678, allocations: 1.286 MB / 422.7 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.79e-06/0.2678, allocations: 4 kB / 422.7 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004414/0.2682, allocations: 119.8 kB / 422.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.2683, allocations: 4 kB / 422.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.255e-05/0.2683, allocations: 16 kB / 422.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-05/0.2683, allocations: 11.94 kB / 422.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.2683, allocations: 4 kB / 422.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.2694, allocations: 0.8511 MB / 423.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.37e-05/0.2695, allocations: 120.8 kB / 423.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.049e-05/0.2696, allocations: 16 kB / 423.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.2698, allocations: 16 kB / 423.9 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.355e-05/0.2699, allocations: 56.25 kB / 423.9 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.978e-05/0.2699, allocations: 20 kB / 423.9 MB, free: 1.812 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001289/0.27, allocations: 152.7 kB / 424.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.27, allocations: 0 / 424.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003652/0.2704, allocations: 96 kB / 424.2 MB, free: 1.57 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.001342/0.2718, allocations: 1.403 MB / 425.6 MB, free: 84 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006353/0.2724, allocations: 411 kB / 426 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2724, allocations: 0 / 426 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.2728, allocations: 243.2 kB / 426.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006347/0.2734, allocations: 98.84 kB / 426.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004397/0.2778, allocations: 3.682 MB / 430 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/0.2782, allocations: 0.7973 MB / 430.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001823/0.2784, allocations: 47.33 kB / 430.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001942/0.2786, allocations: 127.3 kB / 431 MB, free: 10.47 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2786, allocations: 4 kB / 431 MB, free: 10.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03072/0.3094, allocations: 7.828 MB / 438.8 MB, free: 2.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.182/8.492, allocations: 15.16 kB / 438.8 MB, free: 2.77 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.1.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