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.0009971/0.0009971, allocations: 178.6 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.637/1.637, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0008188/0.0008189, allocations: 94.22 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003468, allocations: 12 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2684, allocations: 47.58 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002776/0.2713, allocations: 2.169 MB / 377.3 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.2724, allocations: 362.4 kB / 377.6 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003438/0.2727, allocations: 4.812 kB / 377.6 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001916/0.273, allocations: 36.94 kB / 377.7 MB, free: 43.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003566/0.2733, allocations: 82.03 kB / 377.7 MB, free: 43.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003877/0.2737, allocations: 74.77 kB / 377.8 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004698/0.2742, allocations: 345.8 kB / 378.2 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002493/0.2745, allocations: 96.67 kB / 378.2 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001548/0.2746, allocations: 121 kB / 378.4 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001811/0.2748, allocations: 140.7 kB / 378.5 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.613e-05/0.2749, allocations: 19.31 kB / 378.5 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.687e-05/0.2749, allocations: 16.56 kB / 378.5 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.225e-05/0.275, allocations: 52.38 kB / 378.6 MB, free: 42.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001587/0.2752, allocations: 166.1 kB / 378.8 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002451/0.2754, allocations: 263.6 kB / 379 MB, free: 42.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.2754, allocations: 1.156 kB / 379 MB, free: 42.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2754, allocations: 0 / 379 MB, free: 42.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.2755, allocations: 0 / 379 MB, free: 42.46 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.0009883/0.2764, allocations: 0.5944 MB / 379.6 MB, free: 41.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.2765, allocations: 13.25 kB / 379.6 MB, free: 41.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.686e-05/0.2766, allocations: 33 kB / 379.6 MB, free: 41.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.2769, allocations: 273 kB / 379.9 MB, free: 41.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.766e-05/0.2769, allocations: 20.94 kB / 379.9 MB, free: 41.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.373e-05/0.277, allocations: 34.53 kB / 380 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005582/0.2775, allocations: 284.1 kB / 380.2 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.2776, allocations: 1.562 kB / 380.2 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.731e-05/0.2776, allocations: 13.25 kB / 380.3 MB, free: 41.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.2776, allocations: 6.781 kB / 380.3 MB, free: 41.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006393/0.2783, allocations: 283.7 kB / 380.5 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.2795, allocations: 0.7974 MB / 381.3 MB, free: 40.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006098/0.2801, allocations: 375.8 kB / 381.7 MB, free: 40.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003558/0.2805, allocations: 204.4 kB / 381.9 MB, free: 40.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.196e-05/0.2805, allocations: 4.781 kB / 381.9 MB, free: 40.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.2806, allocations: 37.06 kB / 381.9 MB, free: 40.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.585e-06/0.2806, allocations: 0 / 381.9 MB, free: 40.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.004253/0.2848, allocations: 2.033 MB / 384 MB, free: 39.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.2849, allocations: 62.14 kB / 384 MB, free: 39.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.2851, allocations: 197.9 kB / 384.2 MB, free: 38.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.2851, allocations: 36.14 kB / 384.3 MB, free: 38.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.367e-05/0.2852, allocations: 143.4 kB / 384.4 MB, free: 38.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.2853, allocations: 215.3 kB / 384.6 MB, free: 38.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.364e-05/0.2854, allocations: 9.656 kB / 384.6 MB, free: 38.51 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.1e-05/0.2854, allocations: 349.5 kB / 385 MB, free: 38.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003525/0.2858, allocations: 171.7 kB / 385.1 MB, free: 38.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003291/0.2861, allocations: 175 kB / 385.3 MB, free: 38.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000675/0.2868, allocations: 386.8 kB / 385.7 MB, free: 37.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.2868, allocations: 0 / 385.7 MB, free: 37.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0006934/0.2875, allocations: 498.7 kB / 386.2 MB, free: 37.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.2876, allocations: 11.94 kB / 386.2 MB, free: 37.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2876, allocations: 0 / 386.2 MB, free: 37.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.2876, allocations: 4 kB / 386.2 MB, free: 37.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004234/0.288, allocations: 131.8 kB / 386.3 MB, free: 37.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.288, allocations: 0 / 386.3 MB, free: 37.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000179/0.2882, allocations: 27.98 kB / 386.3 MB, free: 37.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.139e-05/0.2883, allocations: 27.92 kB / 386.4 MB, free: 37.12 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.0001355/0.2884, allocations: 162.6 kB / 386.5 MB, free: 36.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.653e-05/0.2885, allocations: 35.53 kB / 386.6 MB, free: 36.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.941e-05/0.2886, allocations: 55.33 kB / 386.6 MB, free: 36.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.2886, allocations: 4 kB / 386.6 MB, free: 36.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.2886, allocations: 0 / 386.6 MB, free: 36.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.2886, allocations: 0 / 386.6 MB, free: 36.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/0.2902, allocations: 1.336 MB / 388 MB, free: 35.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.2902, allocations: 4.562 kB / 388 MB, free: 35.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004455/0.2907, allocations: 131.8 kB / 388.1 MB, free: 35.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.395e-06/0.2907, allocations: 11.94 kB / 388.1 MB, free: 35.26 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.188e-05/0.2907, allocations: 16 kB / 388.1 MB, free: 35.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.215e-06/0.2908, allocations: 11.98 kB / 388.1 MB, free: 35.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.2908, allocations: 7.938 kB / 388.1 MB, free: 35.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.2919, allocations: 0.8941 MB / 389 MB, free: 34.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.568e-05/0.2919, allocations: 112.7 kB / 389.1 MB, free: 34.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.704e-05/0.292, allocations: 20.03 kB / 389.2 MB, free: 34.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002325/0.2922, allocations: 31.98 kB / 389.2 MB, free: 34.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.606e-05/0.2923, allocations: 51.83 kB / 389.2 MB, free: 34.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.962e-05/0.2924, allocations: 23.98 kB / 389.3 MB, free: 34.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.333e-05/0.2925, allocations: 144.4 kB / 389.4 MB, free: 33.87 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2925, allocations: 0 / 389.4 MB, free: 33.87 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003409/0.2928, allocations: 92 kB / 389.5 MB, free: 33.78 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.0001239/0.2929, allocations: 119.1 kB / 389.6 MB, free: 33.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006812/0.2936, allocations: 450.7 kB / 390.1 MB, free: 33.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.2937, allocations: 0 / 390.1 MB, free: 33.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003605/0.294, allocations: 267.9 kB / 390.3 MB, free: 32.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006824/0.2947, allocations: 81.11 kB / 390.4 MB, free: 32.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.2963, allocations: 1.234 MB / 391.6 MB, free: 31.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.2965, allocations: 0.7896 MB / 392.4 MB, free: 30.74 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.2966, allocations: 43.42 kB / 392.5 MB, free: 30.7 MB / 298.7 MB Notification: Performance of SimCode: time 3.8e-07/0.2967, allocations: 3.938 kB / 392.5 MB, free: 30.7 MB / 298.7 MB Notification: Performance of Templates: time 0.006479/0.3031, allocations: 4.493 MB / 397 MB, free: 26.21 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/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_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches