Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.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.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01141/0.01141, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.002207/0.002207, allocations: 196.3 kB / 16.67 MB, free: 5.52 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.679/1.679, allocations: 205.1 MB / 222.5 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.001406/0.001406, allocations: 47.94 kB / 326.6 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1063, allocations: 46.62 MB / 373.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.2269/0.3332, allocations: 9.176 MB / 382.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00506/0.3383, allocations: 2.307 MB / 384.7 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001507/0.3399, allocations: 32.09 kB / 384.7 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009236/0.3409, allocations: 324.1 kB / 385 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001745/0.3426, allocations: 0.4975 MB / 385.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001421/0.3441, allocations: 0.6493 MB / 386.1 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002617/0.3467, allocations: 2.345 MB / 388.5 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001504/0.3482, allocations: 1.111 MB / 389.6 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001361/0.3496, allocations: 0.8544 MB / 390.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001054/0.3506, allocations: 0.8877 MB / 391.3 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003547/0.351, allocations: 276 kB / 391.6 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000493/0.3515, allocations: 328 kB / 391.9 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003692/0.3519, allocations: 0.4966 MB / 392.4 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008811/0.3528, allocations: 0.9762 MB / 393.4 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003989/0.3568, allocations: 3.346 MB / 396.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.3568, allocations: 0 / 396.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.3568, allocations: 0 / 396.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.661e-05/0.3569, allocations: 1 kB / 396.8 MB, free: 1.324 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.004676/0.3616, allocations: 1.926 MB / 398.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.3617, allocations: 9.188 kB / 398.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004127/0.3621, allocations: 175.6 kB / 398.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001746/0.3638, allocations: 0.8435 MB / 399.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003361/0.3642, allocations: 234.9 kB / 399.9 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003006/0.3645, allocations: 164.9 kB / 400.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003726/0.3682, allocations: 1.684 MB / 401.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.853e-05/0.3683, allocations: 6.656 kB / 401.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001424/0.3684, allocations: 69.73 kB / 401.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.405e-05/0.3685, allocations: 37.12 kB / 401.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003419/0.3719, allocations: 1.558 MB / 403.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009667/0.3816, allocations: 5.835 MB / 409.3 MB, free: 8.469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002183/0.3838, allocations: 0.9366 MB / 410.2 MB, free: 7.973 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.3849, allocations: 0.5281 MB / 410.7 MB, free: 7.695 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.284e-05/0.3849, allocations: 10.03 kB / 410.8 MB, free: 7.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001175/0.3861, allocations: 0.6577 MB / 411.4 MB, free: 7.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=90): time 3.226e-06/0.3861, allocations: 0 / 411.4 MB, free: 7.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.03298/0.4191, allocations: 8.933 MB / 420.3 MB, free: 24 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001678/0.4193, allocations: 296.9 kB / 420.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.4208, allocations: 0.7895 MB / 421.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001591/0.421, allocations: 53.7 kB / 421.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006344/0.4216, allocations: 0.6624 MB / 422.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004237/0.422, allocations: 414.1 kB / 422.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005327/0.4226, allocations: 239.5 kB / 422.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.4228, allocations: 414.7 kB / 423.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001831/0.4246, allocations: 0.816 MB / 424 MB, free: 12.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002117/0.4268, allocations: 1.122 MB / 425.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00338/0.4302, allocations: 1.65 MB / 426.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.4302, allocations: 4 kB / 426.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004747/0.4349, allocations: 2.072 MB / 428.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.435, allocations: 11.94 kB / 428.9 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/0.435, allocations: 4 kB / 428.9 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004866/0.4355, allocations: 186.4 kB / 429 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/0.4372, allocations: 351.5 kB / 429.4 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004539/0.4417, allocations: 4.818 MB / 434.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.4434, allocations: 163.8 kB / 434.4 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001831/0.4436, allocations: 51.98 kB / 434.4 MB, free: 1.184 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 12 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,axis.gear.bearingFriction.mode,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.startBackward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009651/0.4446, allocations: 383.3 kB / 434.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003019/0.4449, allocations: 106.9 kB / 434.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003265/0.4452, allocations: 137.9 kB / 435 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.4452, allocations: 12 kB / 435 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.4452, allocations: 0 / 435 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.4453, allocations: 11.97 kB / 435.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008443/0.4537, allocations: 4.408 MB / 439.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.312e-05/0.4538, allocations: 12.03 kB / 439.5 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/0.4549, allocations: 259.6 kB / 439.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006369/0.4556, allocations: 369.5 kB / 440.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/0.4557, allocations: 39.98 kB / 440.1 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001961/0.4577, allocations: 2.267 MB / 442.4 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.818e-06/0.4577, allocations: 15.94 kB / 442.4 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004885/0.4626, allocations: 2.498 MB / 444.9 MB, free: 6.156 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007479/0.4634, allocations: 323.7 kB / 445.2 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003231/0.4637, allocations: 43.98 kB / 445.3 MB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001188/0.4649, allocations: 135.9 kB / 445.4 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003612/0.4653, allocations: 172.2 kB / 445.6 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.645e-05/0.4654, allocations: 47.98 kB / 445.6 MB, free: 5.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008817/0.4663, allocations: 0.5303 MB / 446.1 MB, free: 4.902 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4663, allocations: 0 / 446.1 MB, free: 4.902 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001726/0.468, allocations: 352 kB / 446.5 MB, free: 4.559 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.motor.Jmotor.w,axis.controller.PI.x,axis.initializeFlange.phi_flange) * Number of discrete variables: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase) * Number of discrete states: 3 (axis.gear.bearingFriction.mode,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004456/0.4685, allocations: 183 kB / 446.7 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00428/0.4728, allocations: 2.042 MB / 448.7 MB, free: 2.293 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/0.4728, allocations: 4 kB / 448.7 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002168/0.4749, allocations: 1.055 MB / 449.8 MB, free: 1.227 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001446/0.4764, allocations: 202.9 kB / 450 MB, free: 1.035 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006336/0.4828, allocations: 3.086 MB / 453.1 MB, free: 13.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/0.4839, allocations: 1.178 MB / 454.2 MB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008482/0.4847, allocations: 164.4 kB / 454.4 MB, free: 12.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004012/0.4851, allocations: 87.42 kB / 454.5 MB, free: 12.33 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4852, allocations: 0 / 454.5 MB, free: 12.33 MB / 382.1 MB Notification: Performance of Templates: time 0.03671/0.5219, allocations: 19.02 MB / 473.5 MB, free: 9.285 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)