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.005376/0.005376, allocations: 101 kB / 15.73 MB, free: 6.035 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.001173/0.001173, allocations: 193.6 kB / 16.67 MB, free: 5.973 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.351/1.351, allocations: 205.1 MB / 222.5 MB, free: 4.469 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.001116/0.001116, allocations: 46.83 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07984/0.08096, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01222/0.09321, allocations: 12.49 MB / 385.7 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008875/0.1021, allocations: 4.194 MB / 389.9 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00209/0.1043, allocations: 75.81 kB / 389.9 MB, free: 492 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006265/0.1106, allocations: 3.216 MB / 393.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006397/0.117, allocations: 2.132 MB / 395.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002282/0.1193, allocations: 0.8344 MB / 396.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007069/0.1264, allocations: 4.557 MB / 400.7 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005682/0.1321, allocations: 4.166 MB / 404.8 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003391/0.1355, allocations: 1.768 MB / 406.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003403/0.139, allocations: 2.348 MB / 409 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001269/0.1403, allocations: 388 kB / 409.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002852/0.1432, allocations: 1.276 MB / 410.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002855/0.146, allocations: 2.229 MB / 412.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004094/0.1502, allocations: 2.548 MB / 415.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01013/0.1603, allocations: 8.253 MB / 423.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1604, allocations: 0 / 423.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1604, allocations: 4 kB / 423.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004169/0.1608, 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.01326/0.1741, allocations: 5.508 MB / 429.2 MB, free: 9.031 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.1741, allocations: 12.02 kB / 429.2 MB, free: 9.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009822/0.184, allocations: 2.236 MB / 431.4 MB, free: 6.773 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006549/0.1906, allocations: 3.006 MB / 434.4 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002138/0.1908, allocations: 270.8 kB / 434.7 MB, free: 3.441 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001252/0.1921, allocations: 347.7 kB / 435 MB, free: 3.102 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02062/0.2127, allocations: 11.65 MB / 446.7 MB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001408/0.2129, allocations: 43.53 kB / 446.7 MB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005677/0.2134, allocations: 171.8 kB / 446.9 MB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003821/0.2173, allocations: 2.331 MB / 449.2 MB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2198/0.437, allocations: 9.973 MB / 459.2 MB, free: 62.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04227/0.4793, allocations: 44.28 MB / 0.4917 GB, free: 28.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01164/0.491, allocations: 5.342 MB / 0.4969 GB, free: 23.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00305/0.4941, allocations: 2.825 MB / 0.4996 GB, free: 20.51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01038/0.5045, allocations: 8.115 MB / 0.5076 GB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.528e-05/0.5046, allocations: 59.86 kB / 0.5076 GB, free: 12.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=216): time 5.089e-06/0.5046, allocations: 0 / 0.5076 GB, free: 12.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=237): time 0.04787/0.5525, allocations: 20.78 MB / 0.5279 GB, free: 7.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.5526, allocations: 176.2 kB / 0.5281 GB, free: 7.055 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006693/0.5593, allocations: 4.769 MB / 0.5327 GB, free: 2.273 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000498/0.5599, allocations: 61.7 kB / 0.5328 GB, free: 2.207 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002528/0.5624, allocations: 3.392 MB / 0.5361 GB, free: 14.82 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001287/0.5637, allocations: 0.8873 MB / 0.537 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001814/0.5655, allocations: 1.384 MB / 0.5383 GB, free: 12.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.66e-05/0.5656, allocations: 305.1 kB / 0.5386 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004131/0.5698, allocations: 2.699 MB / 0.5413 GB, free: 9.543 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007264/0.577, allocations: 6.618 MB / 0.5477 GB, free: 1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0124/0.5895, allocations: 10.07 MB / 0.5576 GB, free: 5.008 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000111/0.5896, allocations: 43.94 kB / 0.5576 GB, free: 4.965 MB / 430.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.01876/0.6084, allocations: 10.18 MB / 0.5675 GB, free: 10.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.089e-05/0.6085, allocations: 64 kB / 0.5676 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001349/0.6087, allocations: 136 kB / 0.5677 GB, free: 10.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002975/0.6116, allocations: 1.199 MB / 0.5689 GB, free: 9.371 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005392/0.617, allocations: 1.606 MB / 0.5705 GB, free: 7.762 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009407/0.6265, allocations: 7.274 MB / 0.5776 GB, free: 356 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004867/0.6314, allocations: 379.5 kB / 0.5779 GB, free: 15.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009087/0.6323, allocations: 407.9 kB / 0.5783 GB, free: 15.58 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.004461/0.6368, allocations: 2.373 MB / 0.5806 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008195/0.6376, allocations: 418.5 kB / 0.581 GB, free: 12.78 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008886/0.6465, allocations: 4.768 MB / 0.5857 GB, free: 7.992 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.542e-05/0.6466, allocations: 28 kB / 0.5857 GB, free: 7.965 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.6466, allocations: 4 kB / 0.5857 GB, free: 7.961 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.223e-05/0.6466, allocations: 11.95 kB / 0.5857 GB, free: 7.949 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01933/0.666, allocations: 10.81 MB / 0.5963 GB, free: 13.02 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.931e-05/0.666, allocations: 4 kB / 0.5963 GB, free: 13.01 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002119/0.6681, allocations: 427.3 kB / 0.5967 GB, free: 12.59 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002781/0.6709, allocations: 1.027 MB / 0.5977 GB, free: 11.56 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002587/0.6712, allocations: 44 kB / 0.5977 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009347/0.6806, allocations: 6.878 MB / 0.6045 GB, free: 4.496 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.6806, allocations: 8 kB / 0.6045 GB, free: 4.488 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01259/0.6932, allocations: 8.163 MB / 0.6124 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002267/0.6955, allocations: 0.8352 MB / 0.6133 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005881/0.6961, allocations: 47.98 kB / 0.6133 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001841/0.698, allocations: 147.8 kB / 0.6134 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004061/0.6984, allocations: 149.6 kB / 0.6136 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/0.6986, allocations: 67.91 kB / 0.6137 GB, free: 10.97 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004817/0.7034, allocations: 3.058 MB / 0.6166 GB, free: 7.914 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.7034, allocations: 1.031 kB / 0.6166 GB, free: 7.914 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005313/0.7087, allocations: 1.182 MB / 0.6178 GB, free: 6.734 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.0005122/0.7093, allocations: 185.6 kB / 0.618 GB, free: 6.547 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01075/0.72, allocations: 6.543 MB / 0.6244 GB, free: 20 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.986e-06/0.7201, allocations: 4 kB / 0.6244 GB, free: 16 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1712/0.8912, allocations: 2.408 MB / 0.6267 GB, free: 164.1 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003093/0.8944, allocations: 0.5008 MB / 0.6272 GB, free: 164.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.017/0.9114, allocations: 11.23 MB / 0.6382 GB, free: 160.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003258/0.9147, allocations: 3.673 MB / 0.6418 GB, free: 159.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004346/0.919, allocations: 2.219 MB / 0.6439 GB, free: 158.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008636/0.9199, allocations: 296.2 kB / 0.6442 GB, free: 158.9 MB / 494.1 MB Notification: Performance of SimCode: time 6.42e-07/0.9199, allocations: 0 / 0.6442 GB, free: 158.9 MB / 494.1 MB Notification: Performance of Templates: time 0.06233/0.9823, allocations: 42.62 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)