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.001319/0.001319, allocations: 109.9 kB / 18.25 MB, free: 4.77 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.001236/0.001236, allocations: 195.6 kB / 19.18 MB, free: 3.844 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.5/1.5, allocations: 205.1 MB / 225 MB, free: 12.29 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.002346/0.002346, allocations: 52.14 kB / 281.3 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1388, allocations: 46.63 MB / 328 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004569/0.1434, allocations: 2.588 MB / 330.5 MB, free: 1.863 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009385/0.1444, allocations: 374.8 kB / 330.9 MB, free: 1.496 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.1445, allocations: 7.938 kB / 330.9 MB, free: 1.488 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001754/0.1448, allocations: 47.52 kB / 331 MB, free: 1.441 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000181/0.145, allocations: 99.11 kB / 331.1 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003432/0.1453, allocations: 91.83 kB / 331.1 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003661/0.1457, allocations: 378.4 kB / 331.5 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002362/0.1459, allocations: 111.4 kB / 331.6 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.1461, allocations: 135.6 kB / 331.8 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002024/0.1463, allocations: 167.3 kB / 331.9 MB, free: 488 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.817e-05/0.1463, allocations: 32 kB / 332 MB, free: 456 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.625e-05/0.1464, allocations: 28 kB / 332 MB, free: 428 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.138e-05/0.1465, allocations: 63.77 kB / 332 MB, free: 364 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.1466, allocations: 175.1 kB / 332.2 MB, free: 188 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003742/0.147, allocations: 370.7 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.147, allocations: 0 / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.147, allocations: 0 / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.1471, allocations: 0 / 332.6 MB, free: 15.82 MB / 286.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.001052/0.1481, allocations: 0.6236 MB / 333.2 MB, free: 15.14 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.1482, allocations: 8.031 kB / 333.2 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.134e-05/0.1482, allocations: 44.5 kB / 333.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.1485, allocations: 259.6 kB / 333.5 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.835e-05/0.1486, allocations: 20.94 kB / 333.5 MB, free: 14.78 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.806e-05/0.1486, allocations: 36.36 kB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005343/0.1492, allocations: 273.3 kB / 333.8 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.1492, allocations: 4.094 kB / 333.8 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.74e-05/0.1493, allocations: 15.94 kB / 333.8 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.1493, allocations: 8 kB / 333.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005671/0.1499, allocations: 266.1 kB / 334.1 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.1511, allocations: 0.8068 MB / 334.9 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005892/0.1517, allocations: 346.8 kB / 335.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003395/0.1521, allocations: 196.8 kB / 335.5 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.711e-05/0.1521, allocations: 15.98 kB / 335.5 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.1521, allocations: 34.5 kB / 335.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.583e-06/0.1521, allocations: 0 / 335.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.004144/0.1563, allocations: 1.961 MB / 337.5 MB, free: 10.68 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.1563, allocations: 55.97 kB / 337.5 MB, free: 10.61 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/0.1565, allocations: 198.7 kB / 337.7 MB, free: 10.4 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.32e-05/0.1566, allocations: 37.7 kB / 337.7 MB, free: 10.36 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.596e-05/0.1567, allocations: 148.9 kB / 337.9 MB, free: 10.21 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.1568, allocations: 212.8 kB / 338.1 MB, free: 9.996 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.157, allocations: 90.25 kB / 338.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1571, allocations: 362.6 kB / 338.5 MB, free: 9.535 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003441/0.1575, allocations: 161 kB / 338.7 MB, free: 9.379 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003244/0.1578, allocations: 173 kB / 338.9 MB, free: 9.211 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000699/0.1585, allocations: 376 kB / 339.2 MB, free: 8.84 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1585, allocations: 4 kB / 339.2 MB, free: 8.836 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008493/0.1594, allocations: 478.7 kB / 339.7 MB, free: 8.363 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.1594, allocations: 4 kB / 339.7 MB, free: 8.359 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.1594, allocations: 0 / 339.7 MB, free: 8.359 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.1594, allocations: 4 kB / 339.7 MB, free: 8.355 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004752/0.1599, allocations: 123.8 kB / 339.8 MB, free: 8.234 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.1599, allocations: 4 kB / 339.8 MB, free: 8.23 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002094/0.1602, allocations: 23.98 kB / 339.9 MB, free: 8.207 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.1602, allocations: 19.94 kB / 339.9 MB, free: 8.188 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.0001952/0.1604, allocations: 165.7 kB / 340 MB, free: 8.016 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.627e-05/0.1605, allocations: 31.62 kB / 340.1 MB, free: 7.984 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.73e-05/0.1606, allocations: 47.33 kB / 340.1 MB, free: 7.941 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.1606, allocations: 8 kB / 340.1 MB, free: 7.934 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.1606, allocations: 0 / 340.1 MB, free: 7.934 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.1606, allocations: 7.984 kB / 340.1 MB, free: 7.926 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002078/0.1627, allocations: 1.321 MB / 341.5 MB, free: 6.488 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.1627, allocations: 8 kB / 341.5 MB, free: 6.48 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005126/0.1633, allocations: 120.4 kB / 341.6 MB, free: 6.363 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.331e-05/0.1633, allocations: 15.94 kB / 341.6 MB, free: 6.348 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.926e-05/0.1633, allocations: 19.98 kB / 341.6 MB, free: 6.328 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.157e-06/0.1634, allocations: 8 kB / 341.6 MB, free: 6.32 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-06/0.1634, allocations: 7.938 kB / 341.6 MB, free: 6.312 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/0.1647, allocations: 0.8706 MB / 342.5 MB, free: 5.371 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.876e-05/0.1648, allocations: 116.7 kB / 342.6 MB, free: 5.238 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.563e-05/0.1649, allocations: 16 kB / 342.6 MB, free: 5.223 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002707/0.1652, allocations: 24.08 kB / 342.7 MB, free: 5.199 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.465e-05/0.1653, allocations: 55.8 kB / 342.7 MB, free: 5.145 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.1653, allocations: 28 kB / 342.7 MB, free: 5.117 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001268/0.1655, allocations: 140.4 kB / 342.9 MB, free: 4.98 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1655, allocations: 3.938 kB / 342.9 MB, free: 4.977 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004197/0.1659, allocations: 100 kB / 343 MB, free: 4.879 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.0001481/0.1661, allocations: 119.1 kB / 343.1 MB, free: 4.754 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.1671, allocations: 470.5 kB / 343.6 MB, free: 4.293 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/0.1671, allocations: 4 kB / 343.6 MB, free: 4.289 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000461/0.1676, allocations: 249.1 kB / 343.8 MB, free: 4.047 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007072/0.1683, allocations: 83.89 kB / 343.9 MB, free: 3.965 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/0.1701, allocations: 1.05 MB / 344.9 MB, free: 2.824 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003815/0.1705, allocations: 0.7894 MB / 345.7 MB, free: 2.012 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.1707, allocations: 43.36 kB / 345.8 MB, free: 1.969 MB / 286.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1707, allocations: 0 / 345.8 MB, free: 1.969 MB / 286.1 MB Notification: Performance of Templates: time 0.008007/0.1787, allocations: 4.554 MB / 350.3 MB, free: 13.42 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches