Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.01042/0.01042, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001759/0.001759, allocations: 201.8 kB / 16.68 MB, free: 5.969 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.664/1.664, allocations: 205.1 MB / 222.6 MB, free: 4.547 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.001932/0.001933, allocations: 49.67 kB / 326.6 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1322, allocations: 46.62 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01152/0.1438, allocations: 9.184 MB / 382.4 MB, free: 8.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006024/0.1499, allocations: 2.314 MB / 384.7 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002065/0.152, allocations: 31.88 kB / 384.7 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001561/0.1536, allocations: 321.1 kB / 385 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002627/0.1562, allocations: 0.4997 MB / 385.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002207/0.1585, allocations: 0.6516 MB / 386.2 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004829/0.1633, allocations: 2.341 MB / 388.5 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002934/0.1663, allocations: 1.108 MB / 389.6 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002605/0.1689, allocations: 0.8568 MB / 390.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002057/0.171, allocations: 0.8871 MB / 391.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008216/0.1718, allocations: 276 kB / 391.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001223/0.1731, allocations: 323.9 kB / 391.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001279/0.1744, allocations: 0.4987 MB / 392.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002507/0.1769, allocations: 0.9725 MB / 393.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004914/0.1818, allocations: 3.352 MB / 396.8 MB, free: 9.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.1819, allocations: 0 / 396.8 MB, free: 9.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1819, allocations: 0 / 396.8 MB, free: 9.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001224/0.182, allocations: 0 / 396.8 MB, free: 9.59 MB / 334.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.004833/0.1868, allocations: 1.972 MB / 398.7 MB, free: 7.559 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.1869, allocations: 12.03 kB / 398.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003248/0.1872, allocations: 183.9 kB / 398.9 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.1887, allocations: 0.8465 MB / 399.8 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002905/0.189, allocations: 236.7 kB / 400 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002393/0.1892, allocations: 159.9 kB / 400.2 MB, free: 6.074 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003153/0.1924, allocations: 1.69 MB / 401.9 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.295e-05/0.1925, allocations: 11.94 kB / 401.9 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001363/0.1926, allocations: 60 kB / 401.9 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.075e-05/0.1926, allocations: 40 kB / 402 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003265/0.1959, allocations: 1.558 MB / 403.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009215/0.2051, allocations: 5.843 MB / 409.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00206/0.2072, allocations: 0.937 MB / 410.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001062/0.2083, allocations: 0.5281 MB / 410.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.672e-05/0.2084, allocations: 9 kB / 410.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001284/0.2097, allocations: 0.6606 MB / 411.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.214e-06/0.2097, allocations: 0 / 411.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03498/0.2447, allocations: 8.98 MB / 420.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001842/0.2449, allocations: 295.7 kB / 420.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/0.2462, allocations: 0.7973 MB / 421.6 MB, free: 156 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001321/0.2463, allocations: 57.73 kB / 421.6 MB, free: 92 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006853/0.247, allocations: 0.6761 MB / 422.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00043/0.2475, allocations: 432.3 kB / 422.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005498/0.248, allocations: 243.5 kB / 423 MB, free: 14.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002479/0.2483, allocations: 410.7 kB / 423.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002038/0.2503, allocations: 0.8082 MB / 424.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002326/0.2527, allocations: 1.13 MB / 425.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003796/0.2565, allocations: 1.646 MB / 426.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.2565, allocations: 4 kB / 426.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004802/0.2613, allocations: 2.073 MB / 429 MB, free: 8.434 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.894e-05/0.2614, allocations: 11.94 kB / 429 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/0.2614, allocations: 8 kB / 429 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005008/0.2619, allocations: 174.5 kB / 429.2 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/0.2636, allocations: 363.4 kB / 429.6 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004452/0.268, allocations: 4.819 MB / 434.4 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001733/0.2698, allocations: 159.9 kB / 434.5 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001236/0.2699, allocations: 52 kB / 434.6 MB, free: 2.43 MB / 366.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.0008178/0.2707, allocations: 391.2 kB / 435 MB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/0.2709, allocations: 119.2 kB / 435.1 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002441/0.2712, allocations: 130 kB / 435.2 MB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.2712, allocations: 12 kB / 435.2 MB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.2712, allocations: 0 / 435.2 MB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.2712, allocations: 7.969 kB / 435.2 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00798/0.2792, allocations: 4.409 MB / 439.6 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/0.2793, allocations: 12 kB / 439.7 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001148/0.2804, allocations: 255.6 kB / 439.9 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005853/0.281, allocations: 369.7 kB / 440.3 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.1e-05/0.2811, allocations: 47.92 kB / 440.3 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001875/0.283, allocations: 2.271 MB / 442.6 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.169e-05/0.283, allocations: 15.94 kB / 442.6 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005011/0.2881, allocations: 2.498 MB / 445.1 MB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006598/0.2887, allocations: 324.3 kB / 445.4 MB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001641/0.2889, allocations: 44 kB / 445.5 MB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.29, allocations: 143.8 kB / 445.6 MB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003387/0.2903, allocations: 168.2 kB / 445.8 MB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.118e-05/0.2904, allocations: 47.98 kB / 445.8 MB, free: 6.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007529/0.2912, allocations: 0.5303 MB / 446.3 MB, free: 6.133 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2912, allocations: 0 / 446.3 MB, free: 6.133 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001379/0.2926, allocations: 347.9 kB / 446.7 MB, free: 5.793 MB / 382.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.0003329/0.2929, allocations: 178.8 kB / 446.9 MB, free: 5.609 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004541/0.2975, allocations: 2.058 MB / 448.9 MB, free: 3.516 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.2975, allocations: 0 / 448.9 MB, free: 3.516 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002361/0.2999, allocations: 1.056 MB / 450 MB, free: 2.453 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.3013, allocations: 211 kB / 450.2 MB, free: 2.246 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2227/0.5239, allocations: 3.113 MB / 453.3 MB, free: 70.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00111/0.5251, allocations: 1.177 MB / 454.5 MB, free: 69.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001062/0.5262, allocations: 169 kB / 454.6 MB, free: 69.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003937/0.5266, allocations: 80.52 kB / 454.7 MB, free: 69.63 MB / 382.1 MB Notification: Performance of SimCode: time 1.273e-06/0.5266, allocations: 0.8438 kB / 454.7 MB, free: 69.63 MB / 382.1 MB Notification: Performance of Templates: time 0.03054/0.5571, allocations: 19.03 MB / 473.7 MB, free: 62.22 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)