Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap") translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001121/0.001121, allocations: 91.22 kB / 15.06 MB, free: 1.098 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.001196/0.001196, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.547/1.547, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.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.0004875/0.0004876, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2778, allocations: 47.58 MB / 326.5 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002537/0.2804, allocations: 2.172 MB / 328.6 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006751/0.2811, allocations: 354.9 kB / 329 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.2812, allocations: 8.156 kB / 329 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.2814, allocations: 36.97 kB / 329 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001456/0.2815, allocations: 82.22 kB / 329.1 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002772/0.2818, allocations: 74.02 kB / 329.2 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003352/0.2821, allocations: 344.4 kB / 329.5 MB, free: 15 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001983/0.2824, allocations: 84.73 kB / 329.6 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001478/0.2825, allocations: 121.2 kB / 329.7 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.2827, allocations: 145.3 kB / 329.9 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.15e-05/0.2828, allocations: 15.06 kB / 329.9 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.895e-05/0.2828, allocations: 15.78 kB / 329.9 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.989e-05/0.2829, allocations: 53.44 kB / 330 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.925e-05/0.283, allocations: 83.23 kB / 330 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.2833, allocations: 256.8 kB / 330.3 MB, free: 14.51 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.2833, allocations: 5 kB / 330.3 MB, free: 14.5 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2833, allocations: 0 / 330.3 MB, free: 14.5 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.2833, allocations: 0 / 330.3 MB, free: 14.5 MB / 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.001018/0.2843, allocations: 0.5963 MB / 330.9 MB, free: 13.99 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.2844, allocations: 8.875 kB / 330.9 MB, free: 13.99 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.608e-05/0.2845, allocations: 37.12 kB / 330.9 MB, free: 13.97 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.2848, allocations: 261 kB / 331.2 MB, free: 13.7 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.082e-05/0.2848, allocations: 24.27 kB / 331.2 MB, free: 13.69 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.887e-05/0.2849, allocations: 38.89 kB / 331.2 MB, free: 13.67 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005459/0.2854, allocations: 278.1 kB / 331.5 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.2855, allocations: 6.156 kB / 331.5 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.643e-05/0.2855, allocations: 9.5 kB / 331.5 MB, free: 13.49 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.2855, allocations: 7.406 kB / 331.5 MB, free: 13.49 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005677/0.2861, allocations: 282.7 kB / 331.8 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.2874, allocations: 0.7941 MB / 332.6 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006377/0.2881, allocations: 367.1 kB / 333 MB, free: 12.52 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003645/0.2885, allocations: 204.4 kB / 333.2 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.716e-05/0.2885, allocations: 8.438 kB / 333.2 MB, free: 12.42 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.2885, allocations: 37.41 kB / 333.2 MB, free: 12.38 MB / 270.1 MB Notification: Performance of pre-optimization done (n=43): time 1.633e-06/0.2885, allocations: 0 / 333.2 MB, free: 12.38 MB / 270.1 MB Notification: Performance of matching and sorting (n=63): time 0.00419/0.2927, allocations: 2.039 MB / 335.3 MB, free: 10.45 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.2928, allocations: 59.97 kB / 335.3 MB, free: 10.38 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.293, allocations: 198.7 kB / 335.5 MB, free: 10.18 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/0.293, allocations: 41.64 kB / 335.5 MB, free: 10.13 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.451e-05/0.2931, allocations: 148.9 kB / 335.7 MB, free: 9.977 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.2933, allocations: 216.8 kB / 335.9 MB, free: 9.762 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.248e-05/0.2933, allocations: 12 kB / 335.9 MB, free: 9.75 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.2934, allocations: 338.8 kB / 336.2 MB, free: 9.41 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003143/0.2938, allocations: 177 kB / 336.4 MB, free: 9.238 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003137/0.2941, allocations: 173 kB / 336.6 MB, free: 9.066 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003364/0.2944, allocations: 186.2 kB / 336.8 MB, free: 8.887 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.2944, allocations: 0 / 336.8 MB, free: 8.887 MB / 270.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007936/0.2952, allocations: 498.7 kB / 337.3 MB, free: 8.395 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.2953, allocations: 4 kB / 337.3 MB, free: 8.391 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.2953, allocations: 0 / 337.3 MB, free: 8.391 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.2953, allocations: 4 kB / 337.3 MB, free: 8.387 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004677/0.2958, allocations: 127.8 kB / 337.4 MB, free: 8.262 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.2958, allocations: 4 kB / 337.4 MB, free: 8.258 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000192/0.296, allocations: 35.94 kB / 337.4 MB, free: 8.223 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.121e-05/0.296, allocations: 19.94 kB / 337.4 MB, free: 8.203 MB / 270.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.0001613/0.2962, allocations: 161.7 kB / 337.6 MB, free: 8.035 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.186e-05/0.2963, allocations: 35.61 kB / 337.6 MB, free: 8 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001055/0.2964, allocations: 43.34 kB / 337.7 MB, free: 7.961 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.2964, allocations: 12 kB / 337.7 MB, free: 7.949 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.2964, allocations: 0 / 337.7 MB, free: 7.949 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.2964, allocations: 3.984 kB / 337.7 MB, free: 7.945 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001869/0.2983, allocations: 1.317 MB / 339 MB, free: 6.516 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.2983, allocations: 4 kB / 339 MB, free: 6.512 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004737/0.2988, allocations: 127.8 kB / 339.1 MB, free: 6.387 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.2988, allocations: 8.531 kB / 339.2 MB, free: 6.379 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.54e-05/0.2989, allocations: 23.94 kB / 339.2 MB, free: 6.355 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.865e-06/0.2989, allocations: 12 kB / 339.2 MB, free: 6.344 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.2989, allocations: 7.938 kB / 339.2 MB, free: 6.336 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.3001, allocations: 0.8979 MB / 340.1 MB, free: 5.363 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.517e-05/0.3002, allocations: 108.8 kB / 340.2 MB, free: 5.238 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.291e-05/0.3003, allocations: 20 kB / 340.2 MB, free: 5.219 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.3005, allocations: 43.92 kB / 340.3 MB, free: 5.176 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.775e-05/0.3006, allocations: 47.97 kB / 340.3 MB, free: 5.129 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.047e-05/0.3007, allocations: 20 kB / 340.3 MB, free: 5.109 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001325/0.3008, allocations: 148.3 kB / 340.5 MB, free: 4.965 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3008, allocations: 4 kB / 340.5 MB, free: 4.961 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003949/0.3012, allocations: 92 kB / 340.6 MB, free: 4.871 MB / 270.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.0001431/0.3013, allocations: 127 kB / 340.7 MB, free: 4.738 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000788/0.3021, allocations: 447.1 kB / 341.1 MB, free: 4.301 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3022, allocations: 0 / 341.1 MB, free: 4.301 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000429/0.3026, allocations: 268.4 kB / 341.4 MB, free: 4.039 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006567/0.3033, allocations: 75.89 kB / 341.5 MB, free: 3.965 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.305, allocations: 1.205 MB / 342.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.3054, allocations: 0.7935 MB / 343.5 MB, free: 1.855 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0002122/0.3056, allocations: 51.25 kB / 343.5 MB, free: 1.805 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.3058, allocations: 35.42 kB / 343.5 MB, free: 1.77 MB / 270.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3058, allocations: 0 / 343.5 MB, free: 1.77 MB / 270.1 MB Notification: Performance of Templates: time 0.007244/0.313, allocations: 3.654 MB / 347.2 MB, free: 14.12 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1)