Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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.ForceAndTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009668/0.009668, allocations: 101.8 kB / 15.73 MB, free: 6.031 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.001995/0.001995, allocations: 186.6 kB / 16.67 MB, free: 5.965 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.36/1.36, allocations: 205.1 MB / 222.6 MB, free: 4.523 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.001193/0.001193, allocations: 50.3 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08388/0.08508, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.0152/0.1003, allocations: 12.49 MB / 385.7 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008265/0.1086, allocations: 4.202 MB / 389.9 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001657/0.1104, allocations: 71.88 kB / 389.9 MB, free: 488 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005832/0.1162, allocations: 3.22 MB / 393.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005117/0.1214, allocations: 2.136 MB / 395.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001799/0.1232, allocations: 0.8304 MB / 396.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005819/0.129, allocations: 4.545 MB / 400.7 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004922/0.134, allocations: 4.182 MB / 404.8 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002624/0.1366, allocations: 1.76 MB / 406.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003191/0.1398, allocations: 2.356 MB / 409 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009851/0.1408, allocations: 388 kB / 409.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002499/0.1433, allocations: 1.272 MB / 410.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002499/0.1458, allocations: 2.229 MB / 412.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00367/0.1495, allocations: 2.544 MB / 415.4 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009466/0.159, allocations: 8.253 MB / 423.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.1591, allocations: 4 kB / 423.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1591, allocations: 0 / 423.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002311/0.1593, allocations: 0 / 423.6 MB, free: 14.61 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.01168/0.171, allocations: 5.512 MB / 429.2 MB, free: 9.023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.1711, allocations: 12.03 kB / 429.2 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008881/0.1799, allocations: 2.232 MB / 431.4 MB, free: 6.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006487/0.1865, allocations: 3.006 MB / 434.4 MB, free: 3.703 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000195/0.1867, allocations: 274.7 kB / 434.7 MB, free: 3.434 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009228/0.1876, allocations: 347.7 kB / 435 MB, free: 3.094 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01965/0.2073, allocations: 11.64 MB / 446.7 MB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000147/0.2075, allocations: 43.59 kB / 446.7 MB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009325/0.2084, allocations: 167.8 kB / 446.9 MB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003864/0.2123, allocations: 2.339 MB / 449.2 MB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2218/0.4341, allocations: 9.969 MB / 459.2 MB, free: 62.69 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0451/0.4793, allocations: 44.28 MB / 0.4917 GB, free: 28.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01123/0.4906, allocations: 5.342 MB / 0.4969 GB, free: 23.33 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003085/0.4937, allocations: 2.818 MB / 0.4996 GB, free: 20.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01213/0.5058, allocations: 8.117 MB / 0.5075 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.265e-05/0.5059, allocations: 63.8 kB / 0.5076 GB, free: 12.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=216): time 5.42e-06/0.5059, allocations: 0 / 0.5076 GB, free: 12.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=237): time 0.05048/0.5564, allocations: 20.78 MB / 0.5279 GB, free: 7.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.5566, allocations: 184.2 kB / 0.5281 GB, free: 7.031 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008946/0.5656, allocations: 4.762 MB / 0.5327 GB, free: 2.258 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005339/0.5661, allocations: 61.7 kB / 0.5328 GB, free: 2.191 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002766/0.5689, allocations: 3.393 MB / 0.5361 GB, free: 14.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001279/0.5702, allocations: 0.8963 MB / 0.537 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003099/0.5733, allocations: 1.377 MB / 0.5383 GB, free: 12.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.5735, allocations: 301.1 kB / 0.5386 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004403/0.5779, allocations: 2.703 MB / 0.5412 GB, free: 9.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007126/0.585, allocations: 6.619 MB / 0.5477 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01236/0.5974, allocations: 10.07 MB / 0.5575 GB, free: 4.988 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001343/0.5976, allocations: 44 kB / 0.5576 GB, free: 4.945 MB / 430.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.01973/0.6174, allocations: 10.19 MB / 0.5675 GB, free: 10.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001451/0.6175, allocations: 60 kB / 0.5676 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001984/0.6177, allocations: 140 kB / 0.5677 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003216/0.621, allocations: 1.195 MB / 0.5689 GB, free: 9.355 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005878/0.6269, allocations: 1.61 MB / 0.5705 GB, free: 7.742 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01003/0.6369, allocations: 7.271 MB / 0.5776 GB, free: 340 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005331/0.6423, allocations: 379.5 kB / 0.5779 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001309/0.6436, allocations: 411.1 kB / 0.5783 GB, free: 15.56 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 42 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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 (835): * Single equations (assignments): 829 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005396/0.649, allocations: 2.37 MB / 0.5806 GB, free: 13.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001323/0.6504, allocations: 414.6 kB / 0.581 GB, free: 12.77 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009798/0.6602, allocations: 4.772 MB / 0.5857 GB, free: 7.977 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.226e-05/0.6603, allocations: 28 kB / 0.5857 GB, free: 7.949 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.711e-05/0.6603, allocations: 4 kB / 0.5857 GB, free: 7.945 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.871e-05/0.6603, allocations: 11.95 kB / 0.5857 GB, free: 7.934 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02063/0.681, allocations: 10.81 MB / 0.5963 GB, free: 13 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.34e-05/0.681, allocations: 7.938 kB / 0.5963 GB, free: 12.99 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002123/0.6832, allocations: 431.3 kB / 0.5967 GB, free: 12.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002819/0.686, allocations: 1.019 MB / 0.5977 GB, free: 11.55 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003192/0.6863, allocations: 48 kB / 0.5977 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009533/0.6959, allocations: 6.874 MB / 0.6045 GB, free: 4.484 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.637e-06/0.6959, allocations: 7.938 kB / 0.6045 GB, free: 4.477 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0132/0.7091, allocations: 8.171 MB / 0.6124 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00198/0.7111, allocations: 0.8352 MB / 0.6133 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009832/0.7121, allocations: 47.98 kB / 0.6133 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002212/0.7144, allocations: 147.8 kB / 0.6134 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004135/0.7148, allocations: 145.7 kB / 0.6136 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001959/0.715, allocations: 68 kB / 0.6137 GB, free: 10.95 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005685/0.7207, allocations: 3.05 MB / 0.6166 GB, free: 7.906 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7207, allocations: 4 kB / 0.6166 GB, free: 7.902 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005489/0.7262, allocations: 1.182 MB / 0.6178 GB, free: 6.723 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * 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 (198): * Single equations (assignments): 194 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005012/0.7267, allocations: 193.4 kB / 0.618 GB, free: 6.527 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.011/0.7377, allocations: 6.536 MB / 0.6244 GB, free: 8 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/0.7378, allocations: 4.844 kB / 0.6244 GB, free: 4 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.203/0.9408, allocations: 2.41 MB / 0.6267 GB, free: 164.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00394/0.9448, allocations: 0.515 MB / 0.6272 GB, free: 164.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02105/0.9659, allocations: 11.22 MB / 0.6382 GB, free: 160.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003584/0.9695, allocations: 3.671 MB / 0.6418 GB, free: 159.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004677/0.9742, allocations: 2.213 MB / 0.6439 GB, free: 159 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000874/0.9751, allocations: 302.1 kB / 0.6442 GB, free: 159 MB / 494.1 MB Notification: Performance of SimCode: time 8.02e-07/0.9751, allocations: 3.828 kB / 0.6442 GB, free: 159 MB / 494.1 MB Notification: Performance of Templates: time 0.06952/1.045, allocations: 42.63 MB / 0.6858 GB, free: 122.5 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1)