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.0009356/0.0009357, allocations: 89.78 kB / 16.65 MB, free: 6.594 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.0008801/0.0008803, allocations: 183 kB / 17.56 MB, free: 6.203 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.517/1.517, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.0004642/0.0004643, allocations: 12 kB / 280.7 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1068, allocations: 47.59 MB / 328.3 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.008901/0.1158, allocations: 8.588 MB / 336.9 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005719/0.1216, allocations: 2.252 MB / 339.2 MB, free: 8.855 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001674/0.1233, allocations: 27.94 kB / 339.2 MB, free: 8.828 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008419/0.1241, allocations: 250.2 kB / 339.4 MB, free: 8.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00188/0.126, allocations: 412.9 kB / 339.8 MB, free: 8.176 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00132/0.1274, allocations: 0.5816 MB / 340.4 MB, free: 7.594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002787/0.1302, allocations: 2.161 MB / 342.6 MB, free: 5.426 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001425/0.1316, allocations: 0.9959 MB / 343.6 MB, free: 4.383 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.1328, allocations: 0.5951 MB / 344.2 MB, free: 3.785 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000786/0.1336, allocations: 0.6685 MB / 344.9 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000149/0.1338, allocations: 80 kB / 344.9 MB, free: 3.035 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003194/0.1341, allocations: 135.9 kB / 345.1 MB, free: 2.902 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002768/0.1344, allocations: 290.7 kB / 345.3 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007387/0.1351, allocations: 0.7789 MB / 346.1 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002436/0.1376, allocations: 3.048 MB / 349.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.1376, allocations: 0 / 349.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1376, allocations: 4 kB / 349.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.359e-05/0.1377, allocations: 3.938 kB / 349.2 MB, free: 14.76 MB / 302.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.003395/0.1411, allocations: 1.624 MB / 350.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.1411, allocations: 8.031 kB / 350.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003069/0.1414, allocations: 182.9 kB / 351 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/0.1426, allocations: 0.838 MB / 351.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002837/0.1429, allocations: 236.7 kB / 352.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002403/0.1432, allocations: 163.9 kB / 352.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003245/0.1464, allocations: 1.702 MB / 353.9 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.328e-05/0.1465, allocations: 3.906 kB / 353.9 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000148/0.1466, allocations: 68 kB / 354 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.331e-05/0.1467, allocations: 36 kB / 354 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003332/0.15, allocations: 1.585 MB / 355.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009361/0.1594, allocations: 5.966 MB / 361.6 MB, free: 1.996 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/0.1615, allocations: 0.9714 MB / 362.5 MB, free: 1.008 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.1626, allocations: 0.5393 MB / 363.1 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.589e-05/0.1626, allocations: 13 kB / 363.1 MB, free: 464 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001261/0.1639, allocations: 0.6685 MB / 363.8 MB, free: 15.74 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 3.106e-06/0.1639, allocations: 0 / 363.8 MB, free: 15.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.0356/0.1995, allocations: 9.86 MB / 373.6 MB, free: 5.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001633/0.1997, allocations: 303.7 kB / 373.9 MB, free: 5.387 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001138/0.2009, allocations: 0.7818 MB / 374.7 MB, free: 4.598 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001277/0.201, allocations: 57.69 kB / 374.8 MB, free: 4.535 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005348/0.2016, allocations: 0.6661 MB / 375.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003444/0.2019, allocations: 406.2 kB / 375.8 MB, free: 3.453 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/0.2021, allocations: 113.6 kB / 375.9 MB, free: 3.336 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.2023, allocations: 414.7 kB / 376.3 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001954/0.2043, allocations: 0.8472 MB / 377.2 MB, free: 2.074 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002248/0.2065, allocations: 1.173 MB / 378.4 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.204/0.4106, allocations: 1.716 MB / 380.1 MB, free: 51.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/0.4106, allocations: 2.844 kB / 380.1 MB, free: 51.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.006107/0.4167, allocations: 2.142 MB / 382.2 MB, free: 50.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.206e-05/0.4168, allocations: 8.969 kB / 382.2 MB, free: 50.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.507e-05/0.4169, allocations: 6.594 kB / 382.2 MB, free: 50.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005634/0.4174, allocations: 185.3 kB / 382.4 MB, free: 50.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001836/0.4193, allocations: 369.4 kB / 382.8 MB, free: 50.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003443/0.4227, allocations: 4.47 MB / 387.3 MB, free: 46.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001829/0.4246, allocations: 209 kB / 387.5 MB, free: 46.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/0.4247, allocations: 51.48 kB / 387.5 MB, free: 46.44 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.0009723/0.4257, allocations: 390.6 kB / 387.9 MB, free: 46.15 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002507/0.426, allocations: 108.2 kB / 388 MB, free: 46.15 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003083/0.4263, allocations: 128.8 kB / 388.1 MB, free: 46.05 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.4263, allocations: 12.83 kB / 388.1 MB, free: 46.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.4263, allocations: 0.9688 kB / 388.1 MB, free: 46.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/0.4264, allocations: 6.516 kB / 388.1 MB, free: 46.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008807/0.4352, allocations: 4.545 MB / 392.7 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.71e-05/0.4352, allocations: 17.41 kB / 392.7 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001194/0.4365, allocations: 282.6 kB / 393 MB, free: 43.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006533/0.4371, allocations: 369.1 kB / 393.3 MB, free: 43.63 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.63e-05/0.4372, allocations: 39.06 kB / 393.4 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00136/0.4386, allocations: 2.169 MB / 395.5 MB, free: 41.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.204e-05/0.4386, allocations: 15.2 kB / 395.6 MB, free: 41.61 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004997/0.4436, allocations: 2.606 MB / 398.2 MB, free: 40.31 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005908/0.4442, allocations: 324.2 kB / 398.5 MB, free: 40.08 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001665/0.4444, allocations: 44.58 kB / 398.5 MB, free: 40.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.4455, allocations: 177.1 kB / 398.7 MB, free: 40.04 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003419/0.4459, allocations: 169 kB / 398.9 MB, free: 39.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.142e-05/0.446, allocations: 48.48 kB / 398.9 MB, free: 39.97 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007362/0.4467, allocations: 0.5324 MB / 399.4 MB, free: 39.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4467, allocations: 0 / 399.4 MB, free: 39.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001448/0.4482, allocations: 345.2 kB / 399.8 MB, free: 39.7 MB / 318.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.000297/0.4485, allocations: 181.8 kB / 400 MB, free: 39.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003832/0.4523, allocations: 2.104 MB / 402.1 MB, free: 38.57 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.288e-06/0.4523, allocations: 5.781 kB / 402.1 MB, free: 38.57 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002041/0.4544, allocations: 1.086 MB / 403.2 MB, free: 38.07 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/0.4565, allocations: 192.8 kB / 403.3 MB, free: 38 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005519/0.462, allocations: 3.918 MB / 407.3 MB, free: 34.47 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007008/0.4627, allocations: 1.175 MB / 408.4 MB, free: 33.26 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001019/0.4638, allocations: 172.4 kB / 408.6 MB, free: 33.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003365/0.4641, allocations: 79.44 kB / 408.7 MB, free: 33.01 MB / 318.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4641, allocations: 0 / 408.7 MB, free: 33.01 MB / 318.1 MB Notification: Performance of Templates: time 0.02691/0.491, allocations: 17.44 MB / 426.1 MB, free: 15.59 MB / 318.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)