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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001162/0.001162, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2435, allocations: 50.53 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.009987/0.2535, allocations: 9.388 MB / 418.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004469/0.258, allocations: 2.446 MB / 420.6 MB, free: 5.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001198/0.2592, allocations: 27.94 kB / 420.6 MB, free: 5.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001125/0.2604, allocations: 341 kB / 421 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001761/0.2622, allocations: 0.4957 MB / 421.4 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001356/0.2635, allocations: 0.6554 MB / 422.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002701/0.2663, allocations: 2.36 MB / 424.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001601/0.2679, allocations: 1.125 MB / 425.6 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001231/0.2691, allocations: 0.8608 MB / 426.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/0.2703, allocations: 0.8987 MB / 427.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004327/0.2707, allocations: 276 kB / 427.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005308/0.2713, allocations: 336 kB / 427.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004165/0.2717, allocations: 0.5065 MB / 428.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009728/0.2727, allocations: 0.9803 MB / 429.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003077/0.2758, allocations: 3.396 MB / 432.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2758, allocations: 4 kB / 432.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2758, allocations: 0 / 432.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.829e-05/0.2759, allocations: 7.938 kB / 432.8 MB, free: 9.34 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.00395/0.2798, allocations: 1.951 MB / 434.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.2799, allocations: 8.031 kB / 434.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002588/0.2801, allocations: 224 kB / 435 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002848/0.2804, allocations: 182.9 kB / 435.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.2818, allocations: 0.8536 MB / 436 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002811/0.282, allocations: 244.4 kB / 436.3 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002337/0.2823, allocations: 156 kB / 436.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003126/0.2854, allocations: 1.671 MB / 438.1 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.64e-05/0.2855, allocations: 11.89 kB / 438.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001391/0.2857, allocations: 64 kB / 438.2 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.892e-05/0.2857, allocations: 36 kB / 438.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00329/0.289, allocations: 1.535 MB / 439.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009447/0.2985, allocations: 5.809 MB / 445.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002018/0.3005, allocations: 0.9436 MB / 446.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.3016, allocations: 0.5044 MB / 447 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.611e-05/0.3017, allocations: 9 kB / 447 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001242/0.3029, allocations: 0.645 MB / 447.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.826e-06/0.3029, allocations: 0 / 447.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03527/0.3382, allocations: 8.789 MB / 456.5 MB, free: 1.145 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/0.3384, allocations: 303.7 kB / 456.8 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/0.3395, allocations: 0.8054 MB / 457.6 MB, free: 15.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001376/0.3397, allocations: 53.7 kB / 457.6 MB, free: 15.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004927/0.3402, allocations: 0.6623 MB / 458.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003712/0.3406, allocations: 418 kB / 458.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000495/0.3411, allocations: 243.4 kB / 458.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002212/0.3413, allocations: 410.7 kB / 459.3 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001999/0.3433, allocations: 0.7848 MB / 460.1 MB, free: 13.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002307/0.3456, allocations: 1.115 MB / 461.2 MB, free: 12.15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003825/0.3495, allocations: 1.6 MB / 462.8 MB, free: 10.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.3495, allocations: 8 kB / 462.8 MB, free: 10.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004984/0.3545, allocations: 2.029 MB / 464.9 MB, free: 8.402 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.3545, allocations: 8 kB / 464.9 MB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.3546, allocations: 8 kB / 464.9 MB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004773/0.3551, allocations: 218.4 kB / 465.1 MB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001769/0.3568, allocations: 347.5 kB / 465.4 MB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004255/0.3611, allocations: 4.838 MB / 470.3 MB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001705/0.3628, allocations: 171.7 kB / 470.4 MB, free: 2.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000193/0.3631, allocations: 52 kB / 470.5 MB, free: 2.348 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.0008057/0.3639, allocations: 407 kB / 470.9 MB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002616/0.3641, allocations: 102.8 kB / 471 MB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003144/0.3645, allocations: 134.1 kB / 471.1 MB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.3645, allocations: 12 kB / 471.1 MB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.3645, allocations: 0 / 471.1 MB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.3645, allocations: 7.969 kB / 471.1 MB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008425/0.3729, allocations: 4.354 MB / 475.5 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.443e-05/0.373, allocations: 11.98 kB / 475.5 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/0.3742, allocations: 263.6 kB / 475.8 MB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005605/0.3748, allocations: 281.7 kB / 476 MB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000143/0.375, allocations: 35.98 kB / 476.1 MB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001759/0.3767, allocations: 2.19 MB / 478.3 MB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.195e-05/0.3768, allocations: 16.22 kB / 478.3 MB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005009/0.3818, allocations: 2.405 MB / 480.7 MB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006286/0.3824, allocations: 323.7 kB / 481 MB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000232/0.3827, allocations: 51.94 kB / 481 MB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.3839, allocations: 139.8 kB / 481.2 MB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000346/0.3842, allocations: 172.2 kB / 481.3 MB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.3843, allocations: 47.98 kB / 481.4 MB, free: 6.891 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008193/0.3852, allocations: 0.542 MB / 481.9 MB, free: 6.352 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3852, allocations: 0 / 481.9 MB, free: 6.352 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001281/0.3865, allocations: 336 kB / 482.3 MB, free: 6.023 MB / 398.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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006053/0.3925, allocations: 3.235 MB / 485.5 MB, free: 2.746 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004467/0.397, allocations: 1.999 MB / 487.5 MB, free: 0.6992 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/0.3971, allocations: 5.812 kB / 487.5 MB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002315/0.3994, allocations: 1.039 MB / 488.5 MB, free: 15.65 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001412/0.4008, allocations: 212.5 kB / 488.7 MB, free: 15.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02338/0.4242, allocations: 12.01 MB / 0.489 GB, free: 2.879 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009738/0.4252, allocations: 1.182 MB / 0.4902 GB, free: 1.664 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009125/0.4261, allocations: 176.4 kB / 0.4903 GB, free: 1.488 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008678/0.427, allocations: 0.5188 MB / 0.4909 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of SimCode: time 8.61e-07/0.427, allocations: 0 / 0.4909 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06197/0.489, allocations: 30.35 MB / 0.5205 GB, free: 2.887 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/14.16, allocations: 6.812 kB / 0.5205 GB, free: 2.883 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1)