Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.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.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001051/0.001055, allocations: 169.8 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.323/1.323, allocations: 170.6 MB / 183.8 MB, free: 11.42 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001517/0.001517, allocations: 103.5 kB / 223.2 MB, free: 4.043 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.403e-05/2.407e-05, allocations: 4 kB / 268.9 MB, free: 20.91 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0702/0.07024, allocations: 38.77 MB / 307.6 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2964/0.3667, allocations: 83.68 MB / 391.3 MB, free: 8.688 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/0.367, allocations: 85.5 kB / 391.4 MB, free: 8.641 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08664/0.4537, allocations: 38.03 MB / 429.4 MB, free: 8.449 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4537, allocations: 224 / 429.4 MB, free: 8.449 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.913e-05/0.4538, allocations: 31.94 kB / 429.5 MB, free: 8.418 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 387 * Number of variables: 387 Notification: Performance of Generate backend data structure: time 0.002868/0.4567, allocations: 1.519 MB / 431 MB, free: 6.848 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.4568, allocations: 8.031 kB / 431 MB, free: 6.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003974/0.4572, allocations: 181.9 kB / 431.2 MB, free: 6.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.4584, allocations: 0.7944 MB / 432 MB, free: 5.824 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000301/0.4587, allocations: 244.1 kB / 432.2 MB, free: 5.566 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002481/0.4589, allocations: 159.9 kB / 432.4 MB, free: 5.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002901/0.4618, allocations: 1.589 MB / 433.9 MB, free: 3.793 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.176e-05/0.4619, allocations: 3.938 kB / 433.9 MB, free: 3.789 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001461/0.4621, allocations: 68 kB / 434 MB, free: 3.723 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.09e-05/0.4621, allocations: 36 kB / 434 MB, free: 3.688 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002504/0.4646, allocations: 1.433 MB / 435.5 MB, free: 2.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009056/0.4737, allocations: 6.084 MB / 441.6 MB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.4752, allocations: 0.8865 MB / 442.5 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007313/0.476, allocations: 496.1 kB / 442.9 MB, free: 10.53 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.443e-05/0.4761, allocations: 8.953 kB / 442.9 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009764/0.4771, allocations: 0.6102 MB / 443.6 MB, free: 9.871 MB / 330.7 MB Notification: Performance of pre-optimization done (n=90): time 3.366e-06/0.4771, allocations: 0 / 443.6 MB, free: 9.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=121): time 0.01196/0.4891, allocations: 5.639 MB / 449.2 MB, free: 4.133 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.4892, allocations: 307.7 kB / 449.5 MB, free: 3.762 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009594/0.4902, allocations: 0.6989 MB / 450.2 MB, free: 3.059 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001052/0.4903, allocations: 57.69 kB / 450.2 MB, free: 2.996 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005184/0.4908, allocations: 0.6585 MB / 450.9 MB, free: 2.324 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.4911, allocations: 406.1 kB / 451.3 MB, free: 1.922 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.95e-05/0.4912, allocations: 28 kB / 451.3 MB, free: 1.895 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.4914, allocations: 410.7 kB / 451.7 MB, free: 1.484 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/0.4925, allocations: 0.6757 MB / 452.4 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001244/0.4937, allocations: 0.9828 MB / 453.4 MB, free: 15.71 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.4947, allocations: 0.6531 MB / 454 MB, free: 15.06 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.4948, allocations: 4 kB / 454 MB, free: 15.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.002784/0.4975, allocations: 1.795 MB / 455.8 MB, free: 13.24 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.4976, allocations: 8 kB / 455.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.4976, allocations: 8 kB / 455.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003873/0.498, allocations: 178.5 kB / 456 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001611/0.4996, allocations: 371.5 kB / 456.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003632/0.5033, allocations: 4.474 MB / 460.9 MB, free: 7.805 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/0.5048, allocations: 199.9 kB / 461.1 MB, free: 7.609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/0.5049, allocations: 52 kB / 461.1 MB, free: 7.559 MB / 346.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): 166 * 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: 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.0003081/0.5052, allocations: 198.8 kB / 461.3 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001678/0.5054, allocations: 114.7 kB / 461.4 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003276/0.5057, allocations: 126 kB / 461.5 MB, free: 7.117 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.5058, allocations: 12 kB / 461.6 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.5058, allocations: 4 kB / 461.6 MB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.5058, allocations: 15.86 kB / 461.6 MB, free: 7.086 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006778/0.5126, allocations: 4.268 MB / 465.8 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.5126, allocations: 16.22 kB / 465.9 MB, free: 2.617 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/0.5137, allocations: 279.6 kB / 466.1 MB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006839/0.5144, allocations: 473.4 kB / 466.6 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.375e-05/0.5145, allocations: 43.92 kB / 466.6 MB, free: 1.832 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1737/0.6882, allocations: 2.163 MB / 468.8 MB, free: 92.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.461e-05/0.6882, allocations: 19.09 kB / 468.8 MB, free: 92.48 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003684/0.6919, allocations: 2.608 MB / 471.4 MB, free: 91.39 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007748/0.6927, allocations: 328.1 kB / 471.7 MB, free: 91.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001726/0.6929, allocations: 45.5 kB / 471.8 MB, free: 91.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.694, allocations: 156.7 kB / 471.9 MB, free: 91.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004109/0.6944, allocations: 179.9 kB / 472.1 MB, free: 91.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.6946, allocations: 49.95 kB / 472.2 MB, free: 91.29 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008598/0.6954, allocations: 0.5231 MB / 472.7 MB, free: 91.19 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6954, allocations: 0 / 472.7 MB, free: 91.19 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001436/0.6969, allocations: 349.9 kB / 473 MB, free: 91.19 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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 (113): * Single equations (assignments): 111 * 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.0003375/0.6972, allocations: 188.4 kB / 473.2 MB, free: 91.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002793/0.7, allocations: 1.753 MB / 475 MB, free: 90.76 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.7001, allocations: 1.062 kB / 475 MB, free: 90.76 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001652/0.7017, allocations: 0.9267 MB / 475.9 MB, free: 90.65 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/0.7028, allocations: 172.9 kB / 476.1 MB, free: 90.64 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005471/0.7083, allocations: 2.455 MB / 478.5 MB, free: 89.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000911/0.7093, allocations: 1.207 MB / 479.7 MB, free: 89.04 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001069/0.7103, allocations: 158.2 kB / 479.9 MB, free: 88.99 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003714/0.7107, allocations: 79.58 kB / 480 MB, free: 88.98 MB / 346.7 MB Notification: Performance of SimCode: time 9.81e-07/0.7107, allocations: 0 / 480 MB, free: 88.98 MB / 346.7 MB Notification: Performance of Templates: time 0.02597/0.7367, allocations: 16.86 MB / 496.8 MB, free: 88.12 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)