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.001289/0.001289, allocations: 104.5 kB / 17.06 MB, free: 6.016 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.001634/0.001634, allocations: 196 kB / 18 MB, free: 5.094 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.558/1.558, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001148/0.001148, allocations: 51.92 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1058, allocations: 46.61 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.2477/0.3535, allocations: 9.174 MB / 383.7 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006374/0.3599, allocations: 2.31 MB / 386 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002679/0.3627, allocations: 31.88 kB / 386 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001405/0.3641, allocations: 328.3 kB / 386.3 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002852/0.367, allocations: 494.9 kB / 386.8 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001881/0.3689, allocations: 0.6451 MB / 387.5 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004509/0.3734, allocations: 2.347 MB / 389.8 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002181/0.3756, allocations: 1.106 MB / 390.9 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00217/0.3778, allocations: 0.8596 MB / 391.8 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001735/0.3796, allocations: 0.8873 MB / 392.7 MB, free: 3.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00052/0.3801, allocations: 276.6 kB / 392.9 MB, free: 3.578 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008867/0.381, allocations: 326.9 kB / 393.2 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000478/0.3815, allocations: 0.4965 MB / 393.7 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0012/0.3827, allocations: 0.9729 MB / 394.7 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004779/0.3875, allocations: 3.347 MB / 398.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.3875, allocations: 0 / 398.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.3875, allocations: 0 / 398.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001196/0.3877, allocations: 1.438 kB / 398.1 MB, free: 1.332 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.005492/0.3932, allocations: 1.929 MB / 400 MB, free: 15.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.3932, allocations: 10.09 kB / 400 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004469/0.3937, allocations: 176.4 kB / 400.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001644/0.3953, allocations: 0.8468 MB / 401 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003019/0.3956, allocations: 233.9 kB / 401.2 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002429/0.3959, allocations: 160.7 kB / 401.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003659/0.3996, allocations: 1.684 MB / 403.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.143e-05/0.3996, allocations: 5.281 kB / 403.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001582/0.3998, allocations: 69.73 kB / 403.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.895e-05/0.3999, allocations: 37.12 kB / 403.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003797/0.4037, allocations: 1.557 MB / 404.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01068/0.4144, allocations: 5.836 MB / 410.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002176/0.4166, allocations: 0.9382 MB / 411.5 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001114/0.4177, allocations: 0.528 MB / 412.1 MB, free: 7.699 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.077e-05/0.4178, allocations: 9.906 kB / 412.1 MB, free: 7.695 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001276/0.4191, allocations: 0.6573 MB / 412.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of pre-optimization done (n=90): time 2.384e-06/0.4191, allocations: 0 / 412.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.03433/0.4534, allocations: 8.931 MB / 421.7 MB, free: 32 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001623/0.4537, allocations: 299.7 kB / 421.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/0.4549, allocations: 0.7856 MB / 422.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001355/0.4551, allocations: 57.73 kB / 422.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006158/0.4557, allocations: 0.6623 MB / 423.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003543/0.4561, allocations: 410.1 kB / 423.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004747/0.4566, allocations: 243.5 kB / 424.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002232/0.4568, allocations: 410.7 kB / 424.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001957/0.4588, allocations: 0.8121 MB / 425.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002159/0.4609, allocations: 1.126 MB / 426.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003637/0.4646, allocations: 1.654 MB / 428.1 MB, free: 9.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.4646, allocations: 0.5625 kB / 428.1 MB, free: 9.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004816/0.4694, allocations: 2.068 MB / 430.2 MB, free: 7.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.919e-05/0.4695, allocations: 8 kB / 430.2 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/0.4695, allocations: 8 kB / 430.2 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004496/0.4699, allocations: 178.4 kB / 430.3 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/0.4716, allocations: 355.5 kB / 430.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003982/0.4756, allocations: 4.819 MB / 435.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/0.4775, allocations: 167.8 kB / 435.7 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001413/0.4777, allocations: 48 kB / 435.7 MB, free: 1.199 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.0009352/0.4786, allocations: 387.4 kB / 436.1 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002353/0.4789, allocations: 114.7 kB / 436.2 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002404/0.4791, allocations: 134 kB / 436.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.4791, allocations: 15.94 kB / 436.4 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.4791, allocations: 4 kB / 436.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.4792, allocations: 7.969 kB / 436.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008293/0.4875, allocations: 4.416 MB / 440.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.4875, allocations: 8 kB / 440.8 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/0.4887, allocations: 259.6 kB / 441 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006348/0.4893, allocations: 369.6 kB / 441.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/0.4894, allocations: 39.98 kB / 441.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002035/0.4915, allocations: 2.263 MB / 443.7 MB, free: 8.824 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.053e-05/0.4915, allocations: 11.94 kB / 443.7 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005292/0.4968, allocations: 2.502 MB / 446.2 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009938/0.4978, allocations: 323.7 kB / 446.5 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004143/0.4983, allocations: 40 kB / 446.6 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0014/0.4997, allocations: 143.8 kB / 446.7 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003835/0.5001, allocations: 172.2 kB / 446.9 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.749e-05/0.5002, allocations: 43.98 kB / 446.9 MB, free: 5.434 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009684/0.5012, allocations: 0.5303 MB / 447.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5012, allocations: 0 / 447.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001801/0.503, allocations: 348 kB / 447.8 MB, free: 4.566 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.0005152/0.5035, allocations: 184.2 kB / 448 MB, free: 4.379 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004923/0.5085, allocations: 2.042 MB / 450 MB, free: 2.301 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.712e-05/0.5085, allocations: 4 kB / 450 MB, free: 2.297 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002541/0.5111, allocations: 1.055 MB / 451.1 MB, free: 1.234 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002061/0.5132, allocations: 198 kB / 451.3 MB, free: 1.047 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006825/0.52, allocations: 3.094 MB / 454.4 MB, free: 13.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001165/0.5212, allocations: 1.171 MB / 455.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001162/0.5224, allocations: 176.3 kB / 455.7 MB, free: 12.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004975/0.5229, allocations: 79.44 kB / 455.8 MB, free: 12.34 MB / 382.1 MB Notification: Performance of SimCode: time 6.72e-07/0.523, allocations: 4 kB / 455.8 MB, free: 12.34 MB / 382.1 MB Notification: Performance of Templates: time 0.03856/0.5615, allocations: 19.42 MB / 475.2 MB, free: 8.883 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)