Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000841/0.000841, allocations: 90.14 kB / 16.31 MB, free: 5.676 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.0009683/0.0009683, allocations: 180.2 kB / 17.21 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.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.0004415/0.0004415, allocations: 8 kB / 280.1 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1085, allocations: 47.58 MB / 327.7 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01559/0.1241, allocations: 16.11 MB / 343.8 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01017/0.1343, allocations: 4.663 MB / 348.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002623/0.137, allocations: 67.81 kB / 348.6 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002375/0.1394, allocations: 0.7932 MB / 349.4 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008034/0.1475, allocations: 2.658 MB / 352 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.1491, allocations: 375.4 kB / 352.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004643/0.1538, allocations: 2.879 MB / 355.3 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003932/0.1577, allocations: 1.861 MB / 357.1 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002032/0.1598, allocations: 0.7394 MB / 357.9 MB, free: 5.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002281/0.1621, allocations: 1.211 MB / 359.1 MB, free: 4.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006079/0.1627, allocations: 88 kB / 359.2 MB, free: 4.496 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002215/0.1649, allocations: 0.8503 MB / 360 MB, free: 3.645 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001641/0.1666, allocations: 1.025 MB / 361 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001039/0.1676, allocations: 0.504 MB / 361.5 MB, free: 2.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003753/0.1714, allocations: 3.278 MB / 364.8 MB, free: 14.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.1714, allocations: 0 / 364.8 MB, free: 14.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1714, allocations: 0 / 364.8 MB, free: 14.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.444e-05/0.1715, allocations: 0 / 364.8 MB, free: 14.82 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.004613/0.1761, allocations: 2.575 MB / 367.4 MB, free: 12.19 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.1762, allocations: 8.031 kB / 367.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00585/0.182, allocations: 1.786 MB / 369.2 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002431/0.1845, allocations: 1.413 MB / 370.6 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.1846, allocations: 131.3 kB / 370.7 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005838/0.1852, allocations: 255.6 kB / 371 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/0.1952, allocations: 6.664 MB / 377.6 MB, free: 1.422 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.313e-05/0.1953, allocations: 27.72 kB / 377.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002319/0.1956, allocations: 83.89 kB / 377.8 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1677/0.3633, allocations: 1.363 MB / 379.1 MB, free: 50.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0125/0.3758, allocations: 6.024 MB / 385.1 MB, free: 49.39 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0279/0.4037, allocations: 25.61 MB / 410.7 MB, free: 30.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005929/0.4097, allocations: 2.674 MB / 413.4 MB, free: 27.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00128/0.411, allocations: 1.03 MB / 414.5 MB, free: 26.37 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005404/0.4165, allocations: 3.881 MB / 418.3 MB, free: 22.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/0.4165, allocations: 47.06 kB / 418.4 MB, free: 22.19 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 4.027e-06/0.4165, allocations: 0 / 418.4 MB, free: 22.19 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.0232/0.4397, allocations: 10.33 MB / 428.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00102/0.4408, allocations: 1.58 MB / 430.3 MB, free: 9.953 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004107/0.4449, allocations: 2.725 MB / 433 MB, free: 7.207 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002308/0.4452, allocations: 42.88 kB / 433.1 MB, free: 7.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001335/0.4465, allocations: 2.074 MB / 435.1 MB, free: 5.086 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006402/0.4472, allocations: 0.5154 MB / 435.6 MB, free: 4.574 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/0.4474, allocations: 90.03 kB / 435.7 MB, free: 4.488 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002115/0.4476, allocations: 0.4962 MB / 436.2 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002077/0.4497, allocations: 1.641 MB / 437.9 MB, free: 2.336 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004133/0.4538, allocations: 4.429 MB / 442.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004391/0.4582, allocations: 2.64 MB / 444.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-05/0.4583, allocations: 36 kB / 445 MB, free: 9.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.0191/0.4774, allocations: 7.954 MB / 452.9 MB, free: 1.852 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.959e-05/0.4775, allocations: 48 kB / 453 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01081/0.4884, allocations: 3.491 MB / 456.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0109/0.4993, allocations: 2.603 MB / 459.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003306/0.5026, allocations: 1.01 MB / 460.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01347/0.5161, allocations: 8.851 MB / 468.9 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003383/0.5195, allocations: 335.5 kB / 469.3 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000448/0.52, allocations: 281.5 kB / 469.5 MB, free: 0.9609 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * 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 {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 prepare postOptimizeDAE: time 0.002146/0.5221, allocations: 1.425 MB / 471 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003668/0.5225, allocations: 233 kB / 471.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006186/0.5287, allocations: 2.841 MB / 474 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005548/0.5343, allocations: 2.508 MB / 476.5 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.5343, allocations: 7.984 kB / 476.5 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/0.5343, allocations: 3.984 kB / 476.5 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01339/0.5477, allocations: 6.873 MB / 483.4 MB, free: 2.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.407e-05/0.5478, allocations: 4.875 kB / 483.4 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000796/0.5486, allocations: 175.7 kB / 483.6 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004435/0.553, allocations: 1.434 MB / 485 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001343/0.5532, allocations: 35.97 kB / 485.1 MB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009745/0.5629, allocations: 7.329 MB / 492.4 MB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001044/0.564, allocations: 1.449 MB / 493.8 MB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008377/0.5724, allocations: 4.838 MB / 498.7 MB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007276/0.5731, allocations: 305.8 kB / 499 MB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002605/0.5734, allocations: 32.23 kB / 499 MB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.5744, allocations: 115.8 kB / 499.1 MB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002453/0.5747, allocations: 76.44 kB / 499.2 MB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.5748, allocations: 41.14 kB / 499.2 MB, free: 2.664 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002583/0.5774, allocations: 1.685 MB / 0.4892 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5774, allocations: 0 / 0.4892 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003619/0.581, allocations: 0.789 MB / 0.49 GB, free: 188 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 77 * 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%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003982/0.5814, allocations: 155.9 kB / 0.4901 GB, free: 32 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007741/0.5892, allocations: 4.41 MB / 0.4944 GB, free: 11.6 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/0.5892, allocations: 0 / 0.4944 GB, free: 11.6 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003192/0.5924, allocations: 1.709 MB / 0.4961 GB, free: 9.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001687/0.5941, allocations: 273 kB / 0.4963 GB, free: 9.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.6053, allocations: 7.716 MB / 0.5039 GB, free: 1.801 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002332/0.6077, allocations: 2.293 MB / 0.5061 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003196/0.6109, allocations: 1.408 MB / 0.5075 GB, free: 14.06 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003854/0.6113, allocations: 167.4 kB / 0.5077 GB, free: 13.89 MB / 414.1 MB Notification: Performance of SimCode: time 9.12e-07/0.6113, allocations: 0 / 0.5077 GB, free: 13.89 MB / 414.1 MB Notification: Performance of Templates: time 0.2354/0.8467, allocations: 28.64 MB / 0.5356 GB, free: 130.1 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)