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.009615/0.009615, allocations: 99.41 kB / 15.73 MB, free: 6.453 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.001778/0.001778, allocations: 190.2 kB / 16.67 MB, free: 6.367 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.599/1.599, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.001253/0.001253, allocations: 54.36 kB / 326.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1086, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01096/0.1196, allocations: 9.173 MB / 382.4 MB, free: 8.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005101/0.1247, allocations: 2.314 MB / 384.7 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001815/0.1266, allocations: 31.88 kB / 384.7 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001356/0.128, allocations: 329 kB / 385 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002376/0.1304, allocations: 495.7 kB / 385.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001905/0.1323, allocations: 0.6439 MB / 386.1 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003711/0.136, allocations: 2.341 MB / 388.5 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001567/0.1376, allocations: 1.111 MB / 389.6 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001154/0.1388, allocations: 0.8646 MB / 390.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009242/0.1397, allocations: 0.8793 MB / 391.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002964/0.14, allocations: 276 kB / 391.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004421/0.1405, allocations: 331.9 kB / 391.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004246/0.1409, allocations: 0.4987 MB / 392.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008503/0.1417, allocations: 0.9686 MB / 393.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00288/0.1446, allocations: 3.345 MB / 396.7 MB, free: 9.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1447, allocations: 0 / 396.7 MB, free: 9.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1447, allocations: 0 / 396.7 MB, free: 9.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.857e-05/0.1447, allocations: 4 kB / 396.8 MB, free: 9.605 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.0037/0.1484, allocations: 1.932 MB / 398.7 MB, free: 7.617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.1485, allocations: 8.031 kB / 398.7 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003509/0.1488, allocations: 179 kB / 398.9 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001339/0.1502, allocations: 0.8419 MB / 399.7 MB, free: 6.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000389/0.1506, allocations: 232.7 kB / 399.9 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003106/0.1509, allocations: 163.8 kB / 400.1 MB, free: 6.145 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003014/0.154, allocations: 1.686 MB / 401.8 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.632e-05/0.154, allocations: 3.906 kB / 401.8 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001405/0.1542, allocations: 68 kB / 401.9 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.417e-05/0.1542, allocations: 36 kB / 401.9 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003317/0.1575, allocations: 1.566 MB / 403.5 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008926/0.1665, allocations: 5.821 MB / 409.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002031/0.1685, allocations: 0.9364 MB / 410.2 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.1696, allocations: 0.5248 MB / 410.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.747e-05/0.1697, allocations: 9 kB / 410.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001244/0.1709, allocations: 0.6567 MB / 411.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.307e-06/0.1709, allocations: 0 / 411.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03491/0.2058, allocations: 8.929 MB / 420.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001972/0.2061, allocations: 303.7 kB / 420.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.2073, allocations: 0.7934 MB / 421.4 MB, free: 300 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.2075, allocations: 53.7 kB / 421.5 MB, free: 240 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005414/0.208, allocations: 0.6585 MB / 422.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003578/0.2084, allocations: 414 kB / 422.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000448/0.2088, allocations: 243.5 kB / 422.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.209, allocations: 410.7 kB / 423.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001905/0.2109, allocations: 0.8121 MB / 424 MB, free: 13.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002118/0.2131, allocations: 1.13 MB / 425.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003527/0.2166, allocations: 1.65 MB / 426.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.2166, allocations: 0 / 426.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004562/0.2212, allocations: 2.068 MB / 428.8 MB, free: 8.609 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.2212, allocations: 8 kB / 428.8 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.2213, allocations: 8 kB / 428.8 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004259/0.2217, allocations: 182.4 kB / 429 MB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/0.2233, allocations: 351.5 kB / 429.4 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003954/0.2273, allocations: 4.815 MB / 434.2 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/0.2289, allocations: 175.7 kB / 434.4 MB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.2291, allocations: 48 kB / 434.4 MB, free: 2.605 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.0007343/0.2298, allocations: 387.4 kB / 434.8 MB, free: 2.219 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001901/0.23, allocations: 110.7 kB / 434.9 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002298/0.2303, allocations: 133.9 kB / 435 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.2303, allocations: 12 kB / 435 MB, free: 1.961 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.2303, allocations: 4 kB / 435 MB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.2303, allocations: 7.969 kB / 435 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007774/0.2381, allocations: 4.416 MB / 439.5 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.359e-05/0.2381, allocations: 8 kB / 439.5 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/0.2393, allocations: 263.6 kB / 439.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000537/0.2398, allocations: 361.8 kB / 440.1 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.512e-05/0.2399, allocations: 35.98 kB / 440.1 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0018/0.2417, allocations: 2.279 MB / 442.4 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.789e-06/0.2418, allocations: 11.94 kB / 442.4 MB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004903/0.2467, allocations: 2.498 MB / 444.9 MB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006707/0.2474, allocations: 323.7 kB / 445.2 MB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001544/0.2475, allocations: 44 kB / 445.3 MB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.2486, allocations: 143.8 kB / 445.4 MB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003329/0.2489, allocations: 168.2 kB / 445.6 MB, free: 6.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/0.2491, allocations: 40 kB / 445.6 MB, free: 6.852 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007575/0.2498, allocations: 0.5342 MB / 446.1 MB, free: 6.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2498, allocations: 0 / 446.1 MB, free: 6.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001333/0.2512, allocations: 348 kB / 446.5 MB, free: 5.98 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.0003282/0.2515, allocations: 194.9 kB / 446.7 MB, free: 5.781 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004346/0.2559, allocations: 2.038 MB / 448.7 MB, free: 3.707 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/0.2559, allocations: 4 kB / 448.7 MB, free: 3.703 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002162/0.2581, allocations: 1.06 MB / 449.8 MB, free: 2.637 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001302/0.2594, allocations: 202.6 kB / 450 MB, free: 2.438 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2239/0.4832, allocations: 3.059 MB / 453 MB, free: 70.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/0.4844, allocations: 1.175 MB / 454.2 MB, free: 69.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001067/0.4855, allocations: 170.3 kB / 454.4 MB, free: 69.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000407/0.4859, allocations: 82.33 kB / 454.4 MB, free: 69.82 MB / 382.1 MB Notification: Performance of SimCode: time 1.282e-06/0.4859, allocations: 0 / 454.4 MB, free: 69.82 MB / 382.1 MB Notification: Performance of Templates: time 0.03418/0.5201, allocations: 19.44 MB / 473.9 MB, free: 62.12 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)