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.001652/0.001652, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001994/0.001994, allocations: 196.2 kB / 16.53 MB, free: 6.664 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.489/1.489, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.00129/0.00129, allocations: 55.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2338, allocations: 46.63 MB / 325.3 MB, free: 1.871 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01419/0.248, allocations: 12.49 MB / 337.8 MB, free: 7.414 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009956/0.258, allocations: 4.195 MB / 342 MB, free: 3.207 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002751/0.2609, allocations: 71.88 kB / 342.1 MB, free: 3.137 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00619/0.2671, allocations: 3.232 MB / 345.3 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006128/0.2732, allocations: 2.078 MB / 347.4 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002279/0.2755, allocations: 0.8305 MB / 348.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00745/0.283, allocations: 4.545 MB / 352.7 MB, free: 8.418 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005668/0.2887, allocations: 4.174 MB / 356.9 MB, free: 4.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003413/0.2922, allocations: 1.76 MB / 358.7 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00377/0.296, allocations: 2.352 MB / 361 MB, free: 56 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001054/0.297, allocations: 392 kB / 361.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002872/0.2999, allocations: 1.272 MB / 362.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002536/0.3025, allocations: 2.221 MB / 364.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003145/0.3056, allocations: 2.548 MB / 367.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009216/0.3149, allocations: 7.975 MB / 375.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.3149, allocations: 0 / 375.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3149, allocations: 0 / 375.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002692/0.3152, allocations: 4 kB / 375.4 MB, free: 1.605 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: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.01399/0.3292, allocations: 5.516 MB / 381 MB, free: 12.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.3293, allocations: 16.02 kB / 381 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01033/0.3396, allocations: 2.229 MB / 383.2 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007301/0.347, allocations: 2.944 MB / 386.1 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002526/0.3472, allocations: 266.8 kB / 386.4 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001523/0.3488, allocations: 355.7 kB / 386.7 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02362/0.3724, allocations: 11.65 MB / 398.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001982/0.3727, allocations: 47.53 kB / 398.4 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001174/0.3739, allocations: 167.8 kB / 398.6 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004159/0.378, allocations: 2.339 MB / 400.9 MB, free: 7.227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02178/0.3998, allocations: 9.975 MB / 410.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2619/0.6618, allocations: 44.49 MB / 455.4 MB, free: 99.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01432/0.6762, allocations: 5.334 MB / 460.7 MB, free: 98.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003264/0.6795, allocations: 2.82 MB / 463.6 MB, free: 98.67 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01105/0.6906, allocations: 8.13 MB / 471.7 MB, free: 94.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.6906, allocations: 51.25 kB / 471.7 MB, free: 94.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=216): time 5.069e-06/0.6906, allocations: 0 / 471.7 MB, free: 94.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=237): time 0.05128/0.7419, allocations: 20.79 MB / 492.5 MB, free: 81.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.598e-05/0.7421, allocations: 180.2 kB / 492.7 MB, free: 81.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006175/0.7482, allocations: 4.765 MB / 497.5 MB, free: 76.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005261/0.7488, allocations: 61.7 kB / 497.5 MB, free: 76.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001458/0.7503, allocations: 3.392 MB / 0.4892 GB, free: 72.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000762/0.751, allocations: 0.8915 MB / 0.4901 GB, free: 71.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001413/0.7524, allocations: 1.38 MB / 0.4914 GB, free: 70.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.375e-05/0.7525, allocations: 305.1 kB / 0.4917 GB, free: 70.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003093/0.7556, allocations: 2.705 MB / 0.4943 GB, free: 67.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004386/0.76, allocations: 6.619 MB / 0.5008 GB, free: 59.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009393/0.7694, allocations: 10.07 MB / 0.5106 GB, free: 47.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.692e-05/0.7696, allocations: 40 kB / 0.5107 GB, free: 47.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.01573/0.7853, allocations: 10.18 MB / 0.5206 GB, free: 36.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.116e-05/0.7854, allocations: 64 kB / 0.5207 GB, free: 36.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001169/0.7855, allocations: 140 kB / 0.5208 GB, free: 36.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002627/0.7882, allocations: 1.211 MB / 0.522 GB, free: 35.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004816/0.793, allocations: 1.602 MB / 0.5236 GB, free: 33.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007266/0.8003, allocations: 7.274 MB / 0.5307 GB, free: 26.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00628/0.8066, allocations: 387 kB / 0.531 GB, free: 26.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00109/0.8077, allocations: 415.3 kB / 0.5314 GB, free: 25.77 MB / 382.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.004503/0.8122, allocations: 2.369 MB / 0.5337 GB, free: 23.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000949/0.8132, allocations: 418.6 kB / 0.5341 GB, free: 22.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007779/0.821, allocations: 4.764 MB / 0.5388 GB, free: 18.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.93e-05/0.821, allocations: 31.94 kB / 0.5388 GB, free: 18.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.821, allocations: 4 kB / 0.5388 GB, free: 18.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-05/0.8211, allocations: 11.95 kB / 0.5388 GB, free: 18.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01821/0.8393, allocations: 10.9 MB / 0.5495 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.715e-05/0.8393, allocations: 4 kB / 0.5495 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001908/0.8413, allocations: 427.3 kB / 0.5499 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002576/0.8438, allocations: 1.023 MB / 0.5509 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002647/0.8441, allocations: 44 kB / 0.5509 GB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007995/0.8521, allocations: 6.848 MB / 0.5576 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.537e-06/0.8522, allocations: 11.94 kB / 0.5576 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01403/0.8662, allocations: 8.15 MB / 0.5656 GB, free: 6.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002232/0.8685, allocations: 0.8313 MB / 0.5664 GB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/0.8696, allocations: 44 kB / 0.5665 GB, free: 5.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002563/0.8722, allocations: 151.8 kB / 0.5666 GB, free: 5.383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004728/0.8727, allocations: 149.6 kB / 0.5667 GB, free: 5.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001969/0.8729, allocations: 67.94 kB / 0.5668 GB, free: 5.168 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.006401/0.8793, allocations: 3.054 MB / 0.5698 GB, free: 2.117 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.8793, allocations: 0 / 0.5698 GB, free: 2.117 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.007353/0.8867, allocations: 1.185 MB / 0.5709 GB, free: 0.9375 MB / 398.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.0007747/0.8875, allocations: 189.5 kB / 0.5711 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01622/0.9037, allocations: 8.33 MB / 0.5793 GB, free: 8.457 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/0.9038, allocations: 0 / 0.5793 GB, free: 8.457 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004598/0.9084, allocations: 2.406 MB / 0.5816 GB, free: 6.039 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004538/0.9129, allocations: 0.5057 MB / 0.5821 GB, free: 5.539 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02486/0.9378, allocations: 11.35 MB / 0.5932 GB, free: 10.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007046/0.9449, allocations: 3.677 MB / 0.5968 GB, free: 6.387 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.1948/1.14, allocations: 2.213 MB / 0.5989 GB, free: 139 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001853/1.142, allocations: 292.1 kB / 0.5992 GB, free: 139 MB / 430.1 MB Notification: Performance of SimCode: time 1.052e-06/1.142, allocations: 0 / 0.5992 GB, free: 139 MB / 430.1 MB Notification: Performance of Templates: time 0.07319/1.215, allocations: 46.31 MB / 0.6444 GB, free: 109.5 MB / 430.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)