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.006769/0.006769, allocations: 165.3 kB / 15.11 MB, free: 5.582 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.23/1.23, allocations: 170.8 MB / 186.6 MB, free: 1.125 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.001646/0.001646, allocations: 110.6 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003961/0.000396, allocations: 15.98 kB / 274.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2023, allocations: 38.77 MB / 312.9 MB, free: 38.72 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09772/0.3001, allocations: 83.76 MB / 396.7 MB, free: 6.73 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.3004, allocations: 95.94 kB / 396.8 MB, free: 6.637 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2295/0.5299, allocations: 38.04 MB / 434.8 MB, free: 76.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.53, allocations: 0 / 434.8 MB, free: 76.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.698e-05/0.5301, allocations: 34.81 kB / 434.8 MB, free: 76.62 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.002751/0.5328, allocations: 1.621 MB / 436.5 MB, free: 75.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.5329, allocations: 7.562 kB / 436.5 MB, free: 75.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003165/0.5332, allocations: 188.6 kB / 436.6 MB, free: 75.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.5342, allocations: 0.7976 MB / 437.4 MB, free: 75.42 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002268/0.5344, allocations: 241.4 kB / 437.7 MB, free: 75.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002019/0.5346, allocations: 157.8 kB / 437.8 MB, free: 75.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002737/0.5374, allocations: 1.679 MB / 439.5 MB, free: 75.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.375e-05/0.5374, allocations: 0 / 439.5 MB, free: 75.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001344/0.5376, allocations: 63.75 kB / 439.6 MB, free: 75.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.383e-05/0.5376, allocations: 40.88 kB / 439.6 MB, free: 75.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002765/0.5404, allocations: 1.595 MB / 441.2 MB, free: 74.63 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007783/0.5482, allocations: 6.098 MB / 447.3 MB, free: 71.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001776/0.55, allocations: 0.9774 MB / 448.3 MB, free: 70.71 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.75e-05/0.5501, allocations: 7.594 kB / 448.3 MB, free: 70.71 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001072/0.5512, allocations: 0.6801 MB / 449 MB, free: 70.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=90): time 2.605e-06/0.5512, allocations: 0 / 449 MB, free: 70.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.03079/0.582, allocations: 9.959 MB / 458.9 MB, free: 62.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.418e-05/0.5821, allocations: 295.7 kB / 459.2 MB, free: 62.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009142/0.583, allocations: 0.7184 MB / 459.9 MB, free: 61.78 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.5831, allocations: 53.7 kB / 460 MB, free: 61.72 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004692/0.5836, allocations: 0.6621 MB / 460.7 MB, free: 61.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002675/0.5839, allocations: 405.7 kB / 461 MB, free: 60.66 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.554e-05/0.584, allocations: 32 kB / 461.1 MB, free: 60.63 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.5841, allocations: 410.6 kB / 461.5 MB, free: 60.22 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00162/0.5858, allocations: 0.8589 MB / 462.3 MB, free: 59.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001808/0.5876, allocations: 1.166 MB / 463.5 MB, free: 58.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001561/0.5892, allocations: 0.842 MB / 464.3 MB, free: 57.24 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.5892, allocations: 0 / 464.3 MB, free: 57.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00388/0.5931, allocations: 2.162 MB / 466.5 MB, free: 55.06 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.5931, allocations: 4 kB / 466.5 MB, free: 55.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.5931, allocations: 12 kB / 466.5 MB, free: 55.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003914/0.5935, allocations: 188.6 kB / 466.7 MB, free: 54.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/0.595, allocations: 375.5 kB / 467.1 MB, free: 54.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002693/0.5977, allocations: 4.494 MB / 471.6 MB, free: 49.6 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001568/0.5993, allocations: 199.9 kB / 471.8 MB, free: 49.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.5994, allocations: 52 kB / 471.8 MB, free: 49.35 MB / 314.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 () * Number of clocked 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.0007534/0.6002, allocations: 394.5 kB / 472.2 MB, free: 48.96 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.6004, allocations: 102.8 kB / 472.3 MB, free: 48.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002295/0.6006, allocations: 141.9 kB / 472.4 MB, free: 48.71 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.6006, allocations: 12 kB / 472.5 MB, free: 48.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.6006, allocations: 0 / 472.5 MB, free: 48.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.6006, allocations: 7.969 kB / 472.5 MB, free: 48.69 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006816/0.6075, allocations: 4.566 MB / 477 MB, free: 43.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/0.6075, allocations: 11.98 kB / 477 MB, free: 43.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.6086, allocations: 279.8 kB / 477.3 MB, free: 43.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005991/0.6092, allocations: 473.3 kB / 477.8 MB, free: 43.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-05/0.6093, allocations: 43.94 kB / 477.8 MB, free: 43.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00131/0.6106, allocations: 2.188 MB / 480 MB, free: 40.85 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/0.6106, allocations: 11.94 kB / 480 MB, free: 40.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004255/0.6149, allocations: 3.044 MB / 483.1 MB, free: 37.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006189/0.6155, allocations: 339.6 kB / 483.4 MB, free: 37.08 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000158/0.6157, allocations: 43.98 kB / 483.4 MB, free: 37.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009179/0.6166, allocations: 163.3 kB / 483.6 MB, free: 36.88 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000305/0.6169, allocations: 188.5 kB / 483.8 MB, free: 36.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.07e-05/0.617, allocations: 47.98 kB / 483.8 MB, free: 36.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006843/0.6177, allocations: 0.5381 MB / 484.4 MB, free: 36.12 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6177, allocations: 0 / 484.4 MB, free: 36.12 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001258/0.619, allocations: 348 kB / 484.7 MB, free: 35.78 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.gear.bearingFriction.phi,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) * Number of clocked states: 0 () * 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.0002789/0.6193, allocations: 188.6 kB / 484.9 MB, free: 35.59 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003394/0.6227, allocations: 2.08 MB / 487 MB, free: 33.47 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.6227, allocations: 4 kB / 487 MB, free: 33.46 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001798/0.6245, allocations: 1.082 MB / 488.1 MB, free: 32.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008603/0.6254, allocations: 172 kB / 488.2 MB, free: 32.21 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005267/0.6307, allocations: 3.731 MB / 492 MB, free: 28.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006185/0.6313, allocations: 1.21 MB / 493.2 MB, free: 27.1 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0009232/0.6322, allocations: 156.3 kB / 493.3 MB, free: 26.95 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003383/0.6326, allocations: 79.42 kB / 493.4 MB, free: 26.87 MB / 314.7 MB Notification: Performance of SimCode: time 1.182e-06/0.6326, allocations: 0 / 493.4 MB, free: 26.87 MB / 314.7 MB Notification: Performance of Templates: time 0.0232/0.6558, allocations: 16.87 MB / 0.4983 GB, free: 10.03 MB / 314.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)