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.00162/0.00162, 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.001976/0.001976, allocations: 197.1 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.395/1.395, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.001255/0.001255, allocations: 59.91 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2419, allocations: 46.63 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01452/0.2564, allocations: 12.49 MB / 337.8 MB, free: 7.398 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009544/0.266, allocations: 4.191 MB / 342 MB, free: 3.195 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001691/0.2678, allocations: 75.81 kB / 342.1 MB, free: 3.121 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005481/0.2733, allocations: 3.224 MB / 345.3 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004939/0.2782, allocations: 2.085 MB / 347.4 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001822/0.2801, allocations: 0.8228 MB / 348.2 MB, free: 12.97 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006434/0.2865, allocations: 4.545 MB / 352.7 MB, free: 8.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004603/0.2911, allocations: 4.186 MB / 356.9 MB, free: 4.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002508/0.2937, allocations: 1.756 MB / 358.7 MB, free: 2.398 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002944/0.2966, allocations: 2.356 MB / 361 MB, free: 36 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007976/0.2974, allocations: 388 kB / 361.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002225/0.2997, allocations: 1.268 MB / 362.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001896/0.3016, allocations: 2.221 MB / 364.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002332/0.3039, allocations: 2.544 MB / 367.5 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007667/0.3116, allocations: 7.983 MB / 375.4 MB, free: 1.594 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3116, allocations: 0 / 375.4 MB, free: 1.594 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3116, allocations: 0 / 375.4 MB, free: 1.594 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001726/0.3118, allocations: 0 / 375.4 MB, free: 1.594 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.01064/0.3225, allocations: 5.516 MB / 380.9 MB, free: 12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.3225, allocations: 12.03 kB / 381 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009183/0.3317, allocations: 2.229 MB / 383.2 MB, free: 9.754 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006696/0.3384, allocations: 2.952 MB / 386.1 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.3387, allocations: 270.7 kB / 386.4 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001078/0.3398, allocations: 351.7 kB / 386.7 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01992/0.3597, allocations: 11.65 MB / 398.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001329/0.3599, allocations: 43.59 kB / 398.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000449/0.3603, allocations: 167.8 kB / 398.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003951/0.3643, allocations: 2.346 MB / 400.9 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02062/0.3849, allocations: 9.971 MB / 410.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2143/0.5993, allocations: 44.5 MB / 455.4 MB, free: 99.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01352/0.6129, allocations: 5.341 MB / 460.8 MB, free: 98.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003381/0.6163, allocations: 2.811 MB / 463.6 MB, free: 98.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0118/0.6281, allocations: 8.124 MB / 471.7 MB, free: 94.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.6282, allocations: 55.78 kB / 471.7 MB, free: 94.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=216): time 4.789e-06/0.6282, allocations: 1.641 kB / 471.7 MB, free: 94.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=237): time 0.04645/0.6746, allocations: 20.79 MB / 492.5 MB, free: 81.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.926e-05/0.6747, allocations: 176.2 kB / 492.7 MB, free: 81.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00471/0.6795, allocations: 4.765 MB / 497.5 MB, free: 76.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001882/0.6797, allocations: 61.22 kB / 497.5 MB, free: 76.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001336/0.681, allocations: 3.396 MB / 0.4892 GB, free: 72.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005998/0.6816, allocations: 0.8871 MB / 0.4901 GB, free: 71.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00136/0.683, allocations: 1.383 MB / 0.4914 GB, free: 70.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.011e-05/0.683, allocations: 311.5 kB / 0.4917 GB, free: 70.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003012/0.6861, allocations: 2.703 MB / 0.4943 GB, free: 67.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00434/0.6904, allocations: 6.616 MB / 0.5008 GB, free: 59.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008467/0.6989, allocations: 10.08 MB / 0.5106 GB, free: 47.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.807e-05/0.699, allocations: 40 kB / 0.5107 GB, free: 47.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.0136/0.7126, allocations: 10.18 MB / 0.5206 GB, free: 36.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.536e-05/0.7127, allocations: 64 kB / 0.5207 GB, free: 36.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.429e-05/0.7128, allocations: 136 kB / 0.5208 GB, free: 36.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002599/0.7154, allocations: 1.203 MB / 0.522 GB, free: 35.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004421/0.7198, allocations: 1.606 MB / 0.5236 GB, free: 33.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007406/0.7272, allocations: 7.279 MB / 0.5307 GB, free: 26.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004401/0.7317, allocations: 375.5 kB / 0.531 GB, free: 26.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004771/0.7321, allocations: 412 kB / 0.5314 GB, free: 25.79 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.002792/0.7349, allocations: 2.381 MB / 0.5337 GB, free: 23.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005678/0.7355, allocations: 414.6 kB / 0.5341 GB, free: 22.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007134/0.7427, allocations: 4.76 MB / 0.5388 GB, free: 18.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.446e-05/0.7427, allocations: 31.94 kB / 0.5388 GB, free: 18.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.7427, allocations: 4.75 kB / 0.5388 GB, free: 18.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.762e-05/0.7427, allocations: 11.95 kB / 0.5388 GB, free: 18.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.015/0.7578, allocations: 10.9 MB / 0.5495 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.7578, allocations: 8 kB / 0.5495 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001905/0.7597, allocations: 431.9 kB / 0.5499 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00242/0.7621, allocations: 1.026 MB / 0.5509 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001585/0.7623, allocations: 44 kB / 0.5509 GB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007561/0.7699, allocations: 6.846 MB / 0.5576 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.884e-06/0.7699, allocations: 4 kB / 0.5576 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01208/0.782, allocations: 8.152 MB / 0.5656 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001848/0.7839, allocations: 0.8353 MB / 0.5664 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005571/0.7844, allocations: 44 kB / 0.5664 GB, free: 5.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/0.7862, allocations: 151.2 kB / 0.5666 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003972/0.7866, allocations: 153.6 kB / 0.5667 GB, free: 5.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001616/0.7868, allocations: 63.94 kB / 0.5668 GB, free: 5.191 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004262/0.7911, allocations: 3.05 MB / 0.5698 GB, free: 2.145 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7911, allocations: 0 / 0.5698 GB, free: 2.145 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00465/0.7957, allocations: 1.19 MB / 0.5709 GB, free: 0.957 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.0004488/0.7962, allocations: 184.8 kB / 0.5711 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01323/0.8094, allocations: 8.33 MB / 0.5793 GB, free: 8.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/0.8095, allocations: 4 kB / 0.5793 GB, free: 8.477 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003803/0.8133, allocations: 2.403 MB / 0.5816 GB, free: 6.062 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002839/0.8161, allocations: 0.517 MB / 0.5821 GB, free: 5.555 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01751/0.8337, allocations: 11.35 MB / 0.5932 GB, free: 10.11 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004034/0.8377, allocations: 3.673 MB / 0.5968 GB, free: 6.406 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.1634/1.001, allocations: 2.209 MB / 0.5989 GB, free: 139 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001672/1.003, allocations: 293.3 kB / 0.5992 GB, free: 139 MB / 430.1 MB Notification: Performance of SimCode: time 1.213e-06/1.003, allocations: 0 / 0.5992 GB, free: 139 MB / 430.1 MB Notification: Performance of Templates: time 0.07345/1.076, allocations: 46.31 MB / 0.6444 GB, free: 109.5 MB / 430.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)