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.001295/0.001295, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.0011/0.0011, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.415/1.415, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.001226/0.001226, allocations: 55.92 kB / 280 MB, free: 3.156 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1059, allocations: 46.63 MB / 326.6 MB, free: 4.457 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01112/0.1171, allocations: 9.168 MB / 335.8 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005607/0.1228, allocations: 2.315 MB / 338.1 MB, free: 8.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001896/0.1247, allocations: 27.94 kB / 338.1 MB, free: 8.883 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009521/0.1257, allocations: 321 kB / 338.5 MB, free: 8.566 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001796/0.1275, allocations: 499.7 kB / 338.9 MB, free: 8.074 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001462/0.129, allocations: 0.6594 MB / 339.6 MB, free: 7.414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002715/0.1317, allocations: 2.333 MB / 341.9 MB, free: 5.074 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001435/0.1332, allocations: 1.116 MB / 343.1 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001098/0.1343, allocations: 0.8412 MB / 343.9 MB, free: 3.066 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008368/0.1351, allocations: 0.8831 MB / 344.8 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002916/0.1354, allocations: 276 kB / 345 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004102/0.1359, allocations: 328 kB / 345.4 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000363/0.1362, allocations: 0.4948 MB / 345.9 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008869/0.1371, allocations: 0.9764 MB / 346.8 MB, free: 116 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003675/0.1408, allocations: 3.302 MB / 350.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.1408, allocations: 0 / 350.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1409, allocations: 0 / 350.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.09e-05/0.1409, allocations: 0 / 350.1 MB, free: 12.8 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.004642/0.1456, allocations: 1.928 MB / 352.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.01e-05/0.1457, allocations: 12.02 kB / 352.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004038/0.1461, allocations: 182.9 kB / 352.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001499/0.1476, allocations: 0.8341 MB / 353.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003363/0.148, allocations: 232.7 kB / 353.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002804/0.1483, allocations: 163.8 kB / 353.5 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003148/0.1514, allocations: 1.682 MB / 355.2 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.126e-05/0.1515, allocations: 4 kB / 355.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/0.1516, allocations: 68 kB / 355.2 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.048e-05/0.1517, allocations: 36 kB / 355.3 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003073/0.1547, allocations: 1.566 MB / 356.8 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008605/0.1634, allocations: 5.88 MB / 362.7 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001865/0.1653, allocations: 0.9402 MB / 363.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009748/0.1663, allocations: 0.5315 MB / 364.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.099e-05/0.1663, allocations: 9 kB / 364.2 MB, free: 14.35 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001186/0.1675, allocations: 0.6567 MB / 364.9 MB, free: 13.65 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 2.735e-06/0.1675, allocations: 0 / 364.9 MB, free: 13.65 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03404/0.2016, allocations: 8.926 MB / 373.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001979/0.2018, allocations: 299.7 kB / 374.1 MB, free: 4.238 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.203, allocations: 0.7857 MB / 374.9 MB, free: 3.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.2031, allocations: 53.7 kB / 374.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000729/0.2039, allocations: 0.6662 MB / 375.6 MB, free: 2.707 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003458/0.2042, allocations: 406.1 kB / 376 MB, free: 2.305 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004488/0.2047, allocations: 243.4 kB / 376.2 MB, free: 2.062 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002327/0.2049, allocations: 414.7 kB / 376.6 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002026/0.207, allocations: 0.8121 MB / 377.4 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2254/0.4324, allocations: 1.126 MB / 378.6 MB, free: 52.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004347/0.4368, allocations: 1.649 MB / 380.2 MB, free: 51.85 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-05/0.4368, allocations: 2.219 kB / 380.2 MB, free: 51.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005104/0.4419, allocations: 2.075 MB / 382.3 MB, free: 51.1 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.411e-05/0.442, allocations: 8.188 kB / 382.3 MB, free: 51.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.233e-05/0.442, allocations: 7.375 kB / 382.3 MB, free: 51.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004577/0.4425, allocations: 178.4 kB / 382.5 MB, free: 51.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001674/0.4442, allocations: 355 kB / 382.8 MB, free: 51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003641/0.4478, allocations: 4.819 MB / 387.6 MB, free: 46.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.4496, allocations: 166.6 kB / 387.8 MB, free: 46.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001329/0.4498, allocations: 54.34 kB / 387.8 MB, free: 46.34 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.0008058/0.4506, allocations: 390.2 kB / 388.2 MB, free: 46.05 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/0.4508, allocations: 108 kB / 388.3 MB, free: 46.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002298/0.451, allocations: 133.6 kB / 388.5 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.451, allocations: 11.94 kB / 388.5 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.4511, allocations: 1.125 kB / 388.5 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.701e-05/0.4511, allocations: 7.266 kB / 388.5 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008301/0.4594, allocations: 4.42 MB / 392.9 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/0.4594, allocations: 9.531 kB / 392.9 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.4606, allocations: 257.8 kB / 393.2 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006404/0.4612, allocations: 376.3 kB / 393.5 MB, free: 43.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.235e-05/0.4614, allocations: 37.31 kB / 393.6 MB, free: 43.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001411/0.4628, allocations: 2.276 MB / 395.8 MB, free: 41.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/0.4628, allocations: 16.77 kB / 395.9 MB, free: 41.42 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004454/0.4673, allocations: 2.491 MB / 398.4 MB, free: 40.13 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005966/0.4679, allocations: 324.8 kB / 398.7 MB, free: 39.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001828/0.4681, allocations: 45.97 kB / 398.7 MB, free: 39.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.4691, allocations: 142.6 kB / 398.9 MB, free: 39.85 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003199/0.4694, allocations: 169.5 kB / 399 MB, free: 39.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.076e-05/0.4695, allocations: 44.56 kB / 399.1 MB, free: 39.79 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007661/0.4703, allocations: 0.5266 MB / 399.6 MB, free: 39.55 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4703, allocations: 1.312 kB / 399.6 MB, free: 39.55 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001384/0.4717, allocations: 349.3 kB / 399.9 MB, free: 39.52 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.0003177/0.472, allocations: 176.3 kB / 400.1 MB, free: 39.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004134/0.4761, allocations: 2.094 MB / 402.2 MB, free: 38.38 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.4762, allocations: 3.719 kB / 402.2 MB, free: 38.38 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001948/0.4781, allocations: 1.056 MB / 403.3 MB, free: 37.88 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.4792, allocations: 202.4 kB / 403.5 MB, free: 37.8 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005142/0.4844, allocations: 3.106 MB / 406.6 MB, free: 35.21 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006146/0.485, allocations: 1.182 MB / 407.7 MB, free: 34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008613/0.4859, allocations: 160.4 kB / 407.9 MB, free: 33.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003101/0.4862, allocations: 83.42 kB / 408 MB, free: 33.76 MB / 318.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4862, allocations: 0 / 408 MB, free: 33.76 MB / 318.1 MB Notification: Performance of Templates: time 0.02633/0.5126, allocations: 18.68 MB / 426.7 MB, free: 15.08 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)