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.001267/0.001267, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001373/0.001373, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 63.88 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2586, allocations: 50.56 MB / 408.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01138/0.27, allocations: 9.37 MB / 418.2 MB, free: 8.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005125/0.2752, allocations: 2.446 MB / 420.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001189/0.2764, allocations: 31.88 kB / 420.7 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009493/0.2774, allocations: 344.9 kB / 421 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00147/0.2789, allocations: 0.4919 MB / 421.5 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.2802, allocations: 0.6549 MB / 422.2 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002877/0.2831, allocations: 2.372 MB / 424.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001678/0.2848, allocations: 1.115 MB / 425.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001435/0.2863, allocations: 0.8607 MB / 426.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00134/0.2876, allocations: 0.891 MB / 427.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004338/0.2881, allocations: 280 kB / 427.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005581/0.2886, allocations: 328 kB / 428 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000495/0.2892, allocations: 0.5104 MB / 428.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001137/0.2903, allocations: 0.9803 MB / 429.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003902/0.2942, allocations: 3.409 MB / 432.9 MB, free: 9.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2942, allocations: 0 / 432.9 MB, free: 9.238 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2942, allocations: 0 / 432.9 MB, free: 9.238 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.661e-05/0.2943, allocations: 0 / 432.9 MB, free: 9.238 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.004062/0.2984, allocations: 2 MB / 434.9 MB, free: 7.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.2984, allocations: 8.031 kB / 434.9 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002845/0.2987, allocations: 228 kB / 435.1 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003228/0.2991, allocations: 191.8 kB / 435.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001334/0.3004, allocations: 0.8542 MB / 436.2 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003079/0.3007, allocations: 244.5 kB / 436.4 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002375/0.301, allocations: 156 kB / 436.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003228/0.3042, allocations: 1.675 MB / 438.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.875e-05/0.3043, allocations: 3.953 kB / 438.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001475/0.3044, allocations: 72 kB / 438.3 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.055e-05/0.3045, allocations: 40 kB / 438.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003389/0.3079, allocations: 1.523 MB / 439.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009524/0.3174, allocations: 5.846 MB / 445.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002093/0.3195, allocations: 0.929 MB / 446.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001062/0.3206, allocations: 0.5044 MB / 447.2 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.112e-05/0.3207, allocations: 17 kB / 447.2 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001268/0.322, allocations: 0.6411 MB / 447.8 MB, free: 9.879 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 4.408e-06/0.322, allocations: 3.984 kB / 447.8 MB, free: 9.875 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03454/0.3566, allocations: 8.821 MB / 456.6 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001741/0.3568, allocations: 303.8 kB / 456.9 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001227/0.358, allocations: 0.8053 MB / 457.7 MB, free: 15.74 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001463/0.3582, allocations: 53.7 kB / 457.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006055/0.3588, allocations: 0.6877 MB / 458.5 MB, free: 14.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004241/0.3592, allocations: 424.3 kB / 458.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004975/0.3597, allocations: 247.5 kB / 459.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002337/0.36, allocations: 410.7 kB / 459.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001986/0.3619, allocations: 0.7848 MB / 460.3 MB, free: 13.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002266/0.3642, allocations: 1.118 MB / 461.4 MB, free: 11.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003808/0.3681, allocations: 1.599 MB / 463 MB, free: 10.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.794e-06/0.3681, allocations: 4 kB / 463 MB, free: 10.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004996/0.3731, allocations: 2.034 MB / 465.1 MB, free: 8.156 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.329e-05/0.3732, allocations: 11.94 kB / 465.1 MB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.424e-05/0.3732, allocations: 11.98 kB / 465.1 MB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005244/0.3737, allocations: 218.4 kB / 465.3 MB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/0.3754, allocations: 351.5 kB / 465.7 MB, free: 7.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004814/0.3803, allocations: 4.85 MB / 470.5 MB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/0.3821, allocations: 167.8 kB / 470.7 MB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001765/0.3823, allocations: 51.98 kB / 470.7 MB, free: 2.082 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.0008613/0.3832, allocations: 391.1 kB / 471.1 MB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002313/0.3834, allocations: 111.3 kB / 471.2 MB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002929/0.3837, allocations: 138.1 kB / 471.4 MB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.3837, allocations: 12 kB / 471.4 MB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.3837, allocations: 4 kB / 471.4 MB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.3838, allocations: 3.984 kB / 471.4 MB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008183/0.3919, allocations: 4.35 MB / 475.7 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-05/0.392, allocations: 12 kB / 475.7 MB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.3931, allocations: 255.6 kB / 476 MB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005533/0.3937, allocations: 281.8 kB / 476.3 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.697e-05/0.3938, allocations: 43.98 kB / 476.3 MB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002007/0.3958, allocations: 2.206 MB / 478.5 MB, free: 9.926 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/0.3959, allocations: 12.09 kB / 478.5 MB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005016/0.4009, allocations: 2.397 MB / 480.9 MB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00066/0.4016, allocations: 328.3 kB / 481.2 MB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002086/0.4018, allocations: 55.92 kB / 481.3 MB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.4029, allocations: 135.9 kB / 481.4 MB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003579/0.4032, allocations: 168.2 kB / 481.6 MB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.102e-05/0.4033, allocations: 47.98 kB / 481.6 MB, free: 6.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008343/0.4042, allocations: 0.542 MB / 482.2 MB, free: 6.086 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4042, allocations: 0 / 482.2 MB, free: 6.086 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001289/0.4055, allocations: 336 kB / 482.5 MB, free: 5.758 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.006572/0.4121, allocations: 3.255 MB / 485.8 MB, free: 2.469 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004564/0.4167, allocations: 2 MB / 487.8 MB, free: 432 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/0.4167, allocations: 0 / 487.8 MB, free: 432 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002356/0.4191, allocations: 1.036 MB / 488.8 MB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/0.4204, allocations: 211.4 kB / 489 MB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02283/0.4432, allocations: 12.06 MB / 0.4893 GB, free: 2.551 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.4443, allocations: 1.186 MB / 0.4905 GB, free: 1.332 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009004/0.4452, allocations: 172.4 kB / 0.4906 GB, free: 1.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009046/0.4461, allocations: 0.5227 MB / 0.4912 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of SimCode: time 1.193e-06/0.4461, allocations: 0 / 0.4912 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07511/0.5212, allocations: 29.84 MB / 0.5203 GB, free: 3.066 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.14/14.66, allocations: 64 / 0.5203 GB, free: 3.066 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)