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.001235/0.001235, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2489, allocations: 50.53 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01002/0.2589, allocations: 9.388 MB / 418.2 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005043/0.264, allocations: 2.438 MB / 420.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001565/0.2656, allocations: 27.94 kB / 420.6 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001172/0.2669, allocations: 337 kB / 420.9 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002102/0.269, allocations: 0.5035 MB / 421.4 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00167/0.2707, allocations: 0.6516 MB / 422.1 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003017/0.2737, allocations: 2.368 MB / 424.5 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00156/0.2753, allocations: 1.121 MB / 425.6 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001306/0.2766, allocations: 0.8685 MB / 426.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001079/0.2777, allocations: 0.8988 MB / 427.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005137/0.2782, allocations: 276 kB / 427.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006001/0.2789, allocations: 328 kB / 427.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004432/0.2793, allocations: 0.5104 MB / 428.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009617/0.2803, allocations: 0.9803 MB / 429.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003125/0.2834, allocations: 3.396 MB / 432.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.2834, allocations: 0 / 432.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2835, allocations: 0 / 432.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.427e-05/0.2835, allocations: 7.984 kB / 432.8 MB, free: 9.293 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.003823/0.2873, allocations: 1.947 MB / 434.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.2874, allocations: 8.031 kB / 434.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002757/0.2877, allocations: 232 kB / 435 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003014/0.288, allocations: 178.9 kB / 435.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.2893, allocations: 0.8575 MB / 436.1 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002702/0.2896, allocations: 236.5 kB / 436.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002202/0.2898, allocations: 160 kB / 436.4 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003002/0.2928, allocations: 1.667 MB / 438.1 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.692e-05/0.2929, allocations: 7.906 kB / 438.1 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/0.293, allocations: 64 kB / 438.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.805e-05/0.293, allocations: 40 kB / 438.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003069/0.2961, allocations: 1.527 MB / 439.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008954/0.3051, allocations: 5.821 MB / 445.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001882/0.307, allocations: 0.9407 MB / 446.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009446/0.308, allocations: 0.5044 MB / 447 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.445e-05/0.308, allocations: 9 kB / 447 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001141/0.3092, allocations: 0.645 MB / 447.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 3.256e-06/0.3092, allocations: 0 / 447.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03281/0.342, allocations: 8.787 MB / 456.5 MB, free: 1.094 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.3422, allocations: 299.7 kB / 456.7 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.3435, allocations: 0.7975 MB / 457.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001755/0.3437, allocations: 61.72 kB / 457.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000571/0.3443, allocations: 0.6623 MB / 458.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004225/0.3447, allocations: 414 kB / 458.7 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005103/0.3452, allocations: 247.4 kB / 458.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.3454, allocations: 410.7 kB / 459.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001822/0.3473, allocations: 0.7887 MB / 460.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002032/0.3493, allocations: 1.111 MB / 461.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003365/0.3527, allocations: 1.6 MB / 462.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.316e-06/0.3527, allocations: 4 kB / 462.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004495/0.3572, allocations: 2.037 MB / 464.9 MB, free: 8.355 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.3573, allocations: 8 kB / 464.9 MB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/0.3573, allocations: 4 kB / 464.9 MB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004605/0.3578, allocations: 214.4 kB / 465.1 MB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/0.3594, allocations: 355.5 kB / 465.4 MB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004098/0.3635, allocations: 4.846 MB / 470.3 MB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/0.3651, allocations: 159.9 kB / 470.4 MB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001548/0.3652, allocations: 55.98 kB / 470.5 MB, free: 2.301 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.0007513/0.366, allocations: 403.1 kB / 470.9 MB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002335/0.3662, allocations: 102.8 kB / 471 MB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002799/0.3665, allocations: 134.1 kB / 471.1 MB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.3665, allocations: 12 kB / 471.1 MB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.3666, allocations: 4 kB / 471.1 MB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.3666, allocations: 3.984 kB / 471.1 MB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007571/0.3741, allocations: 4.353 MB / 475.5 MB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-05/0.3742, allocations: 12.06 kB / 475.5 MB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.3753, allocations: 263.6 kB / 475.7 MB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005141/0.3758, allocations: 277.6 kB / 476 MB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/0.376, allocations: 39.98 kB / 476.1 MB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001774/0.3777, allocations: 2.197 MB / 478.3 MB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/0.3778, allocations: 15.94 kB / 478.3 MB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004444/0.3822, allocations: 2.397 MB / 480.7 MB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005602/0.3828, allocations: 323.7 kB / 481 MB, free: 7.258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002427/0.383, allocations: 51.98 kB / 481 MB, free: 7.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.3841, allocations: 139.8 kB / 481.2 MB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003193/0.3845, allocations: 168.2 kB / 481.3 MB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.3e-05/0.3846, allocations: 47.98 kB / 481.4 MB, free: 6.855 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007849/0.3853, allocations: 0.5459 MB / 481.9 MB, free: 6.312 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3854, allocations: 0 / 481.9 MB, free: 6.312 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001302/0.3867, allocations: 340 kB / 482.3 MB, free: 5.98 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.005567/0.3922, allocations: 3.234 MB / 485.5 MB, free: 2.711 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004012/0.3963, allocations: 2.003 MB / 487.5 MB, free: 0.6602 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/0.3963, allocations: 4 kB / 487.5 MB, free: 0.6562 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002069/0.3984, allocations: 1.033 MB / 488.5 MB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001369/0.3998, allocations: 216.6 kB / 488.7 MB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02151/0.4213, allocations: 12.02 MB / 0.489 GB, free: 2.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001051/0.4224, allocations: 1.19 MB / 0.4902 GB, free: 1.617 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008871/0.4233, allocations: 180.4 kB / 0.4904 GB, free: 1.438 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008666/0.4242, allocations: 0.5188 MB / 0.4909 GB, free: 0.918 MB / 414.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4242, allocations: 0 / 0.4909 GB, free: 0.918 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06607/0.4903, allocations: 30.34 MB / 0.5205 GB, free: 2.836 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.9, allocations: 2.969 kB / 0.5205 GB, free: 2.836 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)