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.0008876/0.0008876, allocations: 97.61 kB / 16.93 MB, free: 6.445 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.0009351/0.0009351, allocations: 185 kB / 17.83 MB, free: 6.012 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.704/1.704, allocations: 205.4 MB / 224 MB, free: 13.18 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.000484/0.000484, allocations: 15.44 kB / 280.7 MB, free: 3.77 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1075, allocations: 47.58 MB / 328.3 MB, free: 4.117 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002391/0.1099, allocations: 2.059 MB / 330.4 MB, free: 2.047 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005808/0.1105, allocations: 378.9 kB / 330.7 MB, free: 1.676 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.972e-05/0.1106, allocations: 4 kB / 330.8 MB, free: 1.672 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 5.359e-05/0.1107, allocations: 39.7 kB / 330.8 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.1109, allocations: 111.7 kB / 330.9 MB, free: 1.523 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002385/0.1112, allocations: 71.86 kB / 331 MB, free: 1.453 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002856/0.1114, allocations: 255.4 kB / 331.2 MB, free: 1.203 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.1116, allocations: 89.62 kB / 331.3 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.1118, allocations: 111.6 kB / 331.4 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001544/0.1119, allocations: 143.4 kB / 331.6 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.062e-05/0.112, allocations: 16 kB / 331.6 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.97e-05/0.112, allocations: 16 kB / 331.6 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.19e-05/0.1121, allocations: 63.75 kB / 331.7 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.151e-05/0.1121, allocations: 77.58 kB / 331.7 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.1124, allocations: 259.5 kB / 332 MB, free: 448 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.1124, allocations: 3.938 kB / 332 MB, free: 444 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1124, allocations: 0 / 332 MB, free: 444 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.1124, allocations: 0 / 332 MB, free: 444 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.0009906/0.1134, allocations: 0.5963 MB / 332.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.1134, allocations: 8.031 kB / 332.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.579e-05/0.1135, allocations: 35.53 kB / 332.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002914/0.1138, allocations: 258.4 kB / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.678e-05/0.1138, allocations: 24.52 kB / 332.9 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.754e-05/0.1139, allocations: 35.91 kB / 332.9 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005121/0.1144, allocations: 280.8 kB / 333.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.1145, allocations: 3.938 kB / 333.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.68e-05/0.1145, allocations: 12 kB / 333.2 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.1145, allocations: 4 kB / 333.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005551/0.1151, allocations: 282.1 kB / 333.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.1163, allocations: 0.7992 MB / 334.3 MB, free: 13.97 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005646/0.1169, allocations: 363.3 kB / 334.7 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.1169, allocations: 4 kB / 334.7 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.1169, allocations: 38.56 kB / 334.7 MB, free: 13.55 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.643e-06/0.1169, allocations: 0 / 334.7 MB, free: 13.55 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.004284/0.1212, allocations: 2.035 MB / 336.7 MB, free: 11.42 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.1213, allocations: 59.97 kB / 336.8 MB, free: 11.35 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/0.1215, allocations: 202.7 kB / 337 MB, free: 11.14 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.1215, allocations: 37.64 kB / 337 MB, free: 11.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.389e-05/0.1216, allocations: 148.9 kB / 337.2 MB, free: 10.94 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.1218, allocations: 216.8 kB / 337.4 MB, free: 10.73 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.182e-05/0.1218, allocations: 12 kB / 337.4 MB, free: 10.71 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1219, allocations: 342.8 kB / 337.7 MB, free: 10.37 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003108/0.1223, allocations: 169 kB / 337.9 MB, free: 10.21 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.1226, allocations: 173 kB / 338.1 MB, free: 10.04 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003359/0.1229, allocations: 186.2 kB / 338.2 MB, free: 9.855 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1229, allocations: 0 / 338.2 MB, free: 9.855 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008225/0.1238, allocations: 0.4908 MB / 338.7 MB, free: 9.359 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.1238, allocations: 4 kB / 338.7 MB, free: 9.355 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.1238, allocations: 3.984 kB / 338.7 MB, free: 9.352 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.1238, allocations: 4 kB / 338.7 MB, free: 9.348 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004616/0.1243, allocations: 119.9 kB / 338.9 MB, free: 9.23 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.1243, allocations: 8 kB / 338.9 MB, free: 9.223 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.1245, allocations: 27.98 kB / 338.9 MB, free: 9.195 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.887e-05/0.1246, allocations: 23.89 kB / 338.9 MB, free: 9.172 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 (elastoGap1.contact,elastoGap2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001687/0.1247, allocations: 169.7 kB / 339.1 MB, free: 8.996 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.765e-05/0.1248, allocations: 35.61 kB / 339.1 MB, free: 8.961 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001007/0.1249, allocations: 43.34 kB / 339.2 MB, free: 8.922 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.1249, allocations: 12 kB / 339.2 MB, free: 8.91 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.1249, allocations: 0 / 339.2 MB, free: 8.91 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1249, allocations: 3.984 kB / 339.2 MB, free: 8.906 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001794/0.1267, allocations: 1.321 MB / 340.5 MB, free: 7.473 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.1268, allocations: 4 kB / 340.5 MB, free: 7.469 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000473/0.1272, allocations: 127.8 kB / 340.6 MB, free: 7.344 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.307e-06/0.1273, allocations: 8.562 kB / 340.6 MB, free: 7.336 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.308e-05/0.1273, allocations: 23.98 kB / 340.7 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.827e-06/0.1273, allocations: 7.953 kB / 340.7 MB, free: 7.305 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.1273, allocations: 11.94 kB / 340.7 MB, free: 7.293 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.1287, allocations: 1.1 MB / 341.8 MB, free: 6.008 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.808e-05/0.1288, allocations: 112.7 kB / 341.9 MB, free: 5.879 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.338e-05/0.1289, allocations: 23.98 kB / 341.9 MB, free: 5.855 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002472/0.1291, allocations: 31.98 kB / 341.9 MB, free: 5.824 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.391e-05/0.1292, allocations: 55.78 kB / 342 MB, free: 5.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.018e-05/0.1292, allocations: 23.98 kB / 342 MB, free: 5.746 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001034/0.1294, allocations: 140.4 kB / 342.2 MB, free: 5.609 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1294, allocations: 0 / 342.2 MB, free: 5.609 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003769/0.1297, allocations: 96 kB / 342.3 MB, free: 5.516 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 (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.0001341/0.1299, allocations: 119.1 kB / 342.4 MB, free: 5.391 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007515/0.1306, allocations: 454.6 kB / 342.8 MB, free: 4.945 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1307, allocations: 0 / 342.8 MB, free: 4.945 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000412/0.1311, allocations: 260.8 kB / 343.1 MB, free: 4.691 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005272/0.1316, allocations: 75.97 kB / 343.1 MB, free: 4.617 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.1333, allocations: 1.209 MB / 344.4 MB, free: 3.32 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.1336, allocations: 0.809 MB / 345.2 MB, free: 2.488 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001707/0.1338, allocations: 51.25 kB / 345.2 MB, free: 2.438 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.721e-05/0.1339, allocations: 39.42 kB / 345.3 MB, free: 2.398 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1339, allocations: 0 / 345.3 MB, free: 2.398 MB / 286.1 MB Notification: Performance of Templates: time 0.007135/0.141, allocations: 3.649 MB / 348.9 MB, free: 14.76 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins/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