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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001097/0.001098, allocations: 182 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.599/1.599, allocations: 194.2 MB / 208.4 MB, free: 6.719 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001781/0.001781, allocations: 120.7 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.739e-05/4.741e-05, allocations: 4 kB / 305 MB, free: 29.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09596/0.09602, allocations: 44.5 MB / 349.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3426/0.4386, allocations: 88.91 MB / 438.4 MB, free: 6.434 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/0.439, allocations: 91.56 kB / 438.4 MB, free: 6.418 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08679/0.5258, allocations: 38.02 MB / 476.5 MB, free: 6.598 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5258, allocations: 0 / 476.5 MB, free: 6.598 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.807e-05/0.5259, allocations: 32 kB / 476.5 MB, free: 6.566 MB / 330.7 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.003071/0.529, allocations: 1.514 MB / 478 MB, free: 5.105 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.529, allocations: 8.031 kB / 478 MB, free: 5.098 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00042/0.5295, allocations: 178 kB / 478.2 MB, free: 4.922 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/0.5307, allocations: 0.7908 MB / 479 MB, free: 4.328 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002952/0.531, allocations: 240.5 kB / 479.2 MB, free: 4.129 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002457/0.5313, allocations: 163 kB / 479.4 MB, free: 4.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002857/0.5341, allocations: 1.556 MB / 480.9 MB, free: 3.031 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.91e-05/0.5342, allocations: 17.45 kB / 481 MB, free: 3.016 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000166/0.5344, allocations: 65.52 kB / 481 MB, free: 3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.003e-05/0.5344, allocations: 44 kB / 481.1 MB, free: 2.957 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002542/0.537, allocations: 1.371 MB / 482.4 MB, free: 1.586 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01001/0.547, allocations: 6.042 MB / 488.5 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001472/0.5485, allocations: 0.8429 MB / 489.3 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007811/0.5493, allocations: 476.7 kB / 489.8 MB, free: 9.977 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.713e-05/0.5494, allocations: 12.72 kB / 489.8 MB, free: 9.965 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009966/0.5504, allocations: 0.6024 MB / 490.4 MB, free: 9.316 MB / 346.7 MB Notification: Performance of pre-optimization done (n=92): time 2.164e-06/0.5504, allocations: 0 / 490.4 MB, free: 9.316 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.01254/0.5629, allocations: 5.56 MB / 496 MB, free: 3.664 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/0.5631, allocations: 299.7 kB / 496.2 MB, free: 3.305 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.5641, allocations: 0.6795 MB / 496.9 MB, free: 2.621 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.5643, allocations: 57.73 kB / 497 MB, free: 2.559 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005735/0.5648, allocations: 0.6585 MB / 497.6 MB, free: 1.887 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003728/0.5652, allocations: 414 kB / 498 MB, free: 1.477 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.088e-05/0.5653, allocations: 28 kB / 498.1 MB, free: 1.449 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002087/0.5655, allocations: 406.7 kB / 498.5 MB, free: 1.043 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001047/0.5666, allocations: 0.6406 MB / 499.1 MB, free: 412 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/0.568, allocations: 0.9589 MB / 0.4884 GB, free: 15.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.569, allocations: 0.6374 MB / 0.489 GB, free: 14.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.569, allocations: 0 / 0.489 GB, free: 14.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003002/0.5721, allocations: 1.733 MB / 0.4907 GB, free: 12.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.5721, allocations: 15.94 kB / 0.4907 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.743e-05/0.5721, allocations: 16 kB / 0.4907 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004029/0.5725, allocations: 170.5 kB / 0.4909 GB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001648/0.5742, allocations: 379.4 kB / 0.4912 GB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003972/0.5782, allocations: 4.451 MB / 0.4956 GB, free: 7.512 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/0.5799, allocations: 199.9 kB / 0.4958 GB, free: 7.316 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/0.5801, allocations: 59.98 kB / 0.4958 GB, free: 7.258 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 (axis.gear.bearingFriction.free,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003824/0.5804, allocations: 198.8 kB / 0.496 GB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002094/0.5807, allocations: 102.8 kB / 0.4961 GB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002848/0.5835, allocations: 1.479 MB / 0.4975 GB, free: 5.457 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.5835, allocations: 12 kB / 0.4976 GB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.5835, allocations: 0 / 0.4976 GB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.5836, allocations: 11.97 kB / 0.4976 GB, free: 5.434 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007037/0.5906, allocations: 4.218 MB / 0.5017 GB, free: 1.031 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/0.5907, allocations: 8 kB / 0.5017 GB, free: 1.023 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001139/0.5918, allocations: 284.1 kB / 0.502 GB, free: 0.7461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005174/0.5923, allocations: 325.5 kB / 0.5023 GB, free: 432 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.777e-05/0.5924, allocations: 39.98 kB / 0.5023 GB, free: 392 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/0.594, allocations: 2.103 MB / 0.5044 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.746e-06/0.594, allocations: 11.94 kB / 0.5044 GB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003265/0.5973, allocations: 2.534 MB / 0.5069 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005932/0.5979, allocations: 331.7 kB / 0.5072 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001728/0.5981, allocations: 43.98 kB / 0.5072 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.5991, allocations: 155.9 kB / 0.5074 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000339/0.5995, allocations: 192.3 kB / 0.5075 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.925e-05/0.5996, allocations: 47.98 kB / 0.5076 GB, free: 10.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007039/0.6003, allocations: 0.5148 MB / 0.5081 GB, free: 9.902 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.252e-06/0.6003, allocations: 0 / 0.5081 GB, free: 9.902 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0013/0.6016, allocations: 359.9 kB / 0.5084 GB, free: 9.551 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 7 (axis.gear.gear.phi_a,axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.controller.PI.x,load.w) * Number of discrete variables: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase) * Number of discrete states: 3 (axis.gear.bearingFriction.mode,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003054/0.6019, allocations: 182.9 kB / 0.5086 GB, free: 9.363 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002607/0.6046, allocations: 1.76 MB / 0.5103 GB, free: 7.559 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.6046, allocations: 4 kB / 0.5103 GB, free: 7.555 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001637/0.6062, allocations: 0.9236 MB / 0.5112 GB, free: 6.621 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009196/0.6072, allocations: 167.4 kB / 0.5114 GB, free: 6.457 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005023/0.6122, allocations: 2.465 MB / 0.5138 GB, free: 3.844 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.6132, allocations: 1.202 MB / 0.515 GB, free: 2.609 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001306/0.6146, allocations: 168.3 kB / 0.5151 GB, free: 2.441 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004708/0.615, allocations: 75.44 kB / 0.5152 GB, free: 2.371 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.615, allocations: 0 / 0.5152 GB, free: 2.371 MB / 378.7 MB Notification: Performance of Templates: time 0.02788/0.6429, allocations: 17.12 MB / 0.5319 GB, free: 1.23 MB / 394.7 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)