Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.001701/0.001701, allocations: 98.94 kB / 16.5 MB, free: 6.641 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.001745/0.001746, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.433/1.433, allocations: 205.1 MB / 223.3 MB, free: 12.46 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.001212/0.001212, allocations: 43.94 kB / 279.3 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1167, allocations: 46.64 MB / 326 MB, free: 4.875 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01041/0.1272, allocations: 9.121 MB / 335.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006426/0.1337, allocations: 2.256 MB / 337.4 MB, free: 9.438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001879/0.1356, allocations: 31.88 kB / 337.4 MB, free: 9.406 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.1367, allocations: 242.3 kB / 337.6 MB, free: 9.168 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001623/0.1383, allocations: 424.8 kB / 338 MB, free: 8.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001758/0.1401, allocations: 0.5738 MB / 338.6 MB, free: 8.176 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004192/0.1443, allocations: 2.165 MB / 340.8 MB, free: 6.004 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001992/0.1463, allocations: 1.015 MB / 341.8 MB, free: 4.941 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001515/0.1478, allocations: 0.6927 MB / 342.5 MB, free: 4.246 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009642/0.1488, allocations: 0.7972 MB / 343.3 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001975/0.149, allocations: 128 kB / 343.4 MB, free: 3.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003935/0.1494, allocations: 176 kB / 343.6 MB, free: 3.148 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003471/0.1498, allocations: 358.7 kB / 343.9 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001187/0.1509, allocations: 0.8358 MB / 344.8 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003319/0.1543, allocations: 3.15 MB / 347.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.1543, allocations: 0 / 347.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1543, allocations: 3.938 kB / 347.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.863e-05/0.1544, allocations: 4 kB / 347.9 MB, free: 14.79 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.004294/0.1587, allocations: 1.912 MB / 349.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.1588, allocations: 12.03 kB / 349.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003511/0.1591, allocations: 186.9 kB / 350 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.1604, allocations: 0.8418 MB / 350.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002986/0.1607, allocations: 228.7 kB / 351.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002362/0.1609, allocations: 167.8 kB / 351.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003237/0.1642, allocations: 1.674 MB / 352.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.783e-05/0.1642, allocations: 12 kB / 352.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001423/0.1644, allocations: 64 kB / 353 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.005e-05/0.1644, allocations: 36 kB / 353 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003207/0.1676, allocations: 1.566 MB / 354.6 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009363/0.177, allocations: 5.895 MB / 360.5 MB, free: 1.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001878/0.1789, allocations: 0.9364 MB / 361.4 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009605/0.1799, allocations: 0.5237 MB / 362 MB, free: 368 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.639e-05/0.18, allocations: 13 kB / 362 MB, free: 356 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001183/0.1812, allocations: 0.6646 MB / 362.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 2.204e-06/0.1812, allocations: 0 / 362.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03447/0.2157, allocations: 8.918 MB / 371.6 MB, free: 6.594 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002236/0.2159, allocations: 299.7 kB / 371.8 MB, free: 6.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001465/0.2175, allocations: 0.7935 MB / 372.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001592/0.2176, allocations: 53.7 kB / 372.7 MB, free: 5.371 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008086/0.2185, allocations: 0.6622 MB / 373.4 MB, free: 4.695 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005249/0.219, allocations: 402.2 kB / 373.7 MB, free: 4.297 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006303/0.2196, allocations: 247.4 kB / 374 MB, free: 4.051 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002747/0.2199, allocations: 410.7 kB / 374.4 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002037/0.222, allocations: 0.8082 MB / 375.2 MB, free: 2.832 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002418/0.2244, allocations: 1.134 MB / 376.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2344/0.4589, allocations: 1.642 MB / 378 MB, free: 51.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.725e-05/0.4589, allocations: 3.531 kB / 378 MB, free: 51.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005576/0.4645, allocations: 2.074 MB / 380.1 MB, free: 51.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.253e-05/0.4646, allocations: 8.125 kB / 380.1 MB, free: 51.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.4646, allocations: 8.312 kB / 380.1 MB, free: 51.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004788/0.4651, allocations: 175 kB / 380.2 MB, free: 51.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/0.4667, allocations: 358 kB / 380.6 MB, free: 51.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003303/0.4701, allocations: 4.444 MB / 385 MB, free: 47.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002025/0.4721, allocations: 165.8 kB / 385.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002218/0.4724, allocations: 50.69 kB / 385.2 MB, free: 47.11 MB / 318.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.0009592/0.4733, allocations: 392.5 kB / 385.6 MB, free: 46.82 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002417/0.4736, allocations: 109 kB / 385.7 MB, free: 46.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002167/0.4738, allocations: 138.1 kB / 385.9 MB, free: 46.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.4738, allocations: 12.7 kB / 385.9 MB, free: 46.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/0.4738, allocations: 5.125 kB / 385.9 MB, free: 46.71 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-05/0.4739, allocations: 5.953 kB / 385.9 MB, free: 46.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009254/0.4831, allocations: 4.41 MB / 390.3 MB, free: 44.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.151e-05/0.4832, allocations: 12.66 kB / 390.3 MB, free: 44.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001205/0.4844, allocations: 262 kB / 390.6 MB, free: 44.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007124/0.4851, allocations: 369.4 kB / 390.9 MB, free: 44.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.4853, allocations: 45.45 kB / 391 MB, free: 44.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001836/0.4871, allocations: 2.167 MB / 393.1 MB, free: 42.33 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.587e-05/0.4871, allocations: 14.81 kB / 393.2 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006182/0.4933, allocations: 2.496 MB / 395.7 MB, free: 41.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008746/0.4942, allocations: 321.5 kB / 396 MB, free: 40.8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002488/0.4945, allocations: 42.94 kB / 396 MB, free: 40.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001368/0.4959, allocations: 144.2 kB / 396.1 MB, free: 40.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004669/0.4964, allocations: 163.8 kB / 396.3 MB, free: 40.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.4965, allocations: 47.08 kB / 396.4 MB, free: 40.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001286/0.4978, allocations: 0.5311 MB / 396.9 MB, free: 40.47 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4978, allocations: 0 / 396.9 MB, free: 40.47 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002887/0.5007, allocations: 343.3 kB / 397.2 MB, free: 40.43 MB / 318.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.0005232/0.5012, allocations: 193.4 kB / 397.4 MB, free: 40.29 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005729/0.507, allocations: 2.021 MB / 399.4 MB, free: 39.31 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/0.507, allocations: 3.844 kB / 399.4 MB, free: 39.31 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003008/0.51, allocations: 1.053 MB / 400.5 MB, free: 38.81 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002296/0.5124, allocations: 194.7 kB / 400.7 MB, free: 38.74 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008534/0.5209, allocations: 3.758 MB / 404.4 MB, free: 36.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001035/0.522, allocations: 1.182 MB / 405.6 MB, free: 35.33 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001539/0.5235, allocations: 168.5 kB / 405.8 MB, free: 35.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006211/0.5242, allocations: 77.25 kB / 405.9 MB, free: 35.22 MB / 318.1 MB Notification: Performance of SimCode: time 2.755e-06/0.5242, allocations: 0 / 405.9 MB, free: 35.22 MB / 318.1 MB Notification: Performance of Templates: time 0.03753/0.5617, allocations: 17.71 MB / 423.6 MB, free: 17.66 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)