Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.008227/0.008227, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.00163/0.00163, allocations: 191.3 kB / 16.67 MB, free: 5.93 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.448/1.448, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001391/0.001391, allocations: 47.94 kB / 326.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1087, allocations: 46.62 MB / 373.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.2397/0.3485, allocations: 7.441 MB / 380.6 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006789/0.3553, allocations: 3.237 MB / 383.8 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001012/0.3565, allocations: 39.16 kB / 383.9 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002107/0.3586, allocations: 1.023 MB / 384.9 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003454/0.362, allocations: 1.396 MB / 386.3 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001375/0.3634, allocations: 448.9 kB / 386.7 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004407/0.3679, allocations: 2.642 MB / 389.4 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002296/0.3702, allocations: 1.536 MB / 390.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001372/0.3716, allocations: 0.8482 MB / 391.8 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002446/0.374, allocations: 1.219 MB / 393 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005282/0.3746, allocations: 170.4 kB / 393.1 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003305/0.3779, allocations: 1.025 MB / 394.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001347/0.3792, allocations: 1.117 MB / 395.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001204/0.3804, allocations: 1.305 MB / 396.6 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00512/0.3856, allocations: 4.358 MB / 401 MB, free: 15.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3856, allocations: 1.188 kB / 401 MB, free: 15.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3856, allocations: 4 kB / 401 MB, free: 15.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.54e-05/0.3857, allocations: 0 / 401 MB, free: 15.98 MB / 334.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.005856/0.3915, allocations: 3.053 MB / 404 MB, free: 13.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.3916, allocations: 9.531 kB / 404 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006268/0.3979, allocations: 1.733 MB / 405.8 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002965/0.4008, allocations: 1.461 MB / 407.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.401, allocations: 133.2 kB / 407.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006436/0.4016, allocations: 258.1 kB / 407.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0107/0.4123, allocations: 6.657 MB / 414.3 MB, free: 5.848 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.767e-05/0.4125, allocations: 23.81 kB / 414.3 MB, free: 5.824 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002571/0.4127, allocations: 91.89 kB / 414.4 MB, free: 5.734 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001957/0.4147, allocations: 1.363 MB / 415.7 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01139/0.4261, allocations: 6.033 MB / 421.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03202/0.4581, allocations: 25.54 MB / 447.3 MB, free: 4.027 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007256/0.4654, allocations: 2.664 MB / 450 MB, free: 1.219 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/0.4669, allocations: 1.036 MB / 451 MB, free: 176 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006405/0.4733, allocations: 3.892 MB / 454.9 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.581e-05/0.4734, allocations: 47.06 kB / 454.9 MB, free: 11.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 4.649e-06/0.4734, allocations: 4 kB / 454.9 MB, free: 11.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.02646/0.4999, allocations: 10.29 MB / 465.2 MB, free: 1.504 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00161/0.5015, allocations: 1.69 MB / 466.9 MB, free: 15.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004618/0.5061, allocations: 2.73 MB / 469.7 MB, free: 12.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003788/0.5065, allocations: 45.64 kB / 469.7 MB, free: 12.83 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001846/0.5084, allocations: 2.087 MB / 471.8 MB, free: 10.71 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005693/0.509, allocations: 0.5016 MB / 472.3 MB, free: 10.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001234/0.5102, allocations: 0.9203 MB / 473.2 MB, free: 9.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.5104, allocations: 309.1 kB / 473.5 MB, free: 8.965 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002756/0.5131, allocations: 1.656 MB / 475.2 MB, free: 7.301 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005008/0.5182, allocations: 4.452 MB / 479.6 MB, free: 1.441 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007177/0.5254, allocations: 6.538 MB / 486.2 MB, free: 9.508 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.503e-05/0.5254, allocations: 32 kB / 486.2 MB, free: 9.477 MB / 414.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01968/0.5451, allocations: 7.99 MB / 494.2 MB, free: 1.465 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.08e-05/0.5452, allocations: 52.25 kB / 494.2 MB, free: 1.414 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01111/0.5564, allocations: 3.495 MB / 497.7 MB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01156/0.5679, allocations: 2.58 MB / 0.4886 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00332/0.5713, allocations: 1.014 MB / 0.4896 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01467/0.586, allocations: 9.684 MB / 0.499 GB, free: 344 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003928/0.5899, allocations: 335.4 kB / 0.4994 GB, free: 8 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007935/0.5908, allocations: 288 kB / 0.4996 GB, free: 15.73 MB / 446.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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002561/0.5933, allocations: 1.427 MB / 0.501 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004849/0.5938, allocations: 233 kB / 0.5012 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006391/0.6002, allocations: 2.838 MB / 0.504 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005753/0.606, allocations: 2.513 MB / 0.5065 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.466e-05/0.606, allocations: 4.125 kB / 0.5065 GB, free: 8.652 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.091e-05/0.6061, allocations: 7.969 kB / 0.5065 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01341/0.6195, allocations: 6.875 MB / 0.5132 GB, free: 1.676 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.11e-05/0.6195, allocations: 0 / 0.5132 GB, free: 1.676 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009925/0.6205, allocations: 179.7 kB / 0.5134 GB, free: 1.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00478/0.6253, allocations: 1.434 MB / 0.5148 GB, free: 56 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001937/0.6255, allocations: 31.97 kB / 0.5148 GB, free: 24 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/0.6362, allocations: 7.915 MB / 0.5225 GB, free: 7.836 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0011/0.6373, allocations: 1.537 MB / 0.524 GB, free: 6.148 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009048/0.6464, allocations: 4.857 MB / 0.5288 GB, free: 1.25 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/0.6474, allocations: 301.9 kB / 0.5291 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002933/0.6477, allocations: 27.98 kB / 0.5291 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.6489, allocations: 111.8 kB / 0.5292 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002836/0.6491, allocations: 76.38 kB / 0.5293 GB, free: 0.7227 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/0.6493, allocations: 43.97 kB / 0.5293 GB, free: 0.6797 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002933/0.6522, allocations: 1.697 MB / 0.531 GB, free: 14.97 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6522, allocations: 0 / 0.531 GB, free: 14.97 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003917/0.6561, allocations: 0.7892 MB / 0.5317 GB, free: 14.18 MB / 478.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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003936/0.6566, allocations: 167.7 kB / 0.5319 GB, free: 14.01 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007791/0.6644, allocations: 4.454 MB / 0.5362 GB, free: 9.52 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.6644, allocations: 0 / 0.5362 GB, free: 9.52 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003171/0.6676, allocations: 1.729 MB / 0.5379 GB, free: 7.734 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.6695, allocations: 264.6 kB / 0.5382 GB, free: 7.477 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.6802, allocations: 6.554 MB / 0.5446 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1999/0.8801, allocations: 2.294 MB / 0.5468 GB, free: 151.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003748/0.8839, allocations: 1.405 MB / 0.5482 GB, free: 151.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004581/0.8844, allocations: 171.1 kB / 0.5484 GB, free: 151.9 MB / 478.1 MB Notification: Performance of SimCode: time 9.62e-07/0.8844, allocations: 3.094 kB / 0.5484 GB, free: 151.9 MB / 478.1 MB Notification: Performance of Templates: time 0.04991/0.9343, allocations: 28.58 MB / 0.5763 GB, free: 142.2 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)