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.00111/0.00111, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 205.2 kB / 18.74 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.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 55.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2909, allocations: 50.54 MB / 409.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.0036/0.2945, allocations: 2.684 MB / 411.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.2957, allocations: 0.7287 MB / 412.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.2958, allocations: 7.938 kB / 412.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.296, allocations: 47.5 kB / 412.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001847/0.2962, allocations: 103.1 kB / 412.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002767/0.2964, allocations: 99.8 kB / 412.9 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003377/0.2968, allocations: 390.3 kB / 413.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002108/0.297, allocations: 115.1 kB / 413.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.2971, allocations: 143.5 kB / 413.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002145/0.2974, allocations: 167.2 kB / 413.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.201e-05/0.2974, allocations: 35.98 kB / 413.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.534e-05/0.2975, allocations: 28 kB / 413.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.078e-05/0.2976, allocations: 71.77 kB / 413.8 MB, free: 13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001472/0.2977, allocations: 175.1 kB / 414 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003922/0.2981, allocations: 382.3 kB / 414.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2981, allocations: 0 / 414.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2981, allocations: 0 / 414.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.2981, allocations: 0 / 414.4 MB, free: 12.46 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.0009923/0.2991, allocations: 0.6311 MB / 415 MB, free: 11.78 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.2992, allocations: 12.03 kB / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.089e-05/0.2993, allocations: 36.7 kB / 415 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/0.2996, allocations: 268.8 kB / 415.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.2996, allocations: 25.03 kB / 415.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.637e-05/0.2997, allocations: 35.89 kB / 415.4 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004193/0.3001, allocations: 262 kB / 415.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.3002, allocations: 8 kB / 415.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.3002, allocations: 12 kB / 415.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.3002, allocations: 4 kB / 415.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003615/0.3006, allocations: 230.5 kB / 415.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.3018, allocations: 0.8039 MB / 416.7 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000445/0.3022, allocations: 335.6 kB / 417 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002442/0.3025, allocations: 185.5 kB / 417.2 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.549e-05/0.3025, allocations: 8.359 kB / 417.2 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.3025, allocations: 42.88 kB / 417.2 MB, free: 9.422 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.713e-06/0.3026, allocations: 0 / 417.2 MB, free: 9.422 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.003567/0.3061, allocations: 1.9 MB / 419.1 MB, free: 7.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.3062, allocations: 63.97 kB / 419.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001987/0.3064, allocations: 208.4 kB / 419.4 MB, free: 7.145 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/0.3064, allocations: 41.64 kB / 419.4 MB, free: 7.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.715e-05/0.3065, allocations: 149.2 kB / 419.6 MB, free: 6.949 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00015/0.3067, allocations: 233.9 kB / 419.8 MB, free: 6.719 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/0.3068, allocations: 98.28 kB / 419.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.307, allocations: 342.8 kB / 420.2 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/0.3072, allocations: 149.2 kB / 420.4 MB, free: 6.129 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002363/0.3074, allocations: 153.8 kB / 420.5 MB, free: 5.977 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00049/0.3079, allocations: 353.6 kB / 420.9 MB, free: 5.633 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3079, allocations: 0 / 420.9 MB, free: 5.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006462/0.3086, allocations: 461.1 kB / 421.3 MB, free: 5.176 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.3086, allocations: 8 kB / 421.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3086, allocations: 0 / 421.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.3086, allocations: 3.938 kB / 421.3 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000418/0.3091, allocations: 119.8 kB / 421.5 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.3091, allocations: 4 kB / 421.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.3093, allocations: 16 kB / 421.5 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.919e-05/0.3093, allocations: 16 kB / 421.5 MB, free: 5.012 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.0001594/0.3095, allocations: 165.7 kB / 421.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.103e-05/0.3095, allocations: 39.77 kB / 421.7 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.3096, allocations: 43.34 kB / 421.7 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.3097, allocations: 11.94 kB / 421.8 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3097, allocations: 0 / 421.8 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.3097, allocations: 3.984 kB / 421.8 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001688/0.3114, allocations: 1.297 MB / 423.1 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.3114, allocations: 4 kB / 423.1 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004406/0.3118, allocations: 120.4 kB / 423.2 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.3119, allocations: 8 kB / 423.2 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.3119, allocations: 16 kB / 423.2 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.842e-06/0.3119, allocations: 11.98 kB / 423.2 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.3119, allocations: 7.938 kB / 423.2 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.3129, allocations: 0.843 MB / 424.1 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.674e-05/0.313, allocations: 112.9 kB / 424.2 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.104e-05/0.3131, allocations: 16 kB / 424.2 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.3133, allocations: 27.97 kB / 424.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.956e-05/0.3134, allocations: 48.27 kB / 424.3 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-05/0.3134, allocations: 23.98 kB / 424.3 MB, free: 2.016 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001195/0.3136, allocations: 152.5 kB / 424.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3136, allocations: 0 / 424.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003689/0.3139, allocations: 96 kB / 424.5 MB, free: 1.773 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.0001353/0.3141, allocations: 131 kB / 424.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006374/0.3147, allocations: 415 kB / 425.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3147, allocations: 0 / 425.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003319/0.3151, allocations: 239.3 kB / 425.3 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006503/0.3157, allocations: 114.4 kB / 425.4 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.3172, allocations: 1.018 MB / 426.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.3176, allocations: 0.8012 MB / 427.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001764/0.3178, allocations: 55.31 kB / 427.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.3179, allocations: 35.44 kB / 427.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3179, allocations: 0 / 427.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of Templates: time 0.007825/0.3258, allocations: 4.432 MB / 431.7 MB, free: 10.48 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