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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.0012, allocations: 106.6 kB / 17.06 MB, free: 6.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 194.9 kB / 18 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 47.94 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1145, allocations: 46.61 MB / 374.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.2701/0.3846, allocations: 9.187 MB / 383.7 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005968/0.3906, allocations: 2.317 MB / 386 MB, free: 7.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001846/0.3926, allocations: 28.19 kB / 386 MB, free: 7.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001449/0.394, allocations: 319.3 kB / 386.3 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002863/0.3969, allocations: 495.5 kB / 386.8 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001846/0.3988, allocations: 0.6524 MB / 387.5 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003206/0.402, allocations: 2.343 MB / 389.8 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001753/0.4038, allocations: 1.107 MB / 390.9 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001546/0.4053, allocations: 0.8479 MB / 391.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001296/0.4066, allocations: 0.8876 MB / 392.6 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004324/0.4071, allocations: 274.3 kB / 392.9 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006528/0.4077, allocations: 327.9 kB / 393.2 MB, free: 3.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004485/0.4082, allocations: 0.4961 MB / 393.7 MB, free: 3.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009805/0.4092, allocations: 0.9717 MB / 394.7 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004845/0.414, allocations: 3.359 MB / 398.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.4141, allocations: 1.25 kB / 398.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.4141, allocations: 0 / 398.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.833e-05/0.4141, allocations: 0 / 398.1 MB, free: 1.52 MB / 318.1 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.004048/0.4182, allocations: 1.966 MB / 400 MB, free: 72 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.761e-05/0.4183, allocations: 10.41 kB / 400 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004153/0.4187, allocations: 191.7 kB / 400.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001764/0.4205, allocations: 0.8462 MB / 401.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004527/0.4209, allocations: 231.8 kB / 401.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00045/0.4214, allocations: 162 kB / 401.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003913/0.4253, allocations: 1.687 MB / 403.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.65e-05/0.4254, allocations: 3.219 kB / 403.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001531/0.4256, allocations: 69.38 kB / 403.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.884e-05/0.4256, allocations: 38.22 kB / 403.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003615/0.4292, allocations: 1.562 MB / 404.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009942/0.4392, allocations: 5.845 MB / 410.7 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002135/0.4414, allocations: 0.934 MB / 411.6 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/0.4425, allocations: 0.5273 MB / 412.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.002e-05/0.4426, allocations: 10.03 kB / 412.1 MB, free: 7.824 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001331/0.444, allocations: 0.6635 MB / 412.8 MB, free: 7.371 MB / 334.1 MB Notification: Performance of pre-optimization done (n=90): time 2.545e-06/0.444, allocations: 0 / 412.8 MB, free: 7.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.03377/0.4778, allocations: 8.978 MB / 421.8 MB, free: 52 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001941/0.478, allocations: 299.7 kB / 422.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001307/0.4793, allocations: 0.7858 MB / 422.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.4794, allocations: 53.7 kB / 422.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006007/0.4801, allocations: 0.68 MB / 423.6 MB, free: 14.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003671/0.4804, allocations: 424.4 kB / 424 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004807/0.4809, allocations: 247.5 kB / 424.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.4811, allocations: 407.6 kB / 424.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001847/0.483, allocations: 0.8121 MB / 425.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00207/0.4851, allocations: 1.13 MB / 426.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003402/0.4885, allocations: 1.654 MB / 428.2 MB, free: 9.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/0.4885, allocations: 7.938 kB / 428.2 MB, free: 9.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004742/0.4932, allocations: 2.073 MB / 430.3 MB, free: 7.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.329e-05/0.4933, allocations: 11.94 kB / 430.3 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.276e-05/0.4933, allocations: 4 kB / 430.3 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004961/0.4938, allocations: 186.4 kB / 430.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001626/0.4955, allocations: 359.4 kB / 430.9 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00472/0.5002, allocations: 4.811 MB / 435.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/0.5021, allocations: 171.8 kB / 435.8 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002233/0.5023, allocations: 48 kB / 435.9 MB, free: 1.172 MB / 350.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 (168): * Single equations (assignments): 165 * 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.001372/0.5037, allocations: 391.3 kB / 436.3 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004488/0.5042, allocations: 107.3 kB / 436.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004519/0.5046, allocations: 137.9 kB / 436.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.5047, allocations: 15.94 kB / 436.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-05/0.5047, allocations: 0 / 436.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.5047, allocations: 7.984 kB / 436.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009952/0.5147, allocations: 4.405 MB / 440.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-05/0.5148, allocations: 12.03 kB / 440.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/0.5159, allocations: 263.6 kB / 441.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000674/0.5166, allocations: 365.5 kB / 441.6 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001484/0.5168, allocations: 36 kB / 441.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002449/0.5193, allocations: 2.283 MB / 443.9 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-05/0.5193, allocations: 11.94 kB / 443.9 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00549/0.5248, allocations: 2.495 MB / 446.4 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/0.5259, allocations: 332.2 kB / 446.7 MB, free: 5.793 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004561/0.5263, allocations: 47.98 kB / 446.8 MB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001477/0.5278, allocations: 139.8 kB / 446.9 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004288/0.5283, allocations: 164.2 kB / 447.1 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/0.5284, allocations: 51.98 kB / 447.1 MB, free: 5.398 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001126/0.5295, allocations: 0.5342 MB / 447.6 MB, free: 4.867 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5295, allocations: 0 / 447.6 MB, free: 4.867 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002033/0.5316, allocations: 340 kB / 448 MB, free: 4.535 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.motor.Jmotor.w,axis.controller.PI.x,axis.initializeFlange.phi_flange) * Number of discrete variables: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,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 (112): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005652/0.5322, allocations: 187.7 kB / 448.2 MB, free: 4.344 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004832/0.537, allocations: 2.047 MB / 450.2 MB, free: 2.262 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-05/0.537, allocations: 4 kB / 450.2 MB, free: 2.258 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002454/0.5395, allocations: 1.055 MB / 451.3 MB, free: 1.195 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.5413, allocations: 204.6 kB / 451.5 MB, free: 1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007065/0.5484, allocations: 3.13 MB / 454.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001281/0.5498, allocations: 1.182 MB / 455.8 MB, free: 12.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001228/0.551, allocations: 164.4 kB / 455.9 MB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000536/0.5516, allocations: 87.42 kB / 456 MB, free: 12.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5516, allocations: 0 / 456 MB, free: 12.25 MB / 382.1 MB Notification: Performance of Templates: time 0.04085/0.5924, allocations: 19.02 MB / 475 MB, free: 9.191 MB / 398.1 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)