Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0013/0.001304, allocations: 108.1 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001383/0.001383, allocations: 210.8 kB / 19.42 MB, free: 3.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 64.03 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.2089, allocations: 50.56 MB / 410 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01007/0.219, allocations: 9.374 MB / 419.3 MB, free: 8.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003715/0.2227, allocations: 2.446 MB / 421.8 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008141/0.2235, allocations: 31.88 kB / 421.8 MB, free: 5.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000844/0.2244, allocations: 345 kB / 422.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001292/0.2257, allocations: 0.5036 MB / 422.6 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.2269, allocations: 0.6554 MB / 423.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002093/0.229, allocations: 2.368 MB / 425.7 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.2303, allocations: 1.115 MB / 426.8 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008858/0.2312, allocations: 0.8802 MB / 427.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008409/0.2321, allocations: 0.8871 MB / 428.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002843/0.2324, allocations: 280 kB / 428.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004371/0.2328, allocations: 331.9 kB / 429.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004003/0.2332, allocations: 0.5065 MB / 429.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007759/0.234, allocations: 0.9842 MB / 430.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002774/0.2368, allocations: 3.406 MB / 434 MB, free: 9.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2368, allocations: 0 / 434 MB, free: 9.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2368, allocations: 0 / 434 MB, free: 9.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.668e-05/0.2368, allocations: 0 / 434 MB, free: 9.344 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.003328/0.2402, allocations: 1.992 MB / 436 MB, free: 7.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.2402, allocations: 8.031 kB / 436 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002728/0.2405, allocations: 191.8 kB / 436.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.2417, allocations: 0.8619 MB / 437.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002627/0.2419, allocations: 236.7 kB / 437.3 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002285/0.2422, allocations: 159.9 kB / 437.5 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002967/0.2451, allocations: 1.679 MB / 439.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.66e-05/0.2452, allocations: 3.953 kB / 439.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001413/0.2454, allocations: 68 kB / 439.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.643e-05/0.2454, allocations: 36 kB / 439.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003141/0.2485, allocations: 1.535 MB / 440.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008282/0.2568, allocations: 5.831 MB / 446.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/0.2588, allocations: 0.9368 MB / 447.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009861/0.2598, allocations: 0.5083 MB / 448.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.49e-05/0.2599, allocations: 13 kB / 448.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001172/0.2611, allocations: 0.6411 MB / 448.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.756e-06/0.2611, allocations: 0 / 448.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03255/0.2936, allocations: 8.826 MB / 457.6 MB, free: 1.266 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.2938, allocations: 295.7 kB / 457.8 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.2948, allocations: 0.8091 MB / 458.7 MB, free: 88 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001062/0.2949, allocations: 53.7 kB / 458.7 MB, free: 28 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004888/0.2954, allocations: 0.68 MB / 459.4 MB, free: 15.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003251/0.2958, allocations: 436.3 kB / 459.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004772/0.2962, allocations: 243.5 kB / 460.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.2964, allocations: 410.7 kB / 460.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001885/0.2983, allocations: 0.7887 MB / 461.2 MB, free: 13.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002084/0.3004, allocations: 1.107 MB / 462.3 MB, free: 12.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003478/0.3039, allocations: 1.607 MB / 464 MB, free: 10.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.3039, allocations: 4 kB / 464 MB, free: 10.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004468/0.3084, allocations: 2.038 MB / 466 MB, free: 8.492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.3084, allocations: 8 kB / 466 MB, free: 8.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.3085, allocations: 8 kB / 466 MB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004342/0.3089, allocations: 218.4 kB / 466.2 MB, free: 8.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/0.3106, allocations: 351.5 kB / 466.6 MB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003959/0.3146, allocations: 4.847 MB / 471.4 MB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/0.316, allocations: 163.9 kB / 471.6 MB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.3161, allocations: 48 kB / 471.6 MB, free: 2.438 MB / 382.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 (169): * Single equations (assignments): 166 * 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.0006421/0.3168, allocations: 399.1 kB / 472 MB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.3169, allocations: 111.3 kB / 472.1 MB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002648/0.3172, allocations: 138.1 kB / 472.3 MB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.3172, allocations: 3.984 kB / 472.3 MB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3172, allocations: 0 / 472.3 MB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004721/0.3177, allocations: 352.3 kB / 472.6 MB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/0.3179, allocations: 32 kB / 472.6 MB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/0.3191, allocations: 147.8 kB / 472.8 MB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003906/0.3195, allocations: 156.8 kB / 472.9 MB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005112/0.3246, allocations: 1.927 MB / 474.9 MB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005643/0.3303, allocations: 2.701 MB / 477.6 MB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001756/0.332, allocations: 0.7964 MB / 478.4 MB, free: 11.64 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006969/0.3327, allocations: 0.5381 MB / 478.9 MB, free: 11.11 MB / 398.1 MB Notification: Performance of Backend: time 4.11e-07/0.3327, allocations: 0 / 478.9 MB, free: 11.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004469/0.3372, allocations: 2.022 MB / 480.9 MB, free: 9.223 MB / 398.1 MB Notification: Performance of SimCode: time 0.004071/0.3413, allocations: 3.044 MB / 484 MB, free: 6.125 MB / 398.1 MB Notification: Performance of Templates: time 0.03597/0.3773, allocations: 23.82 MB / 0.4959 GB, free: 14.42 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1)