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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003868/0.003868, allocations: 180.6 kB / 7.449 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.37/1.37, allocations: 170.6 MB / 178.4 MB, free: 15.36 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.002213/0.002213, allocations: 115.8 kB / 217.7 MB, free: 8.125 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.059e-05/1.061e-05, allocations: 0 / 261.8 MB, free: 26.61 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.103, allocations: 38.76 MB / 300.5 MB, free: 3.852 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3324/0.4354, allocations: 82.93 MB / 383.4 MB, free: 1.648 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002548/0.4358, allocations: 85.58 kB / 383.5 MB, free: 1.602 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.09665/0.5324, allocations: 37.7 MB / 421.2 MB, free: 2.113 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001697/0.5327, allocations: 31.94 kB / 421.3 MB, free: 2.082 MB / 298.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.005939/0.5386, allocations: 1.551 MB / 422.8 MB, free: 492 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.84e-05/0.5387, allocations: 8.031 kB / 422.8 MB, free: 484 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001329/0.54, allocations: 185.9 kB / 423 MB, free: 296 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002438/0.5425, allocations: 0.7984 MB / 423.8 MB, free: 15.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003974/0.5429, allocations: 188.1 kB / 424 MB, free: 15.24 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005413/0.5435, allocations: 103.8 kB / 424.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003714/0.5472, allocations: 1.353 MB / 425.4 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003679/0.5509, allocations: 1.368 MB / 426.8 MB, free: 12.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.058e-05/0.551, allocations: 7.906 kB / 426.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001903/0.5512, allocations: 0 / 426.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.22e-05/0.5512, allocations: 40 kB / 426.9 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01274/0.564, allocations: 5.86 MB / 432.7 MB, free: 6.266 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.5652, allocations: 0.5754 MB / 433.3 MB, free: 5.672 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008364/0.5661, allocations: 464.6 kB / 433.7 MB, free: 5.215 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.097e-05/0.5662, allocations: 16.77 kB / 433.8 MB, free: 5.199 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001183/0.5674, allocations: 0.5813 MB / 434.3 MB, free: 4.574 MB / 314.7 MB Notification: Performance of pre-optimization done (n=90): time 4.348e-06/0.5674, allocations: 0 / 434.3 MB, free: 4.574 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.0146/0.582, allocations: 5.39 MB / 439.7 MB, free: 15.08 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000191/0.5823, allocations: 303.7 kB / 440 MB, free: 14.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001324/0.5836, allocations: 0.6207 MB / 440.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.5838, allocations: 37.69 kB / 440.7 MB, free: 14.04 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006732/0.5844, allocations: 0.5724 MB / 441.3 MB, free: 13.46 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004411/0.5849, allocations: 394.2 kB / 441.6 MB, free: 13.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.585, allocations: 3.984 kB / 441.6 MB, free: 13.06 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002376/0.5853, allocations: 398.7 kB / 442 MB, free: 12.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.5865, allocations: 0.6484 MB / 442.7 MB, free: 12.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/0.5881, allocations: 0.9471 MB / 443.6 MB, free: 10.96 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00125/0.5893, allocations: 0.6311 MB / 444.3 MB, free: 10.33 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.5894, allocations: 4 kB / 444.3 MB, free: 10.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003786/0.5932, allocations: 1.687 MB / 446 MB, free: 8.617 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.5932, allocations: 8 kB / 446 MB, free: 8.609 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.536e-05/0.5932, allocations: 4 kB / 446 MB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005496/0.5938, allocations: 174.5 kB / 446.1 MB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001905/0.5957, allocations: 383.4 kB / 446.5 MB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004175/0.5999, allocations: 4.01 MB / 450.5 MB, free: 3.695 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002026/0.602, allocations: 187.9 kB / 450.7 MB, free: 3.512 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002821/0.6023, allocations: 56 kB / 450.8 MB, free: 3.457 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: axis.gear.bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0005598/0.6028, allocations: 142.6 kB / 450.9 MB, free: 3.312 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004064/0.6032, allocations: 98.78 kB / 451 MB, free: 3.215 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003441/0.6036, allocations: 101.7 kB / 451.1 MB, free: 3.109 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/0.6036, allocations: 19.98 kB / 451.1 MB, free: 3.09 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.708e-05/0.6036, allocations: 0 / 451.1 MB, free: 3.09 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.777e-05/0.6037, allocations: 7.984 kB / 451.1 MB, free: 3.082 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00895/0.6126, allocations: 3.994 MB / 455.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-05/0.6127, allocations: 11.94 kB / 455.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/0.614, allocations: 288.5 kB / 455.4 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008412/0.6149, allocations: 461.4 kB / 455.9 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001362/0.615, allocations: 23.98 kB / 455.9 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002308/0.6173, allocations: 2.129 MB / 458 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.682e-05/0.6174, allocations: 19.84 kB / 458 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00426/0.6217, allocations: 2.526 MB / 460.6 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/0.6227, allocations: 327.7 kB / 460.9 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004694/0.6232, allocations: 20 kB / 460.9 MB, free: 8.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001342/0.6245, allocations: 151.9 kB / 461 MB, free: 8.453 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/0.6249, allocations: 164.4 kB / 461.2 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.6251, allocations: 51.98 kB / 461.3 MB, free: 8.242 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0008474/0.6259, allocations: 475.1 kB / 461.7 MB, free: 7.781 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001599/0.6275, allocations: 296 kB / 462 MB, free: 7.492 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.0003741/0.6279, allocations: 163.5 kB / 462.2 MB, free: 7.324 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002728/0.6307, allocations: 1.651 MB / 463.8 MB, free: 5.645 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.411e-06/0.6307, allocations: 4 kB / 463.8 MB, free: 5.641 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001629/0.6323, allocations: 0.871 MB / 464.7 MB, free: 4.766 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009984/0.6333, allocations: 139.7 kB / 464.8 MB, free: 4.625 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005701/0.639, allocations: 2.384 MB / 467.2 MB, free: 2.082 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001413/0.6405, allocations: 1.283 MB / 468.5 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of SimCode: time 8.51e-07/0.6405, allocations: 0 / 468.5 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of Templates: time 0.205/0.8455, allocations: 17.54 MB / 486 MB, free: 132.1 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)