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.001431/0.001431, allocations: 112 kB / 16.62 MB, free: 6.812 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.00136/0.001361, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.385/1.385, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.00137/0.00137, allocations: 52.16 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09707/0.09845, allocations: 46.63 MB / 326.1 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01152/0.11, allocations: 9.117 MB / 335.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005302/0.1154, allocations: 2.252 MB / 337.5 MB, free: 9.363 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001755/0.1172, allocations: 31.88 kB / 337.5 MB, free: 9.332 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.1184, allocations: 250.3 kB / 337.8 MB, free: 9.086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001772/0.1202, allocations: 416.8 kB / 338.2 MB, free: 8.676 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.1215, allocations: 0.5893 MB / 338.8 MB, free: 8.086 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002637/0.1242, allocations: 2.341 MB / 341.1 MB, free: 5.738 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001487/0.1257, allocations: 1.116 MB / 342.2 MB, free: 4.574 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001145/0.1268, allocations: 0.8529 MB / 343.1 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008796/0.1277, allocations: 0.8832 MB / 344 MB, free: 2.832 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002974/0.128, allocations: 272 kB / 344.2 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004227/0.1285, allocations: 327.9 kB / 344.6 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004126/0.1289, allocations: 0.4948 MB / 345.1 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008505/0.1297, allocations: 0.9841 MB / 346 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003139/0.1329, allocations: 3.295 MB / 349.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1329, allocations: 0 / 349.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.667e-06/0.1329, allocations: 3.938 kB / 349.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.866e-05/0.133, allocations: 7.938 kB / 349.4 MB, free: 13.44 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.003915/0.1369, allocations: 1.916 MB / 351.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.1369, allocations: 12.02 kB / 351.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002963/0.1373, allocations: 182.9 kB / 351.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.1384, allocations: 0.838 MB / 352.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002766/0.1387, allocations: 236.7 kB / 352.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002258/0.1389, allocations: 163.8 kB / 352.7 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003132/0.142, allocations: 1.682 MB / 354.4 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.827e-05/0.1421, allocations: 4 kB / 354.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/0.1422, allocations: 64 kB / 354.4 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.983e-05/0.1423, allocations: 43.94 kB / 354.5 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003188/0.1455, allocations: 1.558 MB / 356 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008608/0.1541, allocations: 5.891 MB / 361.9 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00185/0.156, allocations: 0.9326 MB / 362.9 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009358/0.1569, allocations: 0.5315 MB / 363.4 MB, free: 15.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.31e-05/0.157, allocations: 12.91 kB / 363.4 MB, free: 15 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001164/0.1582, allocations: 0.6646 MB / 364.1 MB, free: 14.29 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 4.789e-06/0.1582, allocations: 0 / 364.1 MB, free: 14.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03292/0.1911, allocations: 8.926 MB / 373 MB, free: 5.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001901/0.1914, allocations: 299.7 kB / 373.3 MB, free: 4.875 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001249/0.1926, allocations: 0.7857 MB / 374.1 MB, free: 4.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001401/0.1928, allocations: 53.7 kB / 374.1 MB, free: 4.023 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000671/0.1935, allocations: 0.6622 MB / 374.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004095/0.1939, allocations: 402.2 kB / 375.2 MB, free: 2.949 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005214/0.1944, allocations: 251.3 kB / 375.4 MB, free: 2.699 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.1946, allocations: 410.7 kB / 375.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001799/0.1964, allocations: 0.8082 MB / 376.6 MB, free: 1.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002006/0.1984, allocations: 1.138 MB / 377.8 MB, free: 232 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1773/0.3757, allocations: 1.64 MB / 379.4 MB, free: 52.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.3758, allocations: 1.688 kB / 379.4 MB, free: 52.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004771/0.3806, allocations: 2.069 MB / 381.5 MB, free: 51.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.3806, allocations: 10.25 kB / 381.5 MB, free: 51.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.3807, allocations: 6.719 kB / 381.5 MB, free: 51.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004435/0.3811, allocations: 176.2 kB / 381.7 MB, free: 51.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.3828, allocations: 358.8 kB / 382 MB, free: 51.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00318/0.386, allocations: 4.819 MB / 386.8 MB, free: 46.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/0.3877, allocations: 167.5 kB / 387 MB, free: 46.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.3878, allocations: 53.73 kB / 387.1 MB, free: 46.62 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.0007257/0.3885, allocations: 388.5 kB / 387.4 MB, free: 46.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001943/0.3887, allocations: 112.2 kB / 387.5 MB, free: 46.33 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002331/0.389, allocations: 134.2 kB / 387.7 MB, free: 46.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.389, allocations: 11.66 kB / 387.7 MB, free: 46.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.389, allocations: 1.188 kB / 387.7 MB, free: 46.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.389, allocations: 7.125 kB / 387.7 MB, free: 46.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0078/0.3968, allocations: 4.414 MB / 392.1 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/0.3969, allocations: 9 kB / 392.1 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.398, allocations: 258.2 kB / 392.4 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006066/0.3986, allocations: 375.5 kB / 392.7 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.17e-05/0.3987, allocations: 37.08 kB / 392.8 MB, free: 43.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001452/0.4002, allocations: 2.282 MB / 395.1 MB, free: 41.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-05/0.4002, allocations: 16.12 kB / 395.1 MB, free: 41.72 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004209/0.4044, allocations: 2.493 MB / 397.6 MB, free: 40.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006103/0.4051, allocations: 320.1 kB / 397.9 MB, free: 40.21 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001807/0.4052, allocations: 49.91 kB / 397.9 MB, free: 40.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.4063, allocations: 142.4 kB / 398.1 MB, free: 40.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003453/0.4066, allocations: 169.6 kB / 398.2 MB, free: 40.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-05/0.4067, allocations: 41.69 kB / 398.3 MB, free: 40.1 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000825/0.4075, allocations: 0.5351 MB / 398.8 MB, free: 39.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4076, allocations: 0 / 398.8 MB, free: 39.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001399/0.409, allocations: 341.5 kB / 399.1 MB, free: 39.82 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.0003029/0.4093, allocations: 178.9 kB / 399.3 MB, free: 39.7 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004038/0.4133, allocations: 2.09 MB / 401.4 MB, free: 38.69 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/0.4133, allocations: 0 / 401.4 MB, free: 38.69 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001883/0.4152, allocations: 1.053 MB / 402.5 MB, free: 38.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.4164, allocations: 198 kB / 402.7 MB, free: 38.12 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005148/0.4216, allocations: 3.77 MB / 406.4 MB, free: 34.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005378/0.4221, allocations: 1.175 MB / 407.6 MB, free: 33.72 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009356/0.4231, allocations: 164.4 kB / 407.8 MB, free: 33.56 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003309/0.4234, allocations: 83.42 kB / 407.8 MB, free: 33.48 MB / 318.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4234, allocations: 0 / 407.8 MB, free: 33.48 MB / 318.1 MB Notification: Performance of Templates: time 0.02601/0.4494, allocations: 18.49 MB / 426.3 MB, free: 15.01 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)