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.001125/0.001125, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001258, allocations: 209.7 kB / 18.14 MB, free: 5.344 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.3 MB, free: 10.84 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001215, allocations: 59.81 kB / 306.3 MB, free: 1.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09087/0.0921, allocations: 50.54 MB / 356.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003675/0.09581, allocations: 2.709 MB / 359.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.09709, allocations: 0.7365 MB / 360.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001957/0.0973, allocations: 4 kB / 360.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001673/0.09751, allocations: 35.7 kB / 360.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000224/0.09774, allocations: 91.23 kB / 360.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002642/0.09801, allocations: 71.94 kB / 360.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003548/0.09838, allocations: 374.3 kB / 360.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.09856, allocations: 95.64 kB / 360.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.09874, allocations: 143.4 kB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/0.09895, allocations: 159.3 kB / 361.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.575e-05/0.099, allocations: 20 kB / 361.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.657e-05/0.09906, allocations: 20 kB / 361.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.038e-05/0.09913, allocations: 55.77 kB / 361.3 MB, free: 10 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.0993, allocations: 167.1 kB / 361.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003182/0.09963, allocations: 366.9 kB / 361.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.09964, allocations: 0 / 361.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.09965, allocations: 0 / 361.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.09966, allocations: 0 / 361.8 MB, free: 9.477 MB / 302.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.001079/0.1007, allocations: 0.6198 MB / 362.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.1008, allocations: 8.031 kB / 362.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.741e-05/0.1009, allocations: 36.56 kB / 362.5 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003093/0.1012, allocations: 268.6 kB / 362.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.1012, allocations: 25.03 kB / 362.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.254e-05/0.1013, allocations: 31.94 kB / 362.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004749/0.1018, allocations: 258.1 kB / 363 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.1018, allocations: 3.984 kB / 363 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.1018, allocations: 20 kB / 363.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/0.1019, allocations: 8 kB / 363.1 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004026/0.1023, allocations: 230.5 kB / 363.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.1036, allocations: 0.8037 MB / 364.1 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004745/0.1041, allocations: 345.4 kB / 364.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002524/0.1043, allocations: 181.5 kB / 364.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.1044, allocations: 4.375 kB / 364.6 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.1044, allocations: 38.94 kB / 364.7 MB, free: 6.465 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.503e-06/0.1044, allocations: 0 / 364.7 MB, free: 6.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.003746/0.1081, allocations: 1.903 MB / 366.6 MB, free: 4.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.1082, allocations: 59.91 kB / 366.6 MB, free: 4.402 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/0.1084, allocations: 212.4 kB / 366.8 MB, free: 4.184 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.1084, allocations: 37.7 kB / 366.9 MB, free: 4.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.996e-05/0.1085, allocations: 148.9 kB / 367 MB, free: 3.988 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.1087, allocations: 228.7 kB / 367.2 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.1088, allocations: 90.34 kB / 367.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1089, allocations: 346.8 kB / 367.7 MB, free: 3.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/0.1092, allocations: 145.2 kB / 367.8 MB, free: 3.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/0.1094, allocations: 149.9 kB / 367.9 MB, free: 3.035 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005167/0.1099, allocations: 357.6 kB / 368.3 MB, free: 2.684 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.11, allocations: 0 / 368.3 MB, free: 2.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006389/0.1106, allocations: 460.8 kB / 368.7 MB, free: 2.227 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.1106, allocations: 4 kB / 368.7 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1106, allocations: 8 kB / 368.8 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.1107, allocations: 3.938 kB / 368.8 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004478/0.1111, allocations: 115.8 kB / 368.9 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/0.1111, allocations: 7.984 kB / 368.9 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001829/0.1113, allocations: 16 kB / 368.9 MB, free: 2.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.175e-05/0.1114, allocations: 16 kB / 368.9 MB, free: 2.059 MB / 302.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.0001602/0.1115, allocations: 158.4 kB / 369.1 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.467e-05/0.1116, allocations: 39.62 kB / 369.1 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.1117, allocations: 51.33 kB / 369.2 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.024e-06/0.1117, allocations: 11.94 kB / 369.2 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.1117, allocations: 0 / 369.2 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.1117, allocations: 3.984 kB / 369.2 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001724/0.1135, allocations: 1.301 MB / 370.5 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/0.1135, allocations: 4.562 kB / 370.5 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004707/0.114, allocations: 123.8 kB / 370.6 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.616e-06/0.114, allocations: 8 kB / 370.6 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.419e-05/0.114, allocations: 16 kB / 370.6 MB, free: 228 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.945e-06/0.114, allocations: 11.94 kB / 370.6 MB, free: 216 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.1141, allocations: 4 kB / 370.6 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1424/0.2564, allocations: 0.8393 MB / 371.5 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.2566, allocations: 116 kB / 371.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.534e-05/0.2567, allocations: 17.77 kB / 371.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.257, allocations: 21.44 kB / 371.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.2571, allocations: 50.94 kB / 371.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.261e-05/0.2572, allocations: 25.3 kB / 371.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001453/0.2573, allocations: 151.7 kB / 371.8 MB, free: 19.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2573, allocations: 0 / 371.8 MB, free: 19.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004705/0.2578, allocations: 97.5 kB / 371.9 MB, free: 19.71 MB / 302.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.000122/0.2579, allocations: 123.3 kB / 372.1 MB, free: 19.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007422/0.2587, allocations: 402.1 kB / 372.5 MB, free: 19.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.2587, allocations: 0.8438 kB / 372.5 MB, free: 19.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004019/0.2591, allocations: 247.3 kB / 372.7 MB, free: 19.6 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008123/0.2599, allocations: 87.52 kB / 372.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.2617, allocations: 1.155 MB / 373.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.262, allocations: 0.797 MB / 374.7 MB, free: 18.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002397/0.2622, allocations: 50.78 kB / 374.8 MB, free: 18.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.2623, allocations: 36.86 kB / 374.8 MB, free: 18.13 MB / 302.1 MB Notification: Performance of SimCode: time 1.172e-06/0.2623, allocations: 4 kB / 374.8 MB, free: 18.12 MB / 302.1 MB Notification: Performance of Templates: time 0.01047/0.2728, allocations: 4.073 MB / 378.9 MB, free: 17.86 MB / 302.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