Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001094/0.001094, allocations: 100.6 kB / 17.93 MB, free: 5.41 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.001136/0.001136, allocations: 193.8 kB / 18.86 MB, free: 4.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.529/1.529, allocations: 205.1 MB / 224.7 MB, free: 12.35 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 51.92 kB / 280.8 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1167, allocations: 46.63 MB / 327.4 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003873/0.1206, allocations: 2.649 MB / 330.1 MB, free: 2.113 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007568/0.1214, allocations: 366.8 kB / 330.4 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.1215, allocations: 4 kB / 330.4 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000189/0.1217, allocations: 39.69 kB / 330.5 MB, free: 1.711 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001792/0.1219, allocations: 83.31 kB / 330.6 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003139/0.1222, allocations: 79.86 kB / 330.6 MB, free: 1.551 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003541/0.1226, allocations: 374.4 kB / 331 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002305/0.1228, allocations: 111.4 kB / 331.1 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.123, allocations: 143.5 kB / 331.3 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002058/0.1232, allocations: 167.2 kB / 331.4 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.949e-05/0.1233, allocations: 31.98 kB / 331.4 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.782e-05/0.1233, allocations: 32 kB / 331.5 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.827e-05/0.1234, allocations: 63.77 kB / 331.5 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001727/0.1236, allocations: 171.2 kB / 331.7 MB, free: 488 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003243/0.1239, allocations: 271.3 kB / 332 MB, free: 216 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1239, allocations: 0 / 332 MB, free: 216 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1239, allocations: 4 kB / 332 MB, free: 212 kB / 270.1 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.1239, allocations: 4 kB / 332 MB, free: 208 kB / 270.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.001084/0.125, allocations: 0.6315 MB / 332.6 MB, free: 15.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.1251, allocations: 8.031 kB / 332.6 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.381e-05/0.1252, allocations: 36.56 kB / 332.7 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002892/0.1255, allocations: 255.5 kB / 332.9 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.133e-05/0.1255, allocations: 24.94 kB / 332.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.562e-05/0.1256, allocations: 28.38 kB / 333 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005483/0.1261, allocations: 277.3 kB / 333.2 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.1261, allocations: 8.094 kB / 333.2 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.1262, allocations: 19.94 kB / 333.3 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.427e-05/0.1262, allocations: 8 kB / 333.3 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000539/0.1268, allocations: 266 kB / 333.5 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.128, allocations: 0.7952 MB / 334.3 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005779/0.1286, allocations: 362.8 kB / 334.7 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.129, allocations: 192.8 kB / 334.9 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.129, allocations: 4 kB / 334.9 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.129, allocations: 38.5 kB / 334.9 MB, free: 13.11 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.603e-06/0.129, allocations: 0 / 334.9 MB, free: 13.11 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.004101/0.1331, allocations: 1.961 MB / 336.9 MB, free: 11.06 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.92e-05/0.1332, allocations: 59.91 kB / 336.9 MB, free: 10.99 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.1334, allocations: 202.7 kB / 337.1 MB, free: 10.78 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.524e-05/0.1335, allocations: 37.64 kB / 337.2 MB, free: 10.73 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.1336, allocations: 152.9 kB / 337.3 MB, free: 10.58 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.1338, allocations: 212.9 kB / 337.5 MB, free: 10.37 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.1339, allocations: 94.23 kB / 337.6 MB, free: 10.27 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1341, allocations: 342.8 kB / 337.9 MB, free: 9.922 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003282/0.1344, allocations: 165 kB / 338.1 MB, free: 9.762 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003025/0.1347, allocations: 165 kB / 338.3 MB, free: 9.602 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006831/0.1354, allocations: 380 kB / 338.6 MB, free: 9.227 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1354, allocations: 0 / 338.6 MB, free: 9.227 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008046/0.1362, allocations: 482.7 kB / 339.1 MB, free: 8.75 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.1363, allocations: 4 kB / 339.1 MB, free: 8.746 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.1363, allocations: 0 / 339.1 MB, free: 8.746 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.1363, allocations: 7.984 kB / 339.1 MB, free: 8.738 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004747/0.1368, allocations: 127.8 kB / 339.2 MB, free: 8.613 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.1368, allocations: 4 kB / 339.2 MB, free: 8.609 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.137, allocations: 19.98 kB / 339.3 MB, free: 8.59 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-05/0.137, allocations: 23.92 kB / 339.3 MB, free: 8.566 MB / 286.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.0001608/0.1372, allocations: 157.7 kB / 339.4 MB, free: 8.402 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.215e-05/0.1373, allocations: 31.62 kB / 339.5 MB, free: 8.371 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001105/0.1374, allocations: 47.34 kB / 339.5 MB, free: 8.328 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.1374, allocations: 8 kB / 339.5 MB, free: 8.32 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.1374, allocations: 0 / 339.5 MB, free: 8.32 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.1374, allocations: 7.984 kB / 339.5 MB, free: 8.312 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.1395, allocations: 1.329 MB / 340.9 MB, free: 6.867 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.1395, allocations: 4.062 kB / 340.9 MB, free: 6.863 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004705/0.14, allocations: 127.8 kB / 341 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.237e-05/0.14, allocations: 11.94 kB / 341 MB, free: 6.727 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.523e-05/0.1401, allocations: 16 kB / 341 MB, free: 6.711 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.1401, allocations: 8 kB / 341 MB, free: 6.703 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.1401, allocations: 7.938 kB / 341 MB, free: 6.695 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.1413, allocations: 0.8784 MB / 341.9 MB, free: 5.746 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.539e-05/0.1414, allocations: 112.7 kB / 342 MB, free: 5.617 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.296e-05/0.1415, allocations: 23.97 kB / 342 MB, free: 5.594 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.1417, allocations: 23.98 kB / 342.1 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.723e-05/0.1418, allocations: 51.83 kB / 342.1 MB, free: 5.52 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.1419, allocations: 20 kB / 342.1 MB, free: 5.5 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001146/0.142, allocations: 140.6 kB / 342.3 MB, free: 5.363 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.142, allocations: 0 / 342.3 MB, free: 5.363 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003792/0.1424, allocations: 96 kB / 342.4 MB, free: 5.27 MB / 286.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.0001552/0.1425, allocations: 123 kB / 342.5 MB, free: 5.141 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009274/0.1435, allocations: 470.6 kB / 343 MB, free: 4.684 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1435, allocations: 0 / 343 MB, free: 4.684 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000408/0.1439, allocations: 249.1 kB / 343.2 MB, free: 4.441 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007255/0.1446, allocations: 91.95 kB / 343.3 MB, free: 4.352 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.1465, allocations: 1.194 MB / 344.5 MB, free: 3.066 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000436/0.147, allocations: 0.7894 MB / 345.3 MB, free: 2.254 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.1471, allocations: 43.42 kB / 345.3 MB, free: 2.211 MB / 286.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1471, allocations: 0 / 345.3 MB, free: 2.211 MB / 286.1 MB Notification: Performance of Templates: time 0.007148/0.1543, allocations: 4.551 MB / 349.9 MB, free: 13.66 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches