Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.0008327/0.0008328, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.008013/0.008013, allocations: 170.2 kB / 16.26 MB, free: 6.613 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.4 MB / 222.5 MB, free: 5.793 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.0007579/0.0007579, allocations: 12 kB / 279.5 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3134, allocations: 47.58 MB / 327 MB, free: 1.207 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.009226/0.3227, allocations: 8.589 MB / 335.6 MB, free: 10.36 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006808/0.3295, allocations: 2.25 MB / 337.9 MB, free: 8.398 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002846/0.3324, allocations: 27.88 kB / 337.9 MB, free: 8.371 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001555/0.334, allocations: 246.2 kB / 338.2 MB, free: 8.129 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003235/0.3372, allocations: 420.9 kB / 338.6 MB, free: 7.715 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002009/0.3393, allocations: 0.5738 MB / 339.1 MB, free: 7.141 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004228/0.3435, allocations: 2.157 MB / 341.3 MB, free: 4.973 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002384/0.3459, allocations: 0.9893 MB / 342.3 MB, free: 3.938 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001298/0.3472, allocations: 0.6067 MB / 342.9 MB, free: 3.328 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001355/0.3486, allocations: 0.6724 MB / 343.6 MB, free: 2.652 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004511/0.3491, allocations: 80 kB / 343.6 MB, free: 2.574 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006995/0.3498, allocations: 124 kB / 343.8 MB, free: 2.453 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004765/0.3503, allocations: 298.7 kB / 344.1 MB, free: 2.16 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001272/0.3516, allocations: 0.775 MB / 344.8 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003142/0.3547, allocations: 3.052 MB / 347.9 MB, free: 14.31 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3547, allocations: 4 kB / 347.9 MB, free: 14.31 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.3547, allocations: 0 / 347.9 MB, free: 14.31 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001083/0.3549, allocations: 0 / 347.9 MB, free: 14.31 MB / 286.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.00439/0.3592, allocations: 1.628 MB / 349.5 MB, free: 12.62 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.3593, allocations: 12.03 kB / 349.5 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005376/0.3599, allocations: 178.9 kB / 349.7 MB, free: 12.44 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/0.3613, allocations: 0.8303 MB / 350.5 MB, free: 11.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003019/0.3616, allocations: 240.7 kB / 350.8 MB, free: 11.31 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002625/0.3619, allocations: 163.8 kB / 350.9 MB, free: 11.15 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003954/0.3659, allocations: 1.698 MB / 352.6 MB, free: 9.426 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.913e-05/0.3659, allocations: 11.91 kB / 352.6 MB, free: 9.414 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001454/0.3661, allocations: 60 kB / 352.7 MB, free: 9.355 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.514e-05/0.3661, allocations: 36 kB / 352.7 MB, free: 9.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003543/0.3697, allocations: 1.589 MB / 354.3 MB, free: 7.727 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01053/0.3802, allocations: 5.971 MB / 360.3 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002036/0.3823, allocations: 0.9526 MB / 361.2 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001146/0.3835, allocations: 0.548 MB / 361.8 MB, free: 20 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.396e-05/0.3835, allocations: 9 kB / 361.8 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00131/0.3848, allocations: 0.68 MB / 362.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.595e-06/0.3849, allocations: 0 / 362.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03655/0.4214, allocations: 9.859 MB / 372.3 MB, free: 5.301 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002454/0.4217, allocations: 303.7 kB / 372.6 MB, free: 4.934 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001209/0.4229, allocations: 0.7857 MB / 373.4 MB, free: 4.141 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.4231, allocations: 53.7 kB / 373.5 MB, free: 4.082 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005417/0.4236, allocations: 0.6662 MB / 374.1 MB, free: 3.402 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003635/0.424, allocations: 398.2 kB / 374.5 MB, free: 3.008 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/0.4242, allocations: 121.6 kB / 374.6 MB, free: 2.883 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.4244, allocations: 406.7 kB / 375 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001981/0.4264, allocations: 0.8511 MB / 375.9 MB, free: 1.625 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002224/0.4286, allocations: 1.169 MB / 377.1 MB, free: 348 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003681/0.4323, allocations: 1.725 MB / 378.8 MB, free: 14.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.4323, allocations: 4 kB / 378.8 MB, free: 14.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004813/0.4372, allocations: 2.146 MB / 380.9 MB, free: 12.35 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.997e-05/0.4372, allocations: 8 kB / 380.9 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.64e-05/0.4372, allocations: 8 kB / 381 MB, free: 12.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004386/0.4377, allocations: 182.5 kB / 381.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001651/0.4393, allocations: 375.4 kB / 381.5 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003939/0.4433, allocations: 4.466 MB / 386 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001692/0.445, allocations: 207.8 kB / 386.2 MB, free: 6.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.4451, allocations: 52 kB / 386.2 MB, free: 6.656 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.0008335/0.446, allocations: 391.3 kB / 386.6 MB, free: 6.262 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000198/0.4462, allocations: 110.7 kB / 386.7 MB, free: 6.152 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002741/0.4465, allocations: 134 kB / 386.8 MB, free: 6.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.4465, allocations: 12 kB / 386.8 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.4465, allocations: 0 / 386.8 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.4465, allocations: 7.969 kB / 386.9 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007945/0.4545, allocations: 4.532 MB / 391.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.249e-05/0.4545, allocations: 8 kB / 391.4 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/0.4556, allocations: 284.4 kB / 391.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005713/0.4562, allocations: 369.3 kB / 392 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.387e-05/0.4563, allocations: 43.98 kB / 392.1 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001685/0.458, allocations: 2.173 MB / 394.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.017e-06/0.458, allocations: 15.94 kB / 394.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004918/0.463, allocations: 2.61 MB / 396.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006024/0.4636, allocations: 323.7 kB / 397.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/0.4638, allocations: 52 kB / 397.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.4648, allocations: 175.8 kB / 397.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003314/0.4652, allocations: 164.2 kB / 397.6 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.821e-05/0.4653, allocations: 47.98 kB / 397.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000813/0.4661, allocations: 0.5303 MB / 398.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4661, allocations: 0 / 398.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001383/0.4675, allocations: 352 kB / 398.5 MB, free: 9.84 MB / 334.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.0003558/0.4679, allocations: 182.9 kB / 398.7 MB, free: 9.652 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004429/0.4723, allocations: 2.105 MB / 400.8 MB, free: 7.504 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/0.4723, allocations: 4 kB / 400.8 MB, free: 7.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002266/0.4746, allocations: 1.083 MB / 401.9 MB, free: 6.406 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002203/0.4768, allocations: 199.2 kB / 402.1 MB, free: 6.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006428/0.4833, allocations: 3.905 MB / 406 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009414/0.4842, allocations: 1.186 MB / 407.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001035/0.4853, allocations: 164.4 kB / 407.3 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003449/0.4856, allocations: 79.42 kB / 407.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4856, allocations: 0 / 407.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of Templates: time 0.03086/0.5165, allocations: 17.46 MB / 424.8 MB, free: 15.21 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)