Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_4.0.0_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.001137/0.001137, allocations: 108.6 kB / 17.74 MB, free: 5.176 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.001154/0.001154, allocations: 184.3 kB / 18.68 MB, free: 4.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 51.92 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2211, allocations: 49.43 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01013/0.2313, allocations: 9.282 MB / 410.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004175/0.2355, allocations: 2.279 MB / 413 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001126/0.2366, allocations: 31.88 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009675/0.2376, allocations: 329 kB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001549/0.2392, allocations: 0.4997 MB / 413.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001219/0.2404, allocations: 0.6478 MB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002123/0.2426, allocations: 2.349 MB / 416.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001293/0.2439, allocations: 1.119 MB / 418 MB, free: 8.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009043/0.2448, allocations: 0.8567 MB / 418.8 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009005/0.2457, allocations: 0.891 MB / 419.7 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002807/0.246, allocations: 272 kB / 420 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000417/0.2464, allocations: 331.9 kB / 420.3 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003695/0.2468, allocations: 0.4948 MB / 420.8 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007508/0.2475, allocations: 0.9725 MB / 421.8 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002885/0.2504, allocations: 3.359 MB / 425.1 MB, free: 1.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.2504, allocations: 0 / 425.1 MB, free: 1.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2505, allocations: 0 / 425.1 MB, free: 1.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.728e-05/0.2505, allocations: 0 / 425.1 MB, free: 1.023 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.003317/0.2538, allocations: 1.975 MB / 427.1 MB, free: 14.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.2539, allocations: 8.031 kB / 427.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002669/0.2541, allocations: 187.8 kB / 427.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.2553, allocations: 0.8464 MB / 428.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002569/0.2555, allocations: 236.7 kB / 428.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002222/0.2558, allocations: 159.9 kB / 428.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002886/0.2587, allocations: 1.686 MB / 430.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.616e-05/0.2587, allocations: 4 kB / 430.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001318/0.2589, allocations: 64 kB / 430.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.207e-05/0.2589, allocations: 40 kB / 430.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003156/0.2621, allocations: 1.558 MB / 431.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008332/0.2704, allocations: 5.835 MB / 437.7 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001913/0.2724, allocations: 0.9403 MB / 438.6 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009983/0.2734, allocations: 0.5366 MB / 439.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.96e-05/0.2734, allocations: 9 kB / 439.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001187/0.2746, allocations: 0.6606 MB / 439.8 MB, free: 1.863 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.836e-06/0.2747, allocations: 0 / 439.8 MB, free: 1.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03309/0.3077, allocations: 8.967 MB / 448.8 MB, free: 8.766 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/0.3079, allocations: 303.7 kB / 449.1 MB, free: 8.402 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001033/0.3089, allocations: 0.7857 MB / 449.9 MB, free: 7.609 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001076/0.3091, allocations: 53.7 kB / 449.9 MB, free: 7.551 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004832/0.3096, allocations: 0.6839 MB / 450.6 MB, free: 6.855 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003228/0.3099, allocations: 432.3 kB / 451.1 MB, free: 6.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004691/0.3104, allocations: 239.5 kB / 451.3 MB, free: 6.188 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.3105, allocations: 414.7 kB / 451.7 MB, free: 5.773 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001854/0.3124, allocations: 0.8082 MB / 452.5 MB, free: 4.965 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002087/0.3145, allocations: 1.134 MB / 453.6 MB, free: 3.719 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003412/0.3179, allocations: 1.642 MB / 455.3 MB, free: 1.984 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.3179, allocations: 4 kB / 455.3 MB, free: 1.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004438/0.3224, allocations: 2.077 MB / 457.4 MB, free: 15.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.3224, allocations: 8 kB / 457.4 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.3224, allocations: 8 kB / 457.4 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000403/0.3229, allocations: 182.5 kB / 457.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001667/0.3245, allocations: 355.4 kB / 457.9 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003757/0.3283, allocations: 4.811 MB / 462.7 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.3298, allocations: 167.8 kB / 462.9 MB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.3299, allocations: 48 kB / 462.9 MB, free: 9.895 MB / 382.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.0006693/0.3306, allocations: 395.1 kB / 463.3 MB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.3307, allocations: 111.3 kB / 463.4 MB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002589/0.331, allocations: 133.9 kB / 463.5 MB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.331, allocations: 3.984 kB / 463.6 MB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.331, allocations: 3.984 kB / 463.6 MB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004575/0.3315, allocations: 352.3 kB / 463.9 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001811/0.3317, allocations: 28 kB / 463.9 MB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.3328, allocations: 147.8 kB / 464.1 MB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003889/0.3332, allocations: 156.8 kB / 464.2 MB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004956/0.3382, allocations: 1.974 MB / 466.2 MB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005518/0.3437, allocations: 2.763 MB / 469 MB, free: 3.785 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00172/0.3454, allocations: 0.816 MB / 469.8 MB, free: 2.973 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000715/0.3462, allocations: 0.5303 MB / 470.3 MB, free: 2.445 MB / 382.1 MB Notification: Performance of Backend: time 4.91e-07/0.3462, allocations: 0 / 470.3 MB, free: 2.445 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003548/0.3497, allocations: 1.65 MB / 472 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of SimCode: time 0.003933/0.3537, allocations: 2.991 MB / 474.9 MB, free: 13.7 MB / 398.1 MB Notification: Performance of Templates: time 0.03431/0.388, allocations: 23.26 MB / 498.2 MB, free: 6.574 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1)