Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 175.9 kB / 8.348 MB, free: 0.7188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 221.5 MB / 230.3 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008292/0.0008292, allocations: 91.55 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.384e-05/1.385e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08464/0.08467, allocations: 50.42 MB / 387.5 MB, free: 7.59 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2869/0.3716, allocations: 76.84 MB / 464.3 MB, free: 2.062 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002214/0.3718, allocations: 61.75 kB / 464.4 MB, free: 2.004 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01523/0.3871, allocations: 5.834 MB / 470.2 MB, free: 12.15 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3871, allocations: 0 / 470.2 MB, free: 12.15 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.3871, allocations: 8 kB / 470.2 MB, free: 12.14 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0007687/0.3879, allocations: 0.5504 MB / 470.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.388, allocations: 8.031 kB / 470.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.699e-05/0.388, allocations: 35.62 kB / 470.8 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002549/0.3883, allocations: 250.4 kB / 471 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.525e-05/0.3883, allocations: 8 kB / 471 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.466e-05/0.3884, allocations: 20 kB / 471.1 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003736/0.3888, allocations: 213 kB / 471.3 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000436/0.3892, allocations: 211.7 kB / 471.5 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.3892, allocations: 3.906 kB / 471.5 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.556e-05/0.3893, allocations: 0 / 471.5 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.3893, allocations: 8 kB / 471.5 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.3905, allocations: 0.7517 MB / 472.2 MB, free: 9.969 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000435/0.391, allocations: 316.5 kB / 472.5 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002293/0.3912, allocations: 172.6 kB / 472.7 MB, free: 9.473 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.216e-05/0.3912, allocations: 4 kB / 472.7 MB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.3913, allocations: 38.56 kB / 472.8 MB, free: 9.422 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.664e-06/0.3913, allocations: 4 kB / 472.8 MB, free: 9.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=63): time 0.002371/0.3937, allocations: 1.472 MB / 474.2 MB, free: 7.859 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.151e-05/0.3937, allocations: 59.97 kB / 474.3 MB, free: 7.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001314/0.3938, allocations: 154.8 kB / 474.4 MB, free: 7.629 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.3939, allocations: 29.64 kB / 474.5 MB, free: 7.594 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.678e-05/0.394, allocations: 144.9 kB / 474.6 MB, free: 7.449 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.3941, allocations: 212.8 kB / 474.8 MB, free: 7.238 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.737e-05/0.3941, allocations: 0 / 474.8 MB, free: 7.238 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3942, allocations: 342.8 kB / 475.2 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001905/0.3944, allocations: 133.1 kB / 475.3 MB, free: 6.762 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001907/0.3946, allocations: 127.9 kB / 475.4 MB, free: 6.637 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002109/0.3949, allocations: 150.1 kB / 475.6 MB, free: 6.492 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.3949, allocations: 0 / 475.6 MB, free: 6.492 MB / 346.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0005353/0.3954, allocations: 398.7 kB / 475.9 MB, free: 6.098 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.3954, allocations: 8 kB / 476 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.3954, allocations: 0 / 476 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.3955, allocations: 3.938 kB / 476 MB, free: 6.086 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004753/0.3959, allocations: 131.8 kB / 476.1 MB, free: 5.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.396, allocations: 0 / 476.1 MB, free: 5.957 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001926/0.3962, allocations: 19.98 kB / 476.1 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.215e-05/0.3962, allocations: 19.98 kB / 476.1 MB, free: 5.918 MB / 346.7 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 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.842e-05/0.3963, allocations: 108.9 kB / 476.2 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.531e-05/0.3964, allocations: 35.58 kB / 476.3 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.3965, allocations: 35.97 kB / 476.3 MB, free: 5.734 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.3965, allocations: 11.98 kB / 476.3 MB, free: 5.723 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3965, allocations: 0 / 476.3 MB, free: 5.723 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.3965, allocations: 0 / 476.3 MB, free: 5.723 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/0.3981, allocations: 1.173 MB / 477.5 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.3981, allocations: 12.09 kB / 477.5 MB, free: 4.441 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000489/0.3986, allocations: 127.8 kB / 477.6 MB, free: 4.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.03e-05/0.3986, allocations: 8 kB / 477.6 MB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.572e-05/0.3986, allocations: 4 kB / 477.6 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.3987, allocations: 8 kB / 477.6 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.3987, allocations: 7.938 kB / 477.6 MB, free: 4.289 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009708/0.3996, allocations: 0.9789 MB / 478.6 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.731e-05/0.3997, allocations: 108.8 kB / 478.7 MB, free: 3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.43e-05/0.3998, allocations: 4 kB / 478.7 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002452/0.4, allocations: 27.98 kB / 478.8 MB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.473e-05/0.4001, allocations: 51.83 kB / 478.8 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.897e-05/0.4001, allocations: 20 kB / 478.8 MB, free: 2.898 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.733e-05/0.4002, allocations: 128.5 kB / 479 MB, free: 2.773 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4003, allocations: 0 / 479 MB, free: 2.773 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003542/0.4006, allocations: 76 kB / 479 MB, free: 2.699 MB / 346.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001409/0.4008, allocations: 115 kB / 479.1 MB, free: 2.578 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005113/0.4013, allocations: 361.7 kB / 479.5 MB, free: 2.227 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4013, allocations: 0 / 479.5 MB, free: 2.227 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002748/0.4016, allocations: 216.7 kB / 479.7 MB, free: 2.016 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.402, allocations: 65.3 kB / 479.8 MB, free: 1.953 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.4033, allocations: 0.7955 MB / 480.6 MB, free: 1.078 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.4036, allocations: 0.8047 MB / 481.4 MB, free: 252 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001845/0.4038, allocations: 43.27 kB / 481.4 MB, free: 204 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.57e-05/0.4039, allocations: 35.42 kB / 481.5 MB, free: 168 kB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4039, allocations: 0 / 481.5 MB, free: 168 kB / 346.7 MB Notification: Performance of Templates: time 0.006401/0.4103, allocations: 3.506 MB / 485 MB, free: 12.69 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches