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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 92.31 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.001259/0.001259, 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.483/1.483, allocations: 205.4 MB / 222.1 MB, free: 5.492 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.0007406/0.0007408, allocations: 14.81 kB / 278.9 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.314, allocations: 47.59 MB / 326.5 MB, free: 1.645 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01528/0.3293, allocations: 16.11 MB / 342.6 MB, free: 3.477 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01111/0.3405, allocations: 4.667 MB / 347.3 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002826/0.3434, allocations: 67.81 kB / 347.3 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002089/0.3455, allocations: 0.7854 MB / 348.1 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006935/0.3524, allocations: 2.666 MB / 350.8 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001416/0.3539, allocations: 371.4 kB / 351.1 MB, free: 10.9 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004337/0.3582, allocations: 2.871 MB / 354 MB, free: 8.02 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003512/0.3617, allocations: 1.861 MB / 355.9 MB, free: 6.113 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001611/0.3634, allocations: 0.7394 MB / 356.6 MB, free: 5.371 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002355/0.3657, allocations: 1.211 MB / 357.8 MB, free: 4.156 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000684/0.3664, allocations: 92 kB / 357.9 MB, free: 4.066 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002174/0.3686, allocations: 0.8542 MB / 358.8 MB, free: 3.211 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00148/0.3701, allocations: 1.017 MB / 359.8 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.3712, allocations: 0.5118 MB / 360.3 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004183/0.3754, allocations: 3.283 MB / 363.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3754, allocations: 0 / 363.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3754, allocations: 0 / 363.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001545/0.3756, allocations: 0 / 363.6 MB, free: 14.38 MB / 302.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.005947/0.3815, allocations: 2.571 MB / 366.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.3816, allocations: 8.031 kB / 366.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006317/0.3879, allocations: 1.786 MB / 367.9 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003074/0.391, allocations: 1.413 MB / 369.4 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/0.3911, allocations: 135.3 kB / 369.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006305/0.3918, allocations: 255.6 kB / 369.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01059/0.4024, allocations: 6.653 MB / 376.4 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.67e-05/0.4025, allocations: 31.7 kB / 376.4 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00027/0.4028, allocations: 83.89 kB / 376.5 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002042/0.4048, allocations: 1.367 MB / 377.9 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01085/0.4157, allocations: 6.029 MB / 383.9 MB, free: 9.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03387/0.4496, allocations: 25.61 MB / 409.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006361/0.456, allocations: 2.667 MB / 412.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.4576, allocations: 1.04 MB / 413.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006567/0.4642, allocations: 3.892 MB / 417.1 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.165e-05/0.4642, allocations: 47.06 kB / 417.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 3.487e-06/0.4643, allocations: 0 / 417.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02444/0.4887, allocations: 10.32 MB / 427.5 MB, free: 12.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001186/0.4899, allocations: 1.58 MB / 429 MB, free: 10.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003605/0.4935, allocations: 2.725 MB / 431.8 MB, free: 8.059 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001958/0.4937, allocations: 45.8 kB / 431.8 MB, free: 8.008 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001475/0.4952, allocations: 2.079 MB / 433.9 MB, free: 5.895 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005511/0.4958, allocations: 0.5054 MB / 434.4 MB, free: 5.383 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001806/0.496, allocations: 88 kB / 434.5 MB, free: 5.297 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002596/0.4962, allocations: 0.5001 MB / 435 MB, free: 4.789 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002347/0.4986, allocations: 1.633 MB / 436.6 MB, free: 3.148 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004326/0.5029, allocations: 4.44 MB / 441.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004179/0.5071, allocations: 2.626 MB / 443.7 MB, free: 10.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.609e-05/0.5072, allocations: 28 kB / 443.7 MB, free: 10.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01826/0.5255, allocations: 7.97 MB / 451.7 MB, free: 2.656 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.039e-05/0.5256, allocations: 51.94 kB / 451.7 MB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2284/0.754, allocations: 3.481 MB / 455.2 MB, free: 106.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01072/0.7648, allocations: 2.594 MB / 457.8 MB, free: 106.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003335/0.7681, allocations: 1.011 MB / 458.8 MB, free: 106.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/0.7788, allocations: 8.867 MB / 467.7 MB, free: 103 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003204/0.7821, allocations: 333.9 kB / 468 MB, free: 103 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003249/0.7824, allocations: 285.2 kB / 468.3 MB, free: 102.9 MB / 382.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.001716/0.7841, allocations: 1.418 MB / 469.7 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002824/0.7844, allocations: 234 kB / 469.9 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005261/0.7897, allocations: 2.844 MB / 472.8 MB, free: 100.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004579/0.7943, allocations: 2.512 MB / 475.3 MB, free: 99.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.7943, allocations: 3.812 kB / 475.3 MB, free: 99.51 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.7943, allocations: 3.984 kB / 475.3 MB, free: 99.51 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009997/0.8043, allocations: 6.886 MB / 482.2 MB, free: 92.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.794e-06/0.8044, allocations: 0 / 482.2 MB, free: 92.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006974/0.8051, allocations: 175.7 kB / 482.4 MB, free: 92.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00378/0.8089, allocations: 1.426 MB / 483.8 MB, free: 91.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.469e-05/0.809, allocations: 32.91 kB / 483.8 MB, free: 91.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007291/0.8163, allocations: 7.335 MB / 491.2 MB, free: 83.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006226/0.8169, allocations: 1.45 MB / 492.6 MB, free: 82.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00687/0.8238, allocations: 4.843 MB / 497.4 MB, free: 77.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006417/0.8245, allocations: 300.5 kB / 497.7 MB, free: 77.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002601/0.8247, allocations: 23.98 kB / 497.8 MB, free: 77.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009699/0.8257, allocations: 116 kB / 497.9 MB, free: 77.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.8259, allocations: 80.39 kB / 498 MB, free: 76.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.112e-05/0.826, allocations: 43.97 kB / 498 MB, free: 76.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002119/0.8281, allocations: 1.688 MB / 499.7 MB, free: 75.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.8281, allocations: 0 / 499.7 MB, free: 75.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003689/0.8318, allocations: 0.7861 MB / 0.4887 GB, free: 74.45 MB / 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.0003719/0.8322, allocations: 161.5 kB / 0.4889 GB, free: 74.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006435/0.8387, allocations: 4.402 MB / 0.4932 GB, free: 69.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.8387, allocations: 0 / 0.4932 GB, free: 69.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002539/0.8412, allocations: 1.719 MB / 0.4949 GB, free: 68.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001746/0.843, allocations: 266.6 kB / 0.4951 GB, free: 67.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009197/0.8522, allocations: 7.708 MB / 0.5027 GB, free: 60.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00176/0.854, allocations: 2.293 MB / 0.5049 GB, free: 57.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002939/0.857, allocations: 1.408 MB / 0.5063 GB, free: 56.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003452/0.8573, allocations: 171.4 kB / 0.5064 GB, free: 56.21 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.8573, allocations: 0 / 0.5064 GB, free: 56.21 MB / 382.1 MB Notification: Performance of Templates: time 0.03977/0.8971, allocations: 28.63 MB / 0.5344 GB, free: 27.6 MB / 382.1 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)