Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.ElastoGap") translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.ElastoGap") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002171/0.002171, allocations: 195.2 kB / 8.138 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.269/1.269, allocations: 194.2 MB / 202.8 MB, free: 8.688 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001758/0.001759, allocations: 121.1 kB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.624e-06/7.724e-06, allocations: 4 kB / 297.6 MB, free: 8.012 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07119/0.07122, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1912/0.2625, allocations: 71.26 MB / 413.3 MB, free: 23.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000175/0.2627, allocations: 63.72 kB / 413.4 MB, free: 23.8 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01394/0.2767, allocations: 5.3 MB / 418.7 MB, free: 19.55 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.594e-05/0.2767, allocations: 8 kB / 418.7 MB, free: 19.55 MB / 314.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.000721/0.2775, allocations: 0.5614 MB / 419.2 MB, free: 18.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.2775, allocations: 12.02 kB / 419.3 MB, free: 18.95 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.104e-05/0.2776, allocations: 39.53 kB / 419.3 MB, free: 18.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.2778, allocations: 246.9 kB / 419.5 MB, free: 18.65 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.2779, allocations: 8 kB / 419.5 MB, free: 18.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.186e-05/0.2779, allocations: 23.55 kB / 419.6 MB, free: 18.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003515/0.2783, allocations: 213.8 kB / 419.8 MB, free: 18.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.2786, allocations: 213.6 kB / 420 MB, free: 18.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.2786, allocations: 0 / 420 MB, free: 18.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/0.2786, allocations: 0 / 420 MB, free: 18.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.2787, allocations: 11.91 kB / 420 MB, free: 18.3 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.2797, allocations: 0.7363 MB / 420.7 MB, free: 17.69 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002673/0.28, allocations: 180.5 kB / 420.9 MB, free: 17.57 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002102/0.2803, allocations: 161.4 kB / 421.1 MB, free: 17.47 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.531e-05/0.2803, allocations: 15.97 kB / 421.1 MB, free: 17.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.375e-05/0.2803, allocations: 35.81 kB / 421.1 MB, free: 17.41 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 1.934e-06/0.2803, allocations: 4 kB / 421.1 MB, free: 17.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.002227/0.2826, allocations: 1.469 MB / 422.6 MB, free: 16.15 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.876e-05/0.2826, allocations: 56.06 kB / 422.6 MB, free: 16.08 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.2827, allocations: 159.8 kB / 422.8 MB, free: 15.93 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.2827, allocations: 25.7 kB / 422.8 MB, free: 15.9 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.664e-05/0.2828, allocations: 132 kB / 423 MB, free: 15.78 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.231e-05/0.2829, allocations: 215.8 kB / 423.2 MB, free: 15.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.864e-05/0.2829, allocations: 0 / 423.2 MB, free: 15.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.087e-05/0.283, allocations: 344.6 kB / 423.5 MB, free: 15.26 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.2832, allocations: 123.4 kB / 423.6 MB, free: 15.19 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/0.2833, allocations: 128.5 kB / 423.7 MB, free: 15.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.2836, allocations: 148 kB / 423.9 MB, free: 15.03 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.2836, allocations: 0 / 423.9 MB, free: 15.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0005115/0.2841, allocations: 410.5 kB / 424.3 MB, free: 14.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.2841, allocations: 4 kB / 424.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2841, allocations: 4 kB / 424.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.2841, allocations: 4 kB / 424.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005198/0.2847, allocations: 126.7 kB / 424.4 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.2847, allocations: 4 kB / 424.4 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.2849, allocations: 23.98 kB / 424.5 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.285, allocations: 19.12 kB / 424.5 MB, free: 14.55 MB / 314.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 () * 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 7.503e-05/0.285, allocations: 116.6 kB / 424.6 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.12e-05/0.2851, allocations: 35.53 kB / 424.6 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.351e-05/0.2852, allocations: 39.58 kB / 424.7 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.2852, allocations: 12 kB / 424.7 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2852, allocations: 0 / 424.7 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.2852, allocations: 3.984 kB / 424.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001351/0.2866, allocations: 1.157 MB / 425.8 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.2866, allocations: 5.75 kB / 425.8 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005448/0.2872, allocations: 135.3 kB / 426 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.295e-06/0.2872, allocations: 8 kB / 426 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.304e-05/0.2872, allocations: 11.98 kB / 426 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.2872, allocations: 4 kB / 426 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.2873, allocations: 11.94 kB / 426 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008701/0.2881, allocations: 0.9839 MB / 427 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.352e-05/0.2882, allocations: 112 kB / 427.1 MB, free: 12.08 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.723e-05/0.2883, allocations: 7.984 kB / 427.1 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003002/0.2886, allocations: 31.92 kB / 427.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.806e-05/0.2886, allocations: 46.98 kB / 427.2 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-05/0.2887, allocations: 19.62 kB / 427.2 MB, free: 11.99 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.571e-05/0.2888, allocations: 130.9 kB / 427.3 MB, free: 11.88 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003925/0.2891, allocations: 76 kB / 427.4 MB, free: 11.8 MB / 314.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 () * 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.0001545/0.2893, allocations: 113.9 kB / 427.5 MB, free: 11.69 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004643/0.2898, allocations: 358 kB / 427.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2898, allocations: 1.406 kB / 427.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002689/0.2901, allocations: 225 kB / 428.1 MB, free: 11.29 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004656/0.2905, allocations: 65.47 kB / 428.2 MB, free: 11.24 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.2917, allocations: 0.7907 MB / 428.9 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.2921, allocations: 0.8471 MB / 429.8 MB, free: 9.578 MB / 314.7 MB Notification: Performance of SimCode: time 3.61e-07/0.2921, allocations: 0 / 429.8 MB, free: 9.578 MB / 314.7 MB Notification: Performance of Templates: time 0.007326/0.2994, allocations: 4.215 MB / 434 MB, free: 5.434 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1)