Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.005826/0.005826, allocations: 99.11 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.001379/0.001379, allocations: 193.4 kB / 16.67 MB, free: 5.961 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.406/1.406, 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.00114/0.00114, allocations: 53.8 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08341/0.08456, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01284/0.09744, allocations: 12.5 MB / 385.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008662/0.1061, allocations: 4.182 MB / 389.9 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002031/0.1083, allocations: 75.81 kB / 389.9 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005615/0.1139, allocations: 3.216 MB / 393.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004778/0.1187, allocations: 2.14 MB / 395.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00163/0.1203, allocations: 0.8344 MB / 396.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005493/0.1258, allocations: 4.549 MB / 400.7 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004387/0.1302, allocations: 4.178 MB / 404.8 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002388/0.1326, allocations: 1.764 MB / 406.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002883/0.1355, allocations: 2.352 MB / 409 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006558/0.1362, allocations: 388 kB / 409.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002081/0.1383, allocations: 1.272 MB / 410.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00185/0.1402, allocations: 2.225 MB / 412.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002414/0.1426, allocations: 2.551 MB / 415.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008305/0.1509, allocations: 8.287 MB / 423.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1509, allocations: 4 kB / 423.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.151, allocations: 0 / 423.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001703/0.1511, allocations: 0 / 423.7 MB, free: 14.57 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.01024/0.1614, allocations: 5.659 MB / 429.3 MB, free: 8.832 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1614, allocations: 12.03 kB / 429.4 MB, free: 8.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009467/0.1709, allocations: 2.259 MB / 431.6 MB, free: 6.555 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007514/0.1785, allocations: 3.015 MB / 434.6 MB, free: 3.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002135/0.1787, allocations: 270.8 kB / 434.9 MB, free: 3.215 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009248/0.1796, allocations: 355.8 kB / 435.2 MB, free: 2.867 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01839/0.198, allocations: 11.65 MB / 446.9 MB, free: 6.508 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000109/0.1982, allocations: 47.62 kB / 446.9 MB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004371/0.1986, allocations: 167.8 kB / 447.1 MB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003876/0.2025, allocations: 2.331 MB / 449.4 MB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1992/0.4017, allocations: 9.975 MB / 459.4 MB, free: 62.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04447/0.4462, allocations: 44.36 MB / 0.492 GB, free: 28.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01135/0.4576, allocations: 5.339 MB / 0.4972 GB, free: 23.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002775/0.4605, allocations: 2.822 MB / 0.4999 GB, free: 20.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01105/0.4715, allocations: 8.14 MB / 0.5079 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.4716, allocations: 59.86 kB / 0.5079 GB, free: 12.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=216): time 5.22e-06/0.4716, allocations: 3.984 kB / 0.5079 GB, free: 12.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=237): time 0.04745/0.5191, allocations: 21.03 MB / 0.5285 GB, free: 7.109 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.5192, allocations: 184.2 kB / 0.5287 GB, free: 6.891 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006905/0.5262, allocations: 4.774 MB / 0.5333 GB, free: 2.121 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006577/0.5268, allocations: 65.38 kB / 0.5334 GB, free: 2.055 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002571/0.5294, allocations: 3.527 MB / 0.5368 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001298/0.5307, allocations: 0.9275 MB / 0.5377 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001895/0.5326, allocations: 1.393 MB / 0.5391 GB, free: 12.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.5328, allocations: 305.1 kB / 0.5394 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003882/0.5367, allocations: 2.699 MB / 0.542 GB, free: 9.223 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006866/0.5435, allocations: 6.618 MB / 0.5485 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01232/0.5559, allocations: 10.07 MB / 0.5583 GB, free: 4.691 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000104/0.556, allocations: 40 kB / 0.5583 GB, free: 4.652 MB / 430.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.01902/0.5751, allocations: 10.22 MB / 0.5683 GB, free: 10.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.515e-05/0.5752, allocations: 64 kB / 0.5684 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001469/0.5753, allocations: 136 kB / 0.5685 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003004/0.5784, allocations: 1.199 MB / 0.5697 GB, free: 9.027 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005469/0.5838, allocations: 1.602 MB / 0.5713 GB, free: 7.422 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/0.594, allocations: 7.267 MB / 0.5784 GB, free: 12 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005433/0.5994, allocations: 394.8 kB / 0.5787 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009064/0.6004, allocations: 404 kB / 0.5791 GB, free: 15.24 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.003655/0.604, allocations: 2.377 MB / 0.5814 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007562/0.6048, allocations: 437.1 kB / 0.5819 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008322/0.6131, allocations: 4.78 MB / 0.5865 GB, free: 7.629 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-05/0.6132, allocations: 24 kB / 0.5865 GB, free: 7.605 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.6132, allocations: 4 kB / 0.5865 GB, free: 7.602 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.083e-05/0.6132, allocations: 11.95 kB / 0.5866 GB, free: 7.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01769/0.6309, allocations: 10.8 MB / 0.5971 GB, free: 12.65 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.598e-05/0.631, allocations: 4 kB / 0.5971 GB, free: 12.64 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002028/0.633, allocations: 427.3 kB / 0.5975 GB, free: 12.23 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002713/0.6357, allocations: 1.023 MB / 0.5985 GB, free: 11.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000199/0.6359, allocations: 44 kB / 0.5986 GB, free: 11.16 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008938/0.6449, allocations: 6.883 MB / 0.6053 GB, free: 4.133 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.638e-06/0.6449, allocations: 11.94 kB / 0.6053 GB, free: 4.121 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0119/0.6568, allocations: 8.197 MB / 0.6133 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00234/0.6592, allocations: 0.8493 MB / 0.6141 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004987/0.6597, allocations: 47.98 kB / 0.6142 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001804/0.6615, allocations: 155.8 kB / 0.6143 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003483/0.6619, allocations: 145.6 kB / 0.6145 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001803/0.6621, allocations: 64 kB / 0.6145 GB, free: 10.56 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004248/0.6663, allocations: 3.054 MB / 0.6175 GB, free: 7.508 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6663, allocations: 4 kB / 0.6175 GB, free: 7.504 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005479/0.6718, allocations: 1.18 MB / 0.6187 GB, free: 6.324 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.0004796/0.6723, allocations: 194.7 kB / 0.6188 GB, free: 6.125 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.1728/0.8451, allocations: 6.526 MB / 0.6252 GB, free: 162.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/0.8451, allocations: 4.812 kB / 0.6252 GB, free: 162.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004435/0.8496, allocations: 2.413 MB / 0.6276 GB, free: 162.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003069/0.8527, allocations: 0.5148 MB / 0.6281 GB, free: 162.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01938/0.8721, allocations: 11.4 MB / 0.6392 GB, free: 158.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00338/0.8755, allocations: 3.664 MB / 0.6428 GB, free: 156.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004294/0.8798, allocations: 2.22 MB / 0.645 GB, free: 156.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008244/0.8806, allocations: 289.9 kB / 0.6452 GB, free: 156.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.222e-06/0.8807, allocations: 3.828 kB / 0.6452 GB, free: 156.7 MB / 494.1 MB Notification: Performance of Templates: time 0.06344/0.9441, allocations: 42.63 MB / 0.6869 GB, free: 121.6 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1)