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.001521/0.001521, allocations: 103 kB / 17.74 MB, free: 5.316 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.001687/0.001687, allocations: 198.5 kB / 18.67 MB, free: 4.395 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.319/1.319, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009427/0.0009427, allocations: 47.92 kB / 352 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2157, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.009416/0.2251, allocations: 9.274 MB / 410.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003058/0.2282, allocations: 2.283 MB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005091/0.2287, allocations: 31.88 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006006/0.2293, allocations: 325.1 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009004/0.2302, allocations: 0.5036 MB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009663/0.2312, allocations: 0.6516 MB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00199/0.2332, allocations: 2.349 MB / 416.8 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001289/0.2345, allocations: 1.116 MB / 418 MB, free: 8.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008551/0.2354, allocations: 0.8607 MB / 418.8 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008386/0.2362, allocations: 0.8909 MB / 419.7 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002918/0.2365, allocations: 276 kB / 420 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004098/0.237, allocations: 323.9 kB / 420.3 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003746/0.2373, allocations: 0.4948 MB / 420.8 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007606/0.2381, allocations: 0.9765 MB / 421.8 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002415/0.2405, allocations: 3.345 MB / 425.1 MB, free: 1.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2405, allocations: 7.938 kB / 425.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2405, allocations: 4 kB / 425.1 MB, free: 1.047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.291e-05/0.2406, allocations: 0 / 425.1 MB, free: 1.047 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.003284/0.2439, allocations: 1.92 MB / 427 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.2439, allocations: 12.03 kB / 427 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00027/0.2442, allocations: 178.9 kB / 427.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.2453, allocations: 0.842 MB / 428.1 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002531/0.2456, allocations: 232.7 kB / 428.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000217/0.2458, allocations: 159.9 kB / 428.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002981/0.2488, allocations: 1.682 MB / 430.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.064e-05/0.2489, allocations: 7.844 kB / 430.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000147/0.249, allocations: 64 kB / 430.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.769e-05/0.2491, allocations: 36 kB / 430.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003178/0.2522, allocations: 1.566 MB / 431.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008062/0.2603, allocations: 5.825 MB / 437.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001987/0.2623, allocations: 0.9373 MB / 438.6 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.2634, allocations: 0.5365 MB / 439.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.595e-05/0.2634, allocations: 9 kB / 439.1 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001194/0.2646, allocations: 0.6606 MB / 439.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.435e-06/0.2647, allocations: 0 / 439.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03443/0.2991, allocations: 8.923 MB / 448.7 MB, free: 8.902 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.2992, allocations: 303.7 kB / 449 MB, free: 8.539 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009456/0.3002, allocations: 0.7857 MB / 449.8 MB, free: 7.746 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001145/0.3003, allocations: 53.7 kB / 449.8 MB, free: 7.688 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004237/0.3007, allocations: 0.6661 MB / 450.5 MB, free: 7.008 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003045/0.301, allocations: 402.2 kB / 450.9 MB, free: 6.609 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004598/0.3015, allocations: 247.5 kB / 451.1 MB, free: 6.359 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.3017, allocations: 406.7 kB / 451.5 MB, free: 5.953 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001961/0.3036, allocations: 0.816 MB / 452.3 MB, free: 5.137 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002156/0.3058, allocations: 1.126 MB / 453.5 MB, free: 3.898 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003633/0.3095, allocations: 1.65 MB / 455.1 MB, free: 2.156 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3095, allocations: 0 / 455.1 MB, free: 2.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004557/0.314, allocations: 2.076 MB / 457.2 MB, free: 64 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.3141, allocations: 11.94 kB / 457.2 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.3141, allocations: 11.94 kB / 457.2 MB, free: 40 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003833/0.3145, allocations: 178.5 kB / 457.4 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00169/0.3162, allocations: 355.4 kB / 457.7 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003713/0.3199, allocations: 4.811 MB / 462.5 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/0.3213, allocations: 163.9 kB / 462.7 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.3214, allocations: 48 kB / 462.8 MB, free: 10.07 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.0005849/0.322, allocations: 387.2 kB / 463.1 MB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/0.3222, allocations: 106.7 kB / 463.2 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002813/0.3225, allocations: 134 kB / 463.4 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.3225, allocations: 7.984 kB / 463.4 MB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3225, allocations: 0 / 463.4 MB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004883/0.323, allocations: 343.7 kB / 463.7 MB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001981/0.3232, allocations: 36 kB / 463.7 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.3244, allocations: 147.8 kB / 463.9 MB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003646/0.3248, allocations: 156.8 kB / 464 MB, free: 8.742 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005228/0.33, allocations: 1.974 MB / 466 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005835/0.3359, allocations: 2.751 MB / 468.8 MB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001801/0.3377, allocations: 0.8198 MB / 469.6 MB, free: 3.168 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006538/0.3384, allocations: 0.5342 MB / 470.1 MB, free: 2.637 MB / 382.1 MB Notification: Performance of Backend: time 5.11e-07/0.3384, allocations: 0 / 470.1 MB, free: 2.637 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003434/0.3418, allocations: 1.642 MB / 471.8 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of SimCode: time 0.003791/0.3456, allocations: 2.946 MB / 474.7 MB, free: 13.94 MB / 398.1 MB Notification: Performance of Templates: time 0.0318/0.3774, allocations: 23.27 MB / 498 MB, free: 6.82 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)