Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006811/0.006816, allocations: 183.5 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.357/3.357, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001753/0.001753, allocations: 96.45 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006109/0.0006113, allocations: 8 kB / 327 MB, free: 228 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5035/0.5041, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004772/0.509, allocations: 2.054 MB / 376.6 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.5107, allocations: 384.2 kB / 377 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004518/0.5112, allocations: 4.188 kB / 377 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.5114, allocations: 39.94 kB / 377 MB, free: 43.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001017/0.5125, allocations: 112 kB / 377.1 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00147/0.514, allocations: 73.33 kB / 377.2 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001178/0.5153, allocations: 254.7 kB / 377.4 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003602/0.5157, allocations: 84.31 kB / 377.5 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003156/0.516, allocations: 122.7 kB / 377.6 MB, free: 43.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003201/0.5164, allocations: 141.1 kB / 377.8 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.408e-05/0.5165, allocations: 16.09 kB / 377.8 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.843e-05/0.5166, allocations: 15.66 kB / 377.8 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.722e-05/0.5167, allocations: 53.09 kB / 377.8 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.5168, allocations: 83.33 kB / 377.9 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005078/0.5173, allocations: 258.8 kB / 378.2 MB, free: 42.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.5174, allocations: 0 / 378.2 MB, free: 42.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.696e-06/0.5174, allocations: 0 / 378.2 MB, free: 42.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.5174, allocations: 4.906 kB / 378.2 MB, free: 42.68 MB / 298.7 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.002136/0.5196, allocations: 0.5952 MB / 378.8 MB, free: 42.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.713e-05/0.5197, allocations: 9.656 kB / 378.8 MB, free: 42.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001939/0.5199, allocations: 33.12 kB / 378.8 MB, free: 42.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005781/0.5205, allocations: 267.4 kB / 379.1 MB, free: 41.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.68e-05/0.5205, allocations: 27.58 kB / 379.1 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.5207, allocations: 26.69 kB / 379.1 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.522, allocations: 280.4 kB / 379.4 MB, free: 41.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.212e-05/0.5221, allocations: 5.062 kB / 379.4 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.329e-05/0.5221, allocations: 14.53 kB / 379.4 MB, free: 41.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.129e-05/0.5222, allocations: 7.344 kB / 379.4 MB, free: 41.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00148/0.5237, allocations: 282.8 kB / 379.7 MB, free: 41.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002722/0.5264, allocations: 0.8014 MB / 380.5 MB, free: 40.9 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001419/0.5279, allocations: 362.9 kB / 380.9 MB, free: 40.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.056e-05/0.528, allocations: 5.625 kB / 380.9 MB, free: 40.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.545e-05/0.5281, allocations: 43.89 kB / 380.9 MB, free: 40.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 4.429e-06/0.5281, allocations: 0 / 380.9 MB, free: 40.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.0105/0.5386, allocations: 2.034 MB / 383 MB, free: 39.42 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.5387, allocations: 58.78 kB / 383 MB, free: 39.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003669/0.5391, allocations: 202.5 kB / 383.2 MB, free: 39.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.092e-05/0.5392, allocations: 35.58 kB / 383.2 MB, free: 39.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.5393, allocations: 206.9 kB / 383.4 MB, free: 38.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002973/0.5397, allocations: 213.8 kB / 383.7 MB, free: 38.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.295e-05/0.5397, allocations: 14.59 kB / 383.7 MB, free: 38.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.5398, allocations: 335.1 kB / 384 MB, free: 38.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008484/0.5407, allocations: 166.9 kB / 384.2 MB, free: 38.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008449/0.5416, allocations: 173.3 kB / 384.3 MB, free: 38.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008976/0.5425, allocations: 186.3 kB / 384.5 MB, free: 38.19 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-06/0.5425, allocations: 0 / 384.5 MB, free: 38.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002215/0.5448, allocations: 483.8 kB / 385 MB, free: 37.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.059e-05/0.5448, allocations: 4.312 kB / 385 MB, free: 37.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.5449, allocations: 1.156 kB / 385 MB, free: 37.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.352e-05/0.5449, allocations: 5.969 kB / 385 MB, free: 37.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.5462, allocations: 134 kB / 385.1 MB, free: 37.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.05e-05/0.5462, allocations: 1.938 kB / 385.1 MB, free: 37.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005959/0.5468, allocations: 27.95 kB / 385.2 MB, free: 37.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.033e-05/0.5469, allocations: 19.77 kB / 385.2 MB, free: 37.9 MB / 298.7 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.0003689/0.5473, allocations: 163.9 kB / 385.3 MB, free: 37.74 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001691/0.5475, allocations: 35.56 kB / 385.4 MB, free: 37.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001891/0.5477, allocations: 47.33 kB / 385.4 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/0.5477, allocations: 8 kB / 385.4 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-05/0.5478, allocations: 0 / 385.4 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/0.5478, allocations: 3.984 kB / 385.4 MB, free: 37.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004073/0.5519, allocations: 1.329 MB / 386.8 MB, free: 36.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/0.552, allocations: 4.562 kB / 386.8 MB, free: 36.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.5532, allocations: 131.8 kB / 386.9 MB, free: 36.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-05/0.5532, allocations: 8 kB / 386.9 MB, free: 36.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.801e-05/0.5533, allocations: 19.98 kB / 386.9 MB, free: 36.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.681e-05/0.5534, allocations: 7.953 kB / 386.9 MB, free: 36.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-05/0.5534, allocations: 11.94 kB / 386.9 MB, free: 36.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003054/0.5565, allocations: 1.1 MB / 388 MB, free: 34.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001948/0.5567, allocations: 116.6 kB / 388.1 MB, free: 34.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.5568, allocations: 23.98 kB / 388.2 MB, free: 34.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000635/0.5575, allocations: 31.98 kB / 388.2 MB, free: 34.56 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.5577, allocations: 47.84 kB / 388.2 MB, free: 34.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.916e-05/0.5578, allocations: 27.98 kB / 388.3 MB, free: 34.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002041/0.558, allocations: 148.4 kB / 388.4 MB, free: 34.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.558, allocations: 3.938 kB / 388.4 MB, free: 34.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009137/0.5589, allocations: 96 kB / 388.5 MB, free: 34.24 MB / 298.7 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.0002163/0.5592, allocations: 115.1 kB / 388.6 MB, free: 34.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001816/0.561, allocations: 450.7 kB / 389.1 MB, free: 33.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.727e-06/0.561, allocations: 0 / 389.1 MB, free: 33.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009906/0.562, allocations: 264.7 kB / 389.3 MB, free: 33.42 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.5632, allocations: 67.89 kB / 389.4 MB, free: 33.36 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003452/0.5667, allocations: 1.23 MB / 390.6 MB, free: 32.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.5672, allocations: 0.8052 MB / 391.4 MB, free: 31.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003587/0.5675, allocations: 43.42 kB / 391.5 MB, free: 31.16 MB / 298.7 MB Notification: Performance of SimCode: time 1.392e-06/0.5676, allocations: 0 / 391.5 MB, free: 31.16 MB / 298.7 MB Notification: Performance of Templates: time 0.01409/0.5817, allocations: 4.404 MB / 395.9 MB, free: 26.78 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches