Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001694/0.001694, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.001989/0.001989, allocations: 195 kB / 18 MB, free: 5.105 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.453/1.453, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001236/0.001236, allocations: 55.92 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08156/0.0828, allocations: 46.61 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.1659/0.2487, allocations: 12.49 MB / 387 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007445/0.2562, allocations: 4.189 MB / 391.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002025/0.2583, allocations: 74.53 kB / 391.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005394/0.2637, allocations: 3.232 MB / 394.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004979/0.2687, allocations: 2.073 MB / 396.6 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001841/0.2706, allocations: 0.828 MB / 397.4 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006333/0.2769, allocations: 4.56 MB / 401.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004756/0.2817, allocations: 4.175 MB / 406.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002843/0.2845, allocations: 1.763 MB / 407.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003304/0.2879, allocations: 2.343 MB / 410.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007495/0.2886, allocations: 390.5 kB / 410.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00231/0.2909, allocations: 1.276 MB / 411.9 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002057/0.293, allocations: 2.236 MB / 414.1 MB, free: 7.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002653/0.2957, allocations: 2.548 MB / 416.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008772/0.3045, allocations: 8.253 MB / 424.9 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3045, allocations: 0 / 424.9 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3045, allocations: 0 / 424.9 MB, free: 13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001774/0.3047, allocations: 4 kB / 424.9 MB, free: 13 MB / 350.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.01027/0.315, allocations: 5.513 MB / 430.4 MB, free: 7.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.315, allocations: 8.031 kB / 430.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009415/0.3244, allocations: 2.232 MB / 432.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007284/0.3318, allocations: 2.995 MB / 435.7 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002205/0.332, allocations: 266.7 kB / 435.9 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001053/0.3331, allocations: 359.7 kB / 436.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01923/0.3523, allocations: 11.65 MB / 447.9 MB, free: 5.137 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001102/0.3525, allocations: 47.53 kB / 448 MB, free: 5.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004274/0.3529, allocations: 167.8 kB / 448.1 MB, free: 4.926 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003712/0.3566, allocations: 2.346 MB / 450.5 MB, free: 2.578 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02526/0.3819, allocations: 9.967 MB / 460.4 MB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06405/0.446, allocations: 44.27 MB / 0.4929 GB, free: 11.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01316/0.4592, allocations: 5.335 MB / 0.4981 GB, free: 5.684 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003894/0.4631, allocations: 2.818 MB / 0.5009 GB, free: 2.855 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0142/0.4774, allocations: 8.128 MB / 0.5088 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.157e-05/0.4774, allocations: 59.81 kB / 0.5088 GB, free: 10.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=216): time 4.648e-06/0.4775, allocations: 3.938 kB / 0.5088 GB, free: 10.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=237): time 0.05256/0.53, allocations: 20.78 MB / 0.5291 GB, free: 5.516 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.5302, allocations: 184.2 kB / 0.5293 GB, free: 5.297 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006616/0.5368, allocations: 4.758 MB / 0.534 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004395/0.5373, allocations: 57.69 kB / 0.534 GB, free: 476 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002361/0.5396, allocations: 3.397 MB / 0.5373 GB, free: 13.02 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001096/0.5408, allocations: 0.8907 MB / 0.5382 GB, free: 12.12 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001794/0.5426, allocations: 1.384 MB / 0.5396 GB, free: 10.72 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.5427, allocations: 305.1 kB / 0.5398 GB, free: 10.42 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003828/0.5465, allocations: 2.699 MB / 0.5425 GB, free: 7.719 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1798/0.7263, allocations: 6.613 MB / 0.5489 GB, free: 142.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01147/0.7378, allocations: 10.08 MB / 0.5588 GB, free: 136.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001087/0.738, allocations: 38.97 kB / 0.5588 GB, free: 136.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.01674/0.7547, allocations: 10.18 MB / 0.5688 GB, free: 132.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.614e-05/0.7548, allocations: 62.91 kB / 0.5688 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001434/0.755, allocations: 137.6 kB / 0.569 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002897/0.7579, allocations: 1.204 MB / 0.5701 GB, free: 132.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00506/0.763, allocations: 1.605 MB / 0.5717 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007989/0.771, allocations: 7.274 MB / 0.5788 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004763/0.7758, allocations: 385.9 kB / 0.5792 GB, free: 128.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005724/0.7763, allocations: 408.4 kB / 0.5796 GB, free: 128.5 MB / 478.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.002874/0.7792, allocations: 2.379 MB / 0.5819 GB, free: 127.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005232/0.7798, allocations: 412.9 kB / 0.5823 GB, free: 127.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006706/0.7865, allocations: 4.766 MB / 0.5869 GB, free: 125.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.388e-05/0.7865, allocations: 31.59 kB / 0.587 GB, free: 125.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.7865, allocations: 3.875 kB / 0.587 GB, free: 125.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.658e-05/0.7866, allocations: 12.52 kB / 0.587 GB, free: 125.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01512/0.8017, allocations: 10.79 MB / 0.5975 GB, free: 118.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.828e-05/0.8017, allocations: 8 kB / 0.5975 GB, free: 118.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001865/0.8036, allocations: 426.2 kB / 0.5979 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002371/0.806, allocations: 1.023 MB / 0.5989 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002243/0.8062, allocations: 40 kB / 0.599 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007223/0.8135, allocations: 6.888 MB / 0.6057 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.8135, allocations: 8 kB / 0.6057 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01045/0.824, allocations: 8.164 MB / 0.6137 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002411/0.8264, allocations: 0.8325 MB / 0.6145 GB, free: 101.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006099/0.827, allocations: 47.98 kB / 0.6145 GB, free: 101.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001849/0.8289, allocations: 143.8 kB / 0.6147 GB, free: 101 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004214/0.8293, allocations: 156.9 kB / 0.6148 GB, free: 100.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001645/0.8295, allocations: 64 kB / 0.6149 GB, free: 100.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004789/0.8343, allocations: 3.058 MB / 0.6179 GB, free: 97.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.8343, allocations: 0 / 0.6179 GB, free: 97.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006666/0.841, allocations: 1.185 MB / 0.619 GB, free: 96.52 MB / 478.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.000475/0.8415, allocations: 186.2 kB / 0.6192 GB, free: 96.34 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00802/0.8496, allocations: 6.538 MB / 0.6256 GB, free: 89.83 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.084e-06/0.8496, allocations: 0.875 kB / 0.6256 GB, free: 89.83 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003099/0.8527, allocations: 2.418 MB / 0.6279 GB, free: 87.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002824/0.8555, allocations: 0.5135 MB / 0.6284 GB, free: 86.91 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01489/0.8705, allocations: 11.22 MB / 0.6394 GB, free: 75.61 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002975/0.8735, allocations: 3.677 MB / 0.643 GB, free: 71.91 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004116/0.8776, allocations: 2.212 MB / 0.6452 GB, free: 69.69 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008516/0.8785, allocations: 291.4 kB / 0.6454 GB, free: 69.4 MB / 478.1 MB Notification: Performance of SimCode: time 7.11e-07/0.8785, allocations: 3.938 kB / 0.6454 GB, free: 69.4 MB / 478.1 MB Notification: Performance of Templates: time 0.06732/0.9458, allocations: 42.55 MB / 0.687 GB, free: 26.95 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1)