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.00137/0.00137, allocations: 111.9 kB / 17.68 MB, free: 5.332 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.001546/0.001546, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.33/1.33, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001115, allocations: 55.58 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09041/0.09155, allocations: 49.44 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003603/0.09518, allocations: 2.603 MB / 354.1 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007366/0.09594, allocations: 382.5 kB / 354.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.09606, allocations: 8 kB / 354.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.09621, allocations: 51.5 kB / 354.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001847/0.09641, allocations: 91.12 kB / 354.6 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002644/0.09669, allocations: 95.81 kB / 354.7 MB, free: 468 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003558/0.09705, allocations: 374.4 kB / 355.1 MB, free: 92 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002371/0.0973, allocations: 115.7 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001849/0.09749, allocations: 139.5 kB / 355.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.09768, allocations: 159.3 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.09779, allocations: 39.94 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.44e-05/0.09784, allocations: 28 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.134e-05/0.0979, allocations: 75.75 kB / 355.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.09806, allocations: 163.2 kB / 355.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.09847, allocations: 366.7 kB / 356.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.09848, allocations: 0 / 356.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.09849, allocations: 0 / 356.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.0985, allocations: 0 / 356.1 MB, free: 15.02 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.001013/0.09952, allocations: 0.6276 MB / 356.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.09956, allocations: 8.031 kB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.375e-05/0.09963, allocations: 36.56 kB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003202/0.09996, allocations: 279.3 kB / 357.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.621e-05/0.1, allocations: 24.94 kB / 357.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.17e-05/0.1001, allocations: 28.28 kB / 357.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005059/0.1006, allocations: 269.4 kB / 357.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.1006, allocations: 4.188 kB / 357.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/0.1007, allocations: 23.86 kB / 357.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.1007, allocations: 8 kB / 357.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005785/0.1013, allocations: 270.1 kB / 357.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.1026, allocations: 0.7835 MB / 358.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005749/0.1032, allocations: 370.6 kB / 358.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003609/0.1036, allocations: 192.8 kB / 359 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.1036, allocations: 4 kB / 359 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.1036, allocations: 38.56 kB / 359.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.613e-06/0.1037, allocations: 0 / 359.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.004193/0.1079, allocations: 1.952 MB / 361 MB, free: 9.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.1079, allocations: 67.97 kB / 361.1 MB, free: 9.797 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.1081, allocations: 191 kB / 361.3 MB, free: 9.598 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.1081, allocations: 37.7 kB / 361.3 MB, free: 9.555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.011e-05/0.1082, allocations: 148.9 kB / 361.5 MB, free: 9.406 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/0.1084, allocations: 220.8 kB / 361.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.1085, allocations: 86.25 kB / 361.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.1087, allocations: 346.7 kB / 362.1 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003182/0.109, allocations: 165 kB / 362.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003121/0.1093, allocations: 173 kB / 362.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006508/0.11, allocations: 372 kB / 362.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.11, allocations: 0 / 362.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008312/0.1108, allocations: 486.6 kB / 363.3 MB, free: 7.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.1109, allocations: 7.938 kB / 363.3 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.1109, allocations: 4 kB / 363.3 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.1109, allocations: 0 / 363.3 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000489/0.1114, allocations: 123.9 kB / 363.4 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.1114, allocations: 7.938 kB / 363.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/0.1116, allocations: 27.97 kB / 363.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.351e-05/0.1117, allocations: 19.94 kB / 363.5 MB, free: 7.383 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.0001485/0.1118, allocations: 157.8 kB / 363.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.171e-05/0.1119, allocations: 35.53 kB / 363.6 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.112, allocations: 51.31 kB / 363.7 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.112, allocations: 8 kB / 363.7 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.112, allocations: 0 / 363.7 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.112, allocations: 3.984 kB / 363.7 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/0.1139, allocations: 1.309 MB / 365 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.1139, allocations: 8.562 kB / 365 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005047/0.1145, allocations: 123.8 kB / 365.1 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.207e-06/0.1145, allocations: 11.94 kB / 365.2 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.855e-05/0.1145, allocations: 16 kB / 365.2 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.145e-05/0.1145, allocations: 15.92 kB / 365.2 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.1146, allocations: 4 kB / 365.2 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.1158, allocations: 0.8721 MB / 366.1 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.008e-05/0.1159, allocations: 120.7 kB / 366.2 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.199e-05/0.1159, allocations: 19.94 kB / 366.2 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/0.1162, allocations: 23.98 kB / 366.2 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.86e-05/0.1163, allocations: 51.62 kB / 366.3 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-05/0.1164, allocations: 24 kB / 366.3 MB, free: 4.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001052/0.1165, allocations: 144.5 kB / 366.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1165, allocations: 0 / 366.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003911/0.1169, allocations: 96 kB / 366.5 MB, free: 4.086 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.0001191/0.117, allocations: 119.1 kB / 366.6 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007997/0.1178, allocations: 442.9 kB / 367.1 MB, free: 3.531 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1178, allocations: 0 / 367.1 MB, free: 3.531 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004291/0.1182, allocations: 260.3 kB / 367.3 MB, free: 3.277 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000599/0.1189, allocations: 96.5 kB / 367.4 MB, free: 3.184 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.1204, allocations: 1.006 MB / 368.4 MB, free: 2.098 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.1207, allocations: 0.7894 MB / 369.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000171/0.1209, allocations: 55.25 kB / 369.3 MB, free: 1.227 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.121, allocations: 35.42 kB / 369.3 MB, free: 1.191 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.121, allocations: 4 kB / 369.3 MB, free: 1.188 MB / 302.1 MB Notification: Performance of Templates: time 0.1454/0.2664, allocations: 4.085 MB / 373.4 MB, free: 24.4 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 -s gbode -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