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: translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap") translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001458/0.001458, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002216/0.002217, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001196, allocations: 63.89 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2558, allocations: 50.54 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003368/0.2592, allocations: 2.666 MB / 411.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.2603, allocations: 0.7248 MB / 412.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.2604, allocations: 7.938 kB / 412.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.2605, allocations: 51.5 kB / 412.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001803/0.2607, allocations: 107.1 kB / 412.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.261, allocations: 99.75 kB / 412.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003322/0.2613, allocations: 386.3 kB / 413.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.2615, allocations: 119.1 kB / 413.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.2617, allocations: 143.5 kB / 413.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001977/0.2619, allocations: 171.2 kB / 413.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.138e-05/0.262, allocations: 36 kB / 413.7 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.697e-05/0.262, allocations: 28 kB / 413.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.96e-05/0.2621, allocations: 75.75 kB / 413.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.2622, allocations: 167.2 kB / 414 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003248/0.2626, allocations: 379.8 kB / 414.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2626, allocations: 0 / 414.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2626, allocations: 0 / 414.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.2626, allocations: 0 / 414.4 MB, free: 12.45 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.0009382/0.2636, allocations: 0.6275 MB / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.2636, allocations: 12.03 kB / 415 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.354e-05/0.2637, allocations: 36.47 kB / 415 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.264, allocations: 272.7 kB / 415.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.264, allocations: 29.03 kB / 415.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.816e-05/0.2641, allocations: 35.84 kB / 415.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004214/0.2645, allocations: 254.1 kB / 415.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.2646, allocations: 0 / 415.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.2646, allocations: 19.98 kB / 415.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.2646, allocations: 4 kB / 415.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003785/0.265, allocations: 230.4 kB / 415.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.2662, allocations: 0.796 MB / 416.7 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004685/0.2667, allocations: 339.5 kB / 417 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002577/0.267, allocations: 185.5 kB / 417.2 MB, free: 9.477 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.419e-05/0.267, allocations: 8.359 kB / 417.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.267, allocations: 34.94 kB / 417.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.485e-06/0.2671, allocations: 4 kB / 417.2 MB, free: 9.422 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.003551/0.2706, allocations: 1.903 MB / 419.1 MB, free: 7.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.2707, allocations: 59.97 kB / 419.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/0.2709, allocations: 208.4 kB / 419.4 MB, free: 7.145 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.799e-05/0.2709, allocations: 41.64 kB / 419.4 MB, free: 7.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.184e-05/0.271, allocations: 145.1 kB / 419.6 MB, free: 6.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.2712, allocations: 220.7 kB / 419.8 MB, free: 6.734 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/0.2713, allocations: 102.2 kB / 419.9 MB, free: 6.629 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.2714, allocations: 342.8 kB / 420.2 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002398/0.2717, allocations: 149.2 kB / 420.4 MB, free: 6.141 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.2719, allocations: 153.8 kB / 420.5 MB, free: 5.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005094/0.2724, allocations: 357.6 kB / 420.9 MB, free: 5.641 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.2724, allocations: 3.938 kB / 420.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006347/0.2731, allocations: 453 kB / 421.3 MB, free: 5.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.2731, allocations: 8 kB / 421.3 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.2731, allocations: 3.984 kB / 421.3 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.2731, allocations: 7.938 kB / 421.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004477/0.2736, allocations: 115.8 kB / 421.4 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.2736, allocations: 4 kB / 421.4 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001689/0.2738, allocations: 16 kB / 421.5 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.271e-05/0.2738, allocations: 19.98 kB / 421.5 MB, free: 5.016 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.0001449/0.274, allocations: 157.7 kB / 421.6 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.901e-05/0.274, allocations: 43.53 kB / 421.7 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.596e-05/0.2741, allocations: 47.33 kB / 421.7 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.2742, allocations: 15.94 kB / 421.7 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.2742, allocations: 0 / 421.7 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.2742, allocations: 3.984 kB / 421.7 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001751/0.2759, allocations: 1.286 MB / 423 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.276, allocations: 4 kB / 423 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000459/0.2764, allocations: 115.8 kB / 423.1 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.2764, allocations: 4 kB / 423.1 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-05/0.2765, allocations: 19.98 kB / 423.2 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.338e-06/0.2765, allocations: 11.94 kB / 423.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.2765, allocations: 4 kB / 423.2 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.2775, allocations: 0.8468 MB / 424 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.773e-05/0.2776, allocations: 116.6 kB / 424.1 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.077e-05/0.2777, allocations: 20.03 kB / 424.2 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002251/0.2779, allocations: 19.94 kB / 424.2 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.506e-05/0.278, allocations: 52.25 kB / 424.2 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.958e-05/0.278, allocations: 20 kB / 424.3 MB, free: 2.031 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.2781, allocations: 156.5 kB / 424.4 MB, free: 1.879 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2781, allocations: 0 / 424.4 MB, free: 1.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003795/0.2785, allocations: 96 kB / 424.5 MB, free: 1.785 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.0001184/0.2787, allocations: 127 kB / 424.6 MB, free: 1.652 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000639/0.2793, allocations: 411 kB / 425 MB, free: 1.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2793, allocations: 0 / 425 MB, free: 1.246 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003449/0.2797, allocations: 246.2 kB / 425.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006361/0.2803, allocations: 97.61 kB / 425.4 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.2818, allocations: 1.011 MB / 426.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.2821, allocations: 0.7973 MB / 427.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001617/0.2823, allocations: 51.33 kB / 427.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.91e-05/0.2824, allocations: 35.44 kB / 427.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2824, allocations: 0 / 427.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of Templates: time 0.008002/0.2904, allocations: 4.43 MB / 431.7 MB, free: 10.52 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches