Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.PreLoad.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.PreLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.PreLoad") translateModel(Modelica.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.PreLoad") [: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.001828/0.001828, allocations: 189.3 kB / 8.133 MB, free: 2.074 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.078/1.078, allocations: 194.2 MB / 202.8 MB, free: 8.66 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.001834/0.001835, allocations: 115.7 kB / 247.7 MB, free: 6.391 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.595e-06/7.715e-06, allocations: 4 kB / 297.6 MB, free: 7.992 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07217/0.07219, allocations: 44.48 MB / 342 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.187/0.2592, allocations: 72.76 MB / 414.8 MB, free: 22.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001597/0.2594, allocations: 68.66 kB / 414.9 MB, free: 22.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02319/0.2826, allocations: 8.763 MB / 423.6 MB, free: 15.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.2827, allocations: 12 kB / 423.6 MB, free: 15.24 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001087/0.2838, allocations: 0.7408 MB / 424.4 MB, free: 14.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.2838, allocations: 12.02 kB / 424.4 MB, free: 14.47 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.639e-05/0.2839, allocations: 55.56 kB / 424.5 MB, free: 14.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002939/0.2842, allocations: 309.4 kB / 424.8 MB, free: 14.1 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.2842, allocations: 23.69 kB / 424.8 MB, free: 14.08 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.256e-05/0.2843, allocations: 31.98 kB / 424.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005697/0.2849, allocations: 345.6 kB / 425.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005293/0.2854, allocations: 335.5 kB / 425.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.2855, allocations: 7.375 kB / 425.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.2855, allocations: 4 kB / 425.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.2855, allocations: 8 kB / 425.5 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002028/0.2876, allocations: 1.305 MB / 426.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004182/0.288, allocations: 303.6 kB / 427.1 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005055/0.2885, allocations: 314.8 kB / 427.4 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.347e-05/0.2886, allocations: 15.89 kB / 427.4 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.281e-05/0.2886, allocations: 38.59 kB / 427.5 MB, free: 12.06 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 1.903e-06/0.2886, allocations: 4 kB / 427.5 MB, free: 12.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=103): time 0.003339/0.2919, allocations: 2.198 MB / 429.7 MB, free: 10.24 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.744e-05/0.292, allocations: 60.41 kB / 429.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.2921, allocations: 207.8 kB / 429.9 MB, free: 9.996 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.499e-05/0.2922, allocations: 25.7 kB / 429.9 MB, free: 9.965 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.596e-05/0.2922, allocations: 163.1 kB / 430.1 MB, free: 9.812 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/0.2924, allocations: 338.8 kB / 430.4 MB, free: 9.516 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.2924, allocations: 4 kB / 430.4 MB, free: 9.512 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.865e-05/0.2925, allocations: 364.2 kB / 430.8 MB, free: 9.168 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003215/0.2928, allocations: 204.7 kB / 431 MB, free: 9.051 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003871/0.2932, allocations: 277.7 kB / 431.3 MB, free: 8.871 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.2935, allocations: 230.2 kB / 431.5 MB, free: 8.734 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2936, allocations: 3.938 kB / 431.5 MB, free: 8.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.0008881/0.2945, allocations: 0.6253 MB / 432.1 MB, free: 8.258 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.2945, allocations: 4 kB / 432.1 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.2945, allocations: 0 / 432.1 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.2945, allocations: 8 kB / 432.1 MB, free: 8.246 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008909/0.2954, allocations: 228.2 kB / 432.4 MB, free: 8.031 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.2954, allocations: 4.703 kB / 432.4 MB, free: 8.027 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003845/0.2958, allocations: 43.97 kB / 432.4 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.368e-05/0.2959, allocations: 30.17 kB / 432.4 MB, free: 7.961 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * 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.0001047/0.296, allocations: 119.9 kB / 432.5 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.386e-05/0.2961, allocations: 55.34 kB / 432.6 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001357/0.2962, allocations: 59.36 kB / 432.7 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.2962, allocations: 12 kB / 432.7 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.2962, allocations: 0 / 432.7 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.2963, allocations: 3.984 kB / 432.7 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.2984, allocations: 1.743 MB / 434.4 MB, free: 6.312 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.211e-06/0.2984, allocations: 14.62 kB / 434.4 MB, free: 6.301 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009126/0.2994, allocations: 225.5 kB / 434.7 MB, free: 6.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.138e-05/0.2994, allocations: 8 kB / 434.7 MB, free: 6.082 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.887e-05/0.2994, allocations: 8 kB / 434.7 MB, free: 6.074 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.575e-06/0.2994, allocations: 11.98 kB / 434.7 MB, free: 6.062 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.2995, allocations: 16.94 kB / 434.7 MB, free: 6.047 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001329/0.3008, allocations: 1.378 MB / 436.1 MB, free: 4.801 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.578e-05/0.3009, allocations: 127.5 kB / 436.2 MB, free: 4.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.421e-05/0.301, allocations: 7.984 kB / 436.2 MB, free: 4.652 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004612/0.3014, allocations: 51.97 kB / 436.3 MB, free: 4.602 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.962e-05/0.3015, allocations: 71.47 kB / 436.3 MB, free: 4.543 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.676e-05/0.3016, allocations: 31.75 kB / 436.4 MB, free: 4.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.379e-05/0.3017, allocations: 150.2 kB / 436.5 MB, free: 4.391 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004569/0.3021, allocations: 120 kB / 436.6 MB, free: 4.273 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * 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.0001369/0.3023, allocations: 122.9 kB / 436.7 MB, free: 4.148 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000766/0.3031, allocations: 0.592 MB / 437.3 MB, free: 3.742 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3031, allocations: 0 / 437.3 MB, free: 3.742 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000464/0.3035, allocations: 372.2 kB / 437.7 MB, free: 3.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/0.3041, allocations: 82.03 kB / 437.8 MB, free: 3.422 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001891/0.306, allocations: 1.202 MB / 439 MB, free: 2.277 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004581/0.3065, allocations: 0.946 MB / 439.9 MB, free: 1.309 MB / 314.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3065, allocations: 0 / 439.9 MB, free: 1.309 MB / 314.7 MB Notification: Performance of Templates: time 0.01227/0.3188, allocations: 6.847 MB / 446.8 MB, free: 10.51 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.PreLoad.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.PreLoad.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.PreLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1)