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.001127/0.001127, allocations: 106.4 kB / 17.15 MB, free: 6.305 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.001219/0.001219, allocations: 198 kB / 18.07 MB, free: 5.41 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.51/1.51, allocations: 205.1 MB / 223.9 MB, free: 12.38 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.001329/0.001329, allocations: 47.94 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1132, allocations: 46.63 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004576/0.1178, allocations: 2.629 MB / 329.2 MB, free: 2.242 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009178/0.1188, allocations: 370.7 kB / 329.6 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000311/0.1191, allocations: 8 kB / 329.6 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002236/0.1194, allocations: 31.7 kB / 329.6 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002823/0.1197, allocations: 83.31 kB / 329.7 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003756/0.12, allocations: 79.92 kB / 329.8 MB, free: 1.68 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004739/0.1205, allocations: 362.4 kB / 330.1 MB, free: 1.324 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002581/0.1208, allocations: 95.92 kB / 330.2 MB, free: 1.23 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002755/0.1211, allocations: 127.5 kB / 330.4 MB, free: 1.105 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.1213, allocations: 159.3 kB / 330.5 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.114e-05/0.1214, allocations: 23.98 kB / 330.5 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.33e-05/0.1215, allocations: 20 kB / 330.6 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.814e-05/0.1215, allocations: 59.75 kB / 330.6 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001802/0.1217, allocations: 155.2 kB / 330.8 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.1221, allocations: 354.6 kB / 331.1 MB, free: 356 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.82e-06/0.1222, allocations: 0 / 331.1 MB, free: 356 kB / 270.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.1222, allocations: 0 / 331.1 MB, free: 356 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.1222, allocations: 0 / 331.1 MB, free: 356 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.001341/0.1235, allocations: 0.6276 MB / 331.7 MB, free: 15.67 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.1236, allocations: 8.031 kB / 331.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.952e-05/0.1237, allocations: 40.55 kB / 331.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003264/0.124, allocations: 263.6 kB / 332 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.705e-05/0.1241, allocations: 24.94 kB / 332.1 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.682e-05/0.1241, allocations: 36.31 kB / 332.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005942/0.1248, allocations: 269.4 kB / 332.4 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.1248, allocations: 4.094 kB / 332.4 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.439e-05/0.1248, allocations: 15.94 kB / 332.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.1248, allocations: 11.94 kB / 332.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006076/0.1255, allocations: 266.1 kB / 332.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.1269, allocations: 0.8069 MB / 333.5 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005863/0.1275, allocations: 346.8 kB / 333.8 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003365/0.1278, allocations: 200.8 kB / 334 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.596e-05/0.1279, allocations: 4 kB / 334 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.1279, allocations: 34.56 kB / 334 MB, free: 13.25 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 2.705e-06/0.1279, allocations: 0 / 334 MB, free: 13.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.004332/0.1322, allocations: 1.961 MB / 336 MB, free: 11.2 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.1323, allocations: 55.97 kB / 336.1 MB, free: 11.13 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002043/0.1325, allocations: 198.8 kB / 336.3 MB, free: 10.92 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.1326, allocations: 37.7 kB / 336.3 MB, free: 10.88 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.1327, allocations: 148.9 kB / 336.4 MB, free: 10.73 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.1328, allocations: 220.8 kB / 336.6 MB, free: 10.51 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/0.133, allocations: 90.25 kB / 336.7 MB, free: 10.41 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1331, allocations: 350.7 kB / 337.1 MB, free: 10.06 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003293/0.1335, allocations: 157 kB / 337.2 MB, free: 9.91 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000321/0.1338, allocations: 173 kB / 337.4 MB, free: 9.738 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006916/0.1345, allocations: 380 kB / 337.8 MB, free: 9.367 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1345, allocations: 0 / 337.8 MB, free: 9.367 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008403/0.1353, allocations: 482.7 kB / 338.2 MB, free: 8.887 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1354, allocations: 4 kB / 338.2 MB, free: 8.883 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.1354, allocations: 0 / 338.2 MB, free: 8.883 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.276e-05/0.1354, allocations: 7.938 kB / 338.3 MB, free: 8.875 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000472/0.1359, allocations: 123.8 kB / 338.4 MB, free: 8.754 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.497e-05/0.1359, allocations: 4 kB / 338.4 MB, free: 8.75 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.1361, allocations: 23.97 kB / 338.4 MB, free: 8.727 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-05/0.1362, allocations: 23.92 kB / 338.4 MB, free: 8.703 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.0001829/0.1364, allocations: 161.7 kB / 338.6 MB, free: 8.535 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.596e-05/0.1364, allocations: 31.62 kB / 338.6 MB, free: 8.504 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.1365, allocations: 51.33 kB / 338.7 MB, free: 8.457 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1366, allocations: 8 kB / 338.7 MB, free: 8.449 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/0.1366, allocations: 0 / 338.7 MB, free: 8.449 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.1366, allocations: 3.984 kB / 338.7 MB, free: 8.445 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002039/0.1386, allocations: 1.333 MB / 340 MB, free: 7 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.1386, allocations: 8.094 kB / 340 MB, free: 6.992 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004822/0.1391, allocations: 119.8 kB / 340.1 MB, free: 6.875 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/0.1392, allocations: 11.94 kB / 340.1 MB, free: 6.863 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.454e-05/0.1392, allocations: 16 kB / 340.2 MB, free: 6.848 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.095e-05/0.1392, allocations: 15.98 kB / 340.2 MB, free: 6.832 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.1392, allocations: 7.938 kB / 340.2 MB, free: 6.824 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00133/0.1406, allocations: 0.8824 MB / 341.1 MB, free: 5.871 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.612e-05/0.1407, allocations: 116.7 kB / 341.2 MB, free: 5.738 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.797e-05/0.1407, allocations: 16 kB / 341.2 MB, free: 5.723 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002638/0.141, allocations: 23.98 kB / 341.2 MB, free: 5.699 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.1411, allocations: 59.81 kB / 341.3 MB, free: 5.641 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-05/0.1412, allocations: 20 kB / 341.3 MB, free: 5.621 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001273/0.1413, allocations: 136.6 kB / 341.4 MB, free: 5.488 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1413, allocations: 0 / 341.4 MB, free: 5.488 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000456/0.1418, allocations: 96 kB / 341.5 MB, free: 5.395 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.0001566/0.1419, allocations: 115.1 kB / 341.6 MB, free: 5.273 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009308/0.1429, allocations: 438.7 kB / 342.1 MB, free: 4.848 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.1429, allocations: 4 kB / 342.1 MB, free: 4.844 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004602/0.1434, allocations: 249.1 kB / 342.3 MB, free: 4.602 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007588/0.1441, allocations: 83.83 kB / 342.4 MB, free: 4.52 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001889/0.146, allocations: 1.155 MB / 343.6 MB, free: 3.281 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.1464, allocations: 0.7974 MB / 344.3 MB, free: 2.461 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002231/0.1467, allocations: 47.25 kB / 344.4 MB, free: 2.414 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.1468, allocations: 39.42 kB / 344.4 MB, free: 2.375 MB / 286.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1468, allocations: 0 / 344.4 MB, free: 2.375 MB / 286.1 MB Notification: Performance of Templates: time 0.008722/0.1555, allocations: 3.839 MB / 348.3 MB, free: 14.54 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/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