Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001494/0.001494, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001593/0.001593, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.588/1.588, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001376/0.001376, allocations: 55.91 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3096, allocations: 46.63 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01179/0.3214, allocations: 9.184 MB / 334.5 MB, free: 10.53 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007451/0.329, allocations: 2.299 MB / 336.8 MB, free: 8.406 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002217/0.3313, allocations: 35.88 kB / 336.8 MB, free: 8.371 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009497/0.3322, allocations: 325.1 kB / 337.2 MB, free: 8.051 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001676/0.3339, allocations: 499.7 kB / 337.6 MB, free: 7.559 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001363/0.3353, allocations: 0.6516 MB / 338.3 MB, free: 6.906 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002714/0.338, allocations: 2.333 MB / 340.6 MB, free: 4.562 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001544/0.3396, allocations: 1.109 MB / 341.7 MB, free: 3.406 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001446/0.341, allocations: 0.8412 MB / 342.6 MB, free: 2.562 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009504/0.342, allocations: 0.8871 MB / 343.5 MB, free: 1.672 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003111/0.3423, allocations: 276 kB / 343.7 MB, free: 1.402 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004905/0.3428, allocations: 320 kB / 344 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004544/0.3433, allocations: 0.5026 MB / 344.6 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009618/0.3442, allocations: 0.9803 MB / 345.5 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003183/0.3474, allocations: 3.298 MB / 348.8 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3474, allocations: 0 / 348.8 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.3475, allocations: 0 / 348.8 MB, free: 12.29 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.482e-05/0.3475, allocations: 4 kB / 348.8 MB, free: 12.29 MB / 286.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.003874/0.3514, allocations: 1.92 MB / 350.8 MB, free: 10.31 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.3514, allocations: 8.031 kB / 350.8 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003044/0.3518, allocations: 186.8 kB / 350.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00133/0.3531, allocations: 0.8303 MB / 351.8 MB, free: 9.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003154/0.3534, allocations: 232.7 kB / 352 MB, free: 9.004 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002435/0.3537, allocations: 155.9 kB / 352.2 MB, free: 8.852 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003176/0.3569, allocations: 1.686 MB / 353.8 MB, free: 7.137 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.842e-05/0.3569, allocations: 7.906 kB / 353.8 MB, free: 7.129 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001444/0.3571, allocations: 71.94 kB / 353.9 MB, free: 7.059 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.389e-05/0.3571, allocations: 36 kB / 354 MB, free: 7.023 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003148/0.3603, allocations: 1.558 MB / 355.5 MB, free: 5.461 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008637/0.3689, allocations: 5.889 MB / 361.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/0.3709, allocations: 0.948 MB / 362.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009966/0.3719, allocations: 0.5321 MB / 362.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.529e-05/0.372, allocations: 9 kB / 362.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001221/0.3732, allocations: 0.6567 MB / 363.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.395e-06/0.3732, allocations: 3.938 kB / 363.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03455/0.4078, allocations: 8.922 MB / 372.5 MB, free: 4.086 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002023/0.408, allocations: 295.7 kB / 372.8 MB, free: 3.727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/0.4093, allocations: 0.7857 MB / 373.5 MB, free: 2.934 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001106/0.4094, allocations: 57.69 kB / 373.6 MB, free: 2.871 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006207/0.41, allocations: 0.6623 MB / 374.3 MB, free: 2.195 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003563/0.4104, allocations: 410.2 kB / 374.7 MB, free: 1.789 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004638/0.4109, allocations: 243.4 kB / 374.9 MB, free: 1.547 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002355/0.4111, allocations: 414.7 kB / 375.3 MB, free: 1.133 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001881/0.413, allocations: 0.8121 MB / 376.1 MB, free: 328 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00211/0.4151, allocations: 1.13 MB / 377.3 MB, free: 15.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003569/0.4187, allocations: 1.646 MB / 378.9 MB, free: 13.33 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.4187, allocations: 4 kB / 378.9 MB, free: 13.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004765/0.4235, allocations: 2.076 MB / 381 MB, free: 11.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.4236, allocations: 11.94 kB / 381 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.4236, allocations: 4 kB / 381 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004942/0.4241, allocations: 182.5 kB / 381.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001636/0.4257, allocations: 351.5 kB / 381.5 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00408/0.4298, allocations: 4.815 MB / 386.3 MB, free: 5.453 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001524/0.4314, allocations: 163.9 kB / 386.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.4315, allocations: 51.98 kB / 386.5 MB, free: 5.242 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,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.0009257/0.4324, allocations: 391.1 kB / 386.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002025/0.4326, allocations: 106.7 kB / 387 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002369/0.4329, allocations: 130 kB / 387.2 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.4329, allocations: 12 kB / 387.2 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.4329, allocations: 0 / 387.2 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.4329, allocations: 11.98 kB / 387.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007676/0.4406, allocations: 4.419 MB / 391.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/0.4407, allocations: 12.94 kB / 391.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.4418, allocations: 267.6 kB / 391.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005663/0.4423, allocations: 365.5 kB / 392.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.851e-05/0.4424, allocations: 35.98 kB / 392.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001926/0.4444, allocations: 2.275 MB / 394.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.066e-05/0.4444, allocations: 15.94 kB / 394.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00489/0.4493, allocations: 2.504 MB / 397.1 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007446/0.45, allocations: 315.8 kB / 397.4 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001905/0.4502, allocations: 47.98 kB / 397.4 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.4513, allocations: 135.9 kB / 397.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003625/0.4517, allocations: 168.2 kB / 397.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.919e-05/0.4518, allocations: 47.98 kB / 397.8 MB, free: 9.469 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008551/0.4526, allocations: 0.5342 MB / 398.3 MB, free: 8.941 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4527, allocations: 0 / 398.3 MB, free: 8.941 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00159/0.4543, allocations: 351.9 kB / 398.6 MB, free: 8.598 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 (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.0004495/0.4547, allocations: 178.9 kB / 398.8 MB, free: 8.414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004891/0.4596, allocations: 2.089 MB / 400.9 MB, free: 6.285 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.4596, allocations: 0 / 400.9 MB, free: 6.285 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002143/0.4618, allocations: 1.044 MB / 401.9 MB, free: 5.234 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.463, allocations: 210 kB / 402.1 MB, free: 5.031 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006177/0.4692, allocations: 3.105 MB / 405.3 MB, free: 1.766 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008537/0.4701, allocations: 1.182 MB / 406.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008325/0.4709, allocations: 160.4 kB / 406.6 MB, free: 404 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003298/0.4712, allocations: 79.42 kB / 406.7 MB, free: 328 kB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4712, allocations: 0 / 406.7 MB, free: 328 kB / 334.1 MB Notification: Performance of Templates: time 0.03304/0.5043, allocations: 18.68 MB / 425.3 MB, free: 13.61 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)