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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008082/0.0008083, allocations: 91.55 kB / 17.31 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008506/0.0008506, allocations: 177.5 kB / 18.21 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.131/1.131, allocations: 223.3 MB / 242.3 MB, free: 68 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002137/0.0002137, allocations: 15.92 kB / 302.1 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07259/0.07282, allocations: 50.41 MB / 352.5 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002223/0.07507, allocations: 2.279 MB / 354.8 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005609/0.07564, allocations: 382.6 kB / 355.1 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.07575, allocations: 11.94 kB / 355.2 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.07587, allocations: 27.77 kB / 355.2 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001521/0.07602, allocations: 83.31 kB / 355.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002289/0.07626, allocations: 83.8 kB / 355.3 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002941/0.07656, allocations: 358.4 kB / 355.7 MB, free: 460 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.07673, allocations: 91.64 kB / 355.8 MB, free: 364 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.07686, allocations: 123.5 kB / 355.9 MB, free: 240 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001541/0.07702, allocations: 151.3 kB / 356.1 MB, free: 88 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.107e-05/0.07706, allocations: 16 kB / 356.1 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.552e-05/0.0771, allocations: 16 kB / 356.1 MB, free: 56 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.965e-05/0.07715, allocations: 51.75 kB / 356.1 MB, free: 4 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000152/0.07731, allocations: 177 kB / 356.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000215/0.07753, allocations: 267.3 kB / 356.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.07754, allocations: 0 / 356.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.07755, allocations: 4 kB / 356.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.07756, allocations: 0 / 356.6 MB, free: 15.56 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0008507/0.07842, allocations: 0.5887 MB / 357.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.07845, allocations: 8.031 kB / 357.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.331e-05/0.07852, allocations: 40.56 kB / 357.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002491/0.07878, allocations: 275.4 kB / 357.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.07881, allocations: 20.94 kB / 357.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.726e-05/0.07886, allocations: 28.38 kB / 357.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005018/0.07937, allocations: 285.4 kB / 357.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.0794, allocations: 4.094 kB / 357.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.508e-05/0.07943, allocations: 15.94 kB / 357.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.07945, allocations: 8 kB / 357.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005406/0.07999, allocations: 282.1 kB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.08108, allocations: 0.803 MB / 358.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005649/0.08166, allocations: 374.6 kB / 359.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003253/0.082, allocations: 200.8 kB / 359.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.08203, allocations: 7.984 kB / 359.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.08206, allocations: 38.56 kB / 359.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.703e-06/0.08207, allocations: 3.938 kB / 359.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.003755/0.08583, allocations: 2.042 MB / 361.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.08587, allocations: 55.97 kB / 361.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001507/0.08603, allocations: 199 kB / 361.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.08606, allocations: 37.64 kB / 361.8 MB, free: 9.988 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.062e-05/0.08615, allocations: 145 kB / 362 MB, free: 9.844 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.08627, allocations: 216.8 kB / 362.2 MB, free: 9.629 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-05/0.08635, allocations: 49.7 kB / 362.3 MB, free: 9.574 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.08646, allocations: 350.7 kB / 362.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003101/0.08677, allocations: 169 kB / 362.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003039/0.08709, allocations: 181 kB / 362.9 MB, free: 8.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006221/0.08771, allocations: 388 kB / 363.3 MB, free: 8.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.08773, allocations: 4 kB / 363.3 MB, free: 8.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007463/0.08848, allocations: 498.6 kB / 363.8 MB, free: 8.004 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.0885, allocations: 6.812 kB / 363.8 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.08851, allocations: 8 kB / 363.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.037e-06/0.08852, allocations: 0 / 363.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004116/0.08894, allocations: 127.9 kB / 363.9 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.08896, allocations: 0 / 363.9 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.08914, allocations: 31.98 kB / 364 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.716e-05/0.08918, allocations: 23.94 kB / 364 MB, free: 7.812 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 (69): * Single equations (assignments): 69 * 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.00014/0.08932, allocations: 157.7 kB / 364.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.439e-05/0.08938, allocations: 35.61 kB / 364.2 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.08949, allocations: 47.33 kB / 364.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.0895, allocations: 8 kB / 364.2 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.08951, allocations: 0 / 364.2 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.08952, allocations: 3.984 kB / 364.2 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001689/0.09122, allocations: 1.337 MB / 365.6 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.09123, allocations: 8.125 kB / 365.6 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000429/0.09167, allocations: 127.8 kB / 365.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.133e-06/0.09168, allocations: 7.938 kB / 365.7 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.593e-05/0.09173, allocations: 23.98 kB / 365.7 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.09174, allocations: 7.938 kB / 365.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.207e-06/0.09175, allocations: 8 kB / 365.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.09291, allocations: 0.9057 MB / 366.7 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.028e-05/0.09298, allocations: 116.7 kB / 366.8 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.155e-05/0.09304, allocations: 20 kB / 366.8 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002345/0.09327, allocations: 35.92 kB / 366.8 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.563e-05/0.09335, allocations: 55.75 kB / 366.9 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.664e-05/0.09338, allocations: 20 kB / 366.9 MB, free: 4.688 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.705e-05/0.09348, allocations: 144.6 kB / 367.1 MB, free: 4.547 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.333e-06/0.09349, allocations: 0 / 367.1 MB, free: 4.547 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00034/0.09383, allocations: 95.94 kB / 367.1 MB, free: 4.453 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 (63): * Single equations (assignments): 63 * 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.0001054/0.09394, allocations: 119.1 kB / 367.3 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007029/0.09465, allocations: 458.6 kB / 367.7 MB, free: 3.879 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.09467, allocations: 4 kB / 367.7 MB, free: 3.875 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003854/0.09506, allocations: 256.7 kB / 368 MB, free: 3.625 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006251/0.0957, allocations: 90.77 kB / 368.1 MB, free: 3.539 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.09714, allocations: 1.261 MB / 369.3 MB, free: 2.191 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/0.09744, allocations: 0.7935 MB / 370.1 MB, free: 1.375 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.09757, allocations: 47.42 kB / 370.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.09757, allocations: 0 / 370.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of Templates: time 0.1125/0.2101, allocations: 4.48 MB / 374.6 MB, free: 23.93 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches