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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001336/0.001336, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.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.0004618/0.0004619, allocations: 8 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2649, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.00858/0.2735, allocations: 7.379 MB / 333.8 MB, free: 11.68 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005884/0.2794, allocations: 2.309 MB / 336.2 MB, free: 9.766 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002158/0.2816, allocations: 31 kB / 336.2 MB, free: 9.758 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.283, allocations: 219.5 kB / 336.4 MB, free: 9.543 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002539/0.2856, allocations: 0.5219 MB / 336.9 MB, free: 9.02 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001493/0.2871, allocations: 351.5 kB / 337.3 MB, free: 8.676 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003544/0.2906, allocations: 1.416 MB / 338.7 MB, free: 7.254 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002/0.2926, allocations: 0.8093 MB / 339.5 MB, free: 6.414 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001592/0.2943, allocations: 0.5954 MB / 340.1 MB, free: 5.816 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001321/0.2956, allocations: 0.6416 MB / 340.7 MB, free: 5.172 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003843/0.296, allocations: 80 kB / 340.8 MB, free: 5.094 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007061/0.2967, allocations: 124 kB / 340.9 MB, free: 4.973 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005099/0.2972, allocations: 278.9 kB / 341.2 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007581/0.298, allocations: 340.9 kB / 341.5 MB, free: 4.359 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00283/0.3008, allocations: 2.669 MB / 344.2 MB, free: 1.684 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3009, allocations: 4 kB / 344.2 MB, free: 1.68 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3009, allocations: 0 / 344.2 MB, free: 1.68 MB / 270.1 MB Notification: Performance of Transformations before backend: time 0.0001097/0.301, allocations: 0 / 344.2 MB, free: 1.68 MB / 270.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.004332/0.3053, allocations: 1.639 MB / 345.8 MB, free: 15.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.3054, allocations: 12.03 kB / 345.9 MB, free: 15.97 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000553/0.3059, allocations: 177.9 kB / 346 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001653/0.3076, allocations: 0.81 MB / 346.8 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003689/0.308, allocations: 244.1 kB / 347.1 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003734/0.3084, allocations: 159.9 kB / 347.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003928/0.3123, allocations: 1.67 MB / 348.9 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.19e-05/0.3124, allocations: 11.89 kB / 348.9 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001937/0.3126, allocations: 64 kB / 349 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.384e-05/0.3126, allocations: 40 kB / 349 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003711/0.3163, allocations: 1.574 MB / 350.6 MB, free: 11.14 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01138/0.3277, allocations: 5.956 MB / 356.5 MB, free: 4.973 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00222/0.33, allocations: 0.9529 MB / 357.5 MB, free: 4.004 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.863e-05/0.3301, allocations: 20.97 kB / 357.5 MB, free: 3.984 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001296/0.3314, allocations: 0.6684 MB / 358.2 MB, free: 3.277 MB / 286.1 MB Notification: Performance of pre-optimization done (n=90): time 3.586e-06/0.3314, allocations: 0 / 358.2 MB, free: 3.277 MB / 286.1 MB Notification: Performance of matching and sorting (n=120): time 0.03549/0.3669, allocations: 9.831 MB / 368 MB, free: 9.316 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/0.3671, allocations: 303.7 kB / 368.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001234/0.3683, allocations: 0.7894 MB / 369.1 MB, free: 8.156 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001278/0.3685, allocations: 53.7 kB / 369.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005567/0.3691, allocations: 0.6546 MB / 369.8 MB, free: 7.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003734/0.3694, allocations: 418 kB / 370.2 MB, free: 7.016 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.3695, allocations: 28 kB / 370.2 MB, free: 6.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.3697, allocations: 406.7 kB / 370.6 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002005/0.3718, allocations: 0.8433 MB / 371.5 MB, free: 5.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002331/0.3741, allocations: 1.157 MB / 372.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002055/0.3762, allocations: 0.8302 MB / 373.5 MB, free: 3.637 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.439e-05/0.3762, allocations: 4 kB / 373.5 MB, free: 3.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00497/0.3812, allocations: 2.131 MB / 375.6 MB, free: 1.484 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.3812, allocations: 4 kB / 375.6 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.3813, allocations: 11.94 kB / 375.6 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005122/0.3818, allocations: 186.4 kB / 375.8 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/0.3835, allocations: 371.5 kB / 376.2 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004404/0.3879, allocations: 4.486 MB / 380.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001831/0.3898, allocations: 200 kB / 380.8 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001995/0.39, allocations: 55.98 kB / 380.9 MB, free: 11.77 MB / 318.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,$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.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 (168): * Single equations (assignments): 165 * 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.001002/0.391, allocations: 383.2 kB / 381.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003092/0.3913, allocations: 102.7 kB / 381.4 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003137/0.3916, allocations: 141.9 kB / 381.5 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/0.3917, allocations: 12 kB / 381.5 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/0.3917, allocations: 11.94 kB / 381.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.3917, allocations: 3.984 kB / 381.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009393/0.4011, allocations: 4.521 MB / 386.1 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.772e-05/0.4012, allocations: 8 kB / 386.1 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/0.4024, allocations: 288.2 kB / 386.4 MB, free: 6.109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006592/0.4031, allocations: 377.5 kB / 386.7 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.4032, allocations: 35.98 kB / 386.8 MB, free: 5.699 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001921/0.4051, allocations: 2.181 MB / 388.9 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.431e-05/0.4052, allocations: 15.92 kB / 389 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005523/0.4107, allocations: 3.077 MB / 392 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007321/0.4115, allocations: 323.7 kB / 392.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003344/0.4118, allocations: 55.98 kB / 392.4 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/0.4131, allocations: 171.9 kB / 392.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003606/0.4135, allocations: 184.2 kB / 392.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.727e-05/0.4136, allocations: 47.98 kB / 392.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009582/0.4146, allocations: 0.5186 MB / 393.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4146, allocations: 0 / 393.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001635/0.4162, allocations: 352 kB / 393.7 MB, free: 14.22 MB / 334.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 (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.0004142/0.4166, allocations: 187.1 kB / 393.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004768/0.4214, allocations: 2.086 MB / 395.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.705e-05/0.4215, allocations: 12.19 kB / 395.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002462/0.4239, allocations: 1.082 MB / 397 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.4254, allocations: 162.9 kB / 397.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007646/0.4331, allocations: 3.749 MB / 400.9 MB, free: 6.727 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/0.4344, allocations: 1.21 MB / 402.1 MB, free: 5.484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001181/0.4356, allocations: 168.4 kB / 402.3 MB, free: 5.316 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004738/0.4361, allocations: 83.42 kB / 402.4 MB, free: 5.234 MB / 334.1 MB Notification: Performance of SimCode: time 1.603e-06/0.4361, allocations: 0 / 402.4 MB, free: 5.234 MB / 334.1 MB Notification: Performance of Templates: time 0.03191/0.468, allocations: 16.94 MB / 419.3 MB, free: 4.277 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: