Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 114.3 kB / 18.46 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 206.8 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 59.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.2105, allocations: 50.54 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01001/0.2205, allocations: 9.382 MB / 419.3 MB, free: 8.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003312/0.2239, allocations: 2.434 MB / 421.8 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004635/0.2243, allocations: 31.88 kB / 421.8 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006582/0.225, allocations: 348.9 kB / 422.1 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008959/0.2259, allocations: 0.5036 MB / 422.6 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009186/0.2268, allocations: 0.6632 MB / 423.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001884/0.2287, allocations: 2.368 MB / 425.7 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.23, allocations: 1.115 MB / 426.8 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008457/0.2309, allocations: 0.8684 MB / 427.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008485/0.2317, allocations: 0.8949 MB / 428.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002612/0.232, allocations: 276 kB / 428.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003687/0.2324, allocations: 336 kB / 429.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003729/0.2328, allocations: 0.5104 MB / 429.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007157/0.2335, allocations: 0.9841 MB / 430.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00248/0.236, allocations: 3.39 MB / 434 MB, free: 9.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.236, allocations: 4 kB / 434 MB, free: 9.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.236, allocations: 0 / 434 MB, free: 9.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.896e-05/0.236, allocations: 0 / 434 MB, free: 9.383 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.003181/0.2392, allocations: 1.955 MB / 436 MB, free: 7.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.2392, allocations: 8.031 kB / 436 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002605/0.2395, allocations: 179 kB / 436.2 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00105/0.2406, allocations: 0.8497 MB / 437 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002613/0.2408, allocations: 236.7 kB / 437.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002187/0.2411, allocations: 163.8 kB / 437.4 MB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002931/0.244, allocations: 1.675 MB / 439.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.414e-05/0.2441, allocations: 3.906 kB / 439.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001337/0.2442, allocations: 68 kB / 439.2 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.736e-05/0.2442, allocations: 40 kB / 439.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003112/0.2474, allocations: 1.523 MB / 440.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007883/0.2552, allocations: 5.829 MB / 446.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001954/0.2572, allocations: 0.9329 MB / 447.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/0.2582, allocations: 0.5071 MB / 448 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.984e-05/0.2583, allocations: 17 kB / 448 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.2595, allocations: 0.6411 MB / 448.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.394e-06/0.2595, allocations: 0 / 448.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03325/0.2928, allocations: 8.785 MB / 457.4 MB, free: 1.418 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.2929, allocations: 311.7 kB / 457.7 MB, free: 1.047 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009881/0.2939, allocations: 0.7974 MB / 458.5 MB, free: 240 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.294, allocations: 53.7 kB / 458.6 MB, free: 180 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004405/0.2945, allocations: 0.6623 MB / 459.2 MB, free: 15.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002999/0.2948, allocations: 414 kB / 459.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000461/0.2953, allocations: 247.4 kB / 459.9 MB, free: 14.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.2954, allocations: 406.7 kB / 460.3 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001884/0.2973, allocations: 0.7887 MB / 461.1 MB, free: 13.65 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002093/0.2994, allocations: 1.115 MB / 462.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003458/0.3029, allocations: 1.603 MB / 463.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.3029, allocations: 4 kB / 463.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004444/0.3074, allocations: 2.025 MB / 465.8 MB, free: 8.684 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.3074, allocations: 8 kB / 465.8 MB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.3074, allocations: 8 kB / 465.8 MB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004256/0.3078, allocations: 222.4 kB / 466.1 MB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/0.3095, allocations: 351.5 kB / 466.4 MB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003862/0.3134, allocations: 4.843 MB / 471.2 MB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/0.3148, allocations: 171.7 kB / 471.4 MB, free: 2.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.3149, allocations: 55.98 kB / 471.5 MB, free: 2.613 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 (169): * Single equations (assignments): 166 * 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.000614/0.3155, allocations: 387.1 kB / 471.8 MB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.3157, allocations: 106.8 kB / 471.9 MB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002784/0.316, allocations: 130.1 kB / 472.1 MB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.316, allocations: 7.984 kB / 472.1 MB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.316, allocations: 4 kB / 472.1 MB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000453/0.3164, allocations: 347.7 kB / 472.4 MB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001867/0.3166, allocations: 32 kB / 472.5 MB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.3178, allocations: 155.7 kB / 472.6 MB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003845/0.3182, allocations: 156.8 kB / 472.8 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005085/0.3233, allocations: 1.927 MB / 474.7 MB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005643/0.3289, allocations: 2.68 MB / 477.4 MB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001759/0.3307, allocations: 0.8003 MB / 478.2 MB, free: 11.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007282/0.3314, allocations: 0.5458 MB / 478.7 MB, free: 11.3 MB / 398.1 MB Notification: Performance of Backend: time 2.2e-07/0.3315, allocations: 0 / 478.7 MB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004632/0.3361, allocations: 2.014 MB / 480.7 MB, free: 9.426 MB / 398.1 MB Notification: Performance of SimCode: time 0.004014/0.3401, allocations: 2.991 MB / 483.7 MB, free: 6.383 MB / 398.1 MB Notification: Performance of Templates: time 0.03356/0.3737, allocations: 23.83 MB / 0.4957 GB, free: 14.67 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1)