Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [: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.1+maint.om/package.mo): time 0.003683/0.003683, allocations: 177.9 kB / 7.45 MB, free: 2.48 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.345/1.345, allocations: 170.6 MB / 178.4 MB, free: 15.39 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001714/0.001714, allocations: 107.8 kB / 217.7 MB, free: 8.16 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.692e-06/6.702e-06, allocations: 0 / 261.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06931/0.06933, allocations: 38.77 MB / 300.5 MB, free: 3.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2794/0.3487, allocations: 78.68 MB / 379.2 MB, free: 5.953 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.3491, allocations: 82.52 kB / 379.3 MB, free: 5.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.1921/0.5411, allocations: 54.54 MB / 433.8 MB, free: 5.266 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001885/0.5414, allocations: 44 kB / 433.9 MB, free: 5.223 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: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.01387/0.5553, allocations: 2.783 MB / 436.6 MB, free: 2.383 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.5553, allocations: 8.031 kB / 436.7 MB, free: 2.375 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009176/0.5645, allocations: 1.611 MB / 438.3 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01163/0.5762, allocations: 3.615 MB / 441.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000231/0.5765, allocations: 83.91 kB / 442 MB, free: 13.01 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001725/0.5782, allocations: 144 kB / 442.1 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009976/0.5882, allocations: 4.136 MB / 446.2 MB, free: 8.727 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01558/0.6038, allocations: 6.298 MB / 452.5 MB, free: 1.695 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002266/0.6041, allocations: 39.62 kB / 452.6 MB, free: 1.656 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001415/0.6055, allocations: 24 kB / 452.6 MB, free: 1.633 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001457/0.607, allocations: 0.7537 MB / 453.3 MB, free: 0.875 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2123/0.8193, allocations: 31.65 MB / 485 MB, free: 106.1 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004131/0.8235, allocations: 2.031 MB / 487 MB, free: 105.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002304/0.8258, allocations: 1.135 MB / 488.2 MB, free: 105.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01133/0.8372, allocations: 4.178 MB / 492.3 MB, free: 103.9 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.8373, allocations: 44.38 kB / 492.4 MB, free: 103.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=105): time 6.933e-06/0.8373, allocations: 0 / 492.4 MB, free: 103.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=118): time 0.03788/0.8752, allocations: 8.92 MB / 0.4896 GB, free: 101.9 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.55e-05/0.8754, allocations: 142.6 kB / 0.4897 GB, free: 101.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004679/0.8801, allocations: 2.143 MB / 0.4918 GB, free: 101.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003833/0.8805, allocations: 25.7 kB / 0.4918 GB, free: 101.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001358/0.8818, allocations: 2.016 MB / 0.4938 GB, free: 100.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007671/0.8826, allocations: 486.1 kB / 0.4942 GB, free: 100 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.8829, allocations: 0 / 0.4942 GB, free: 100 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003192/0.8832, allocations: 0.5416 MB / 0.4948 GB, free: 99.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001966/0.8852, allocations: 1.565 MB / 0.4963 GB, free: 99.68 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003712/0.8889, allocations: 4.416 MB / 0.5006 GB, free: 95.95 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004019/0.8929, allocations: 2.811 MB / 0.5034 GB, free: 95.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.162e-05/0.893, allocations: 34.7 kB / 0.5034 GB, free: 95.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.01231/0.9053, allocations: 6.484 MB / 0.5097 GB, free: 93.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.9054, allocations: 7.312 kB / 0.5097 GB, free: 93.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005999/0.9114, allocations: 2.542 MB / 0.5122 GB, free: 92.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005136/0.9165, allocations: 1.338 MB / 0.5135 GB, free: 92.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003948/0.9205, allocations: 1.037 MB / 0.5145 GB, free: 92.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/0.9307, allocations: 7.12 MB / 0.5215 GB, free: 85.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004655/0.9354, allocations: 230.6 kB / 0.5217 GB, free: 85.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001216/0.9366, allocations: 291.7 kB / 0.522 GB, free: 85.25 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 468 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (555): * Single equations (assignments): 547 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001945/0.9386, allocations: 352.2 kB / 0.5223 GB, free: 84.89 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001071/0.9397, allocations: 212.5 kB / 0.5225 GB, free: 84.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007837/0.9475, allocations: 2.88 MB / 0.5253 GB, free: 82.51 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006/0.9536, allocations: 2.556 MB / 0.5278 GB, free: 80.6 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-05/0.9536, allocations: 4 kB / 0.5278 GB, free: 80.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.358e-05/0.9537, allocations: 10.33 kB / 0.5278 GB, free: 80.59 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01387/0.9675, allocations: 6.153 MB / 0.5339 GB, free: 75.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/0.9676, allocations: 0 / 0.5339 GB, free: 75.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008484/0.9684, allocations: 153.5 kB / 0.534 GB, free: 75.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004659/0.9731, allocations: 1.353 MB / 0.5353 GB, free: 74.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002353/0.9734, allocations: 21.72 kB / 0.5353 GB, free: 74.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01181/0.9852, allocations: 7.726 MB / 0.5429 GB, free: 68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007515/0.986, allocations: 1.371 MB / 0.5442 GB, free: 66.55 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009147/0.9952, allocations: 4.979 MB / 0.5491 GB, free: 61.61 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008395/0.9961, allocations: 282.4 kB / 0.5494 GB, free: 61.32 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006312/0.9967, allocations: 7.984 kB / 0.5494 GB, free: 61.31 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/0.9983, allocations: 67.91 kB / 0.5494 GB, free: 61.24 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.9985, allocations: 56.56 kB / 0.5495 GB, free: 61.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/0.9986, allocations: 43.97 kB / 0.5495 GB, free: 61.14 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.002541/1.001, allocations: 1.415 MB / 0.5509 GB, free: 59.71 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00439/1.006, allocations: 0.6838 MB / 0.5516 GB, free: 59.04 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 69 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000451/1.006, allocations: 155.4 kB / 0.5517 GB, free: 58.88 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006331/1.012, allocations: 4.019 MB / 0.5557 GB, free: 54.86 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/1.012, allocations: 3.938 kB / 0.5557 GB, free: 54.86 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002759/1.015, allocations: 1.609 MB / 0.5572 GB, free: 53.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/1.017, allocations: 191.3 kB / 0.5574 GB, free: 53.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01008/1.027, allocations: 5.472 MB / 0.5628 GB, free: 47.53 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002404/1.029, allocations: 2.497 MB / 0.5652 GB, free: 45.02 MB / 346.7 MB Notification: Performance of SimCode: time 9.12e-07/1.029, allocations: 0 / 0.5652 GB, free: 45.02 MB / 346.7 MB Notification: Performance of Templates: time 0.05805/1.087, allocations: 27.13 MB / 0.5917 GB, free: 18.52 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)