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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001729/0.001729, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002049/0.002049, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 230.2 MB / 254.5 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 63.89 kB / 373.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09392/0.0957, allocations: 53.33 MB / 426.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.2067/0.3024, allocations: 9.425 MB / 436.1 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004818/0.3072, allocations: 2.449 MB / 438.5 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001671/0.3089, allocations: 32.78 kB / 438.6 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.31, allocations: 344.3 kB / 438.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001983/0.312, allocations: 0.5 MB / 439.4 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.3136, allocations: 0.6623 MB / 440.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003917/0.3175, allocations: 2.362 MB / 442.4 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001379/0.3189, allocations: 0.7504 MB / 443.2 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001598/0.3205, allocations: 0.8721 MB / 444.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001931/0.3224, allocations: 0.896 MB / 445 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008995/0.3233, allocations: 277.8 kB / 445.2 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.3245, allocations: 332.2 kB / 445.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005396/0.325, allocations: 0.5089 MB / 446.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001536/0.3266, allocations: 0.9894 MB / 447.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00465/0.3312, allocations: 3.414 MB / 450.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.3312, allocations: 4 kB / 450.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3312, allocations: 0 / 450.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001024/0.3313, allocations: 1.25 kB / 450.5 MB, free: 15.77 MB / 366.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.004787/0.3361, allocations: 1.987 MB / 452.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.3362, allocations: 10.31 kB / 452.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003043/0.3365, allocations: 227.8 kB / 452.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003762/0.3368, allocations: 193.9 kB / 452.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001561/0.3384, allocations: 0.8492 MB / 453.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003244/0.3387, allocations: 241.8 kB / 454 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002761/0.339, allocations: 163.6 kB / 454.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003631/0.3426, allocations: 1.674 MB / 455.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.554e-05/0.3427, allocations: 6.703 kB / 455.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001663/0.3429, allocations: 61.25 kB / 455.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.794e-05/0.3429, allocations: 37.03 kB / 455.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003497/0.3464, allocations: 1.532 MB / 457.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01076/0.3572, allocations: 5.847 MB / 463.3 MB, free: 7.039 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002007/0.3592, allocations: 0.8788 MB / 464.2 MB, free: 6.559 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009717/0.3601, allocations: 482.2 kB / 464.6 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.986e-05/0.3602, allocations: 9.188 kB / 464.6 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001247/0.3614, allocations: 0.6396 MB / 465.3 MB, free: 5.855 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.725e-06/0.3614, allocations: 1.5 kB / 465.3 MB, free: 5.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.0343/0.3957, allocations: 8.829 MB / 474.1 MB, free: 1.078 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001754/0.3959, allocations: 305.5 kB / 474.4 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001409/0.3973, allocations: 0.8063 MB / 475.2 MB, free: 228 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002402/0.3976, allocations: 53.7 kB / 475.3 MB, free: 168 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006677/0.3982, allocations: 0.6761 MB / 475.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005285/0.3988, allocations: 440.3 kB / 476.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005296/0.3993, allocations: 243.5 kB / 476.6 MB, free: 14.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002557/0.3996, allocations: 406.7 kB / 477 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001978/0.4015, allocations: 0.7926 MB / 477.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002337/0.4039, allocations: 1.107 MB / 478.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003724/0.4076, allocations: 1.607 MB / 480.5 MB, free: 10.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.4076, allocations: 4 kB / 480.5 MB, free: 10.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005042/0.4126, allocations: 2.03 MB / 482.5 MB, free: 8.641 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/0.4127, allocations: 8 kB / 482.6 MB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.962e-05/0.4127, allocations: 8 kB / 482.6 MB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005153/0.4132, allocations: 219.6 kB / 482.8 MB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/0.415, allocations: 355.5 kB / 483.1 MB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004899/0.4199, allocations: 4.837 MB / 488 MB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/0.4217, allocations: 171.9 kB / 488.1 MB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000173/0.4219, allocations: 48 kB / 488.2 MB, free: 2.582 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.0009035/0.4228, allocations: 388.3 kB / 488.6 MB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002827/0.423, allocations: 111.3 kB / 488.7 MB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003026/0.4233, allocations: 138.1 kB / 488.8 MB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.4234, allocations: 12 kB / 488.8 MB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.8e-05/0.4234, allocations: 0 / 488.8 MB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.4234, allocations: 11.97 kB / 488.8 MB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008647/0.432, allocations: 4.347 MB / 493.2 MB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-05/0.4321, allocations: 8 kB / 493.2 MB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.4332, allocations: 259.6 kB / 493.4 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005909/0.4338, allocations: 291.2 kB / 493.7 MB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001341/0.434, allocations: 39.98 kB / 493.8 MB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001986/0.4359, allocations: 2.193 MB / 495.9 MB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.211e-05/0.4359, allocations: 20.06 kB / 496 MB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00507/0.441, allocations: 2.393 MB / 498.4 MB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008168/0.4418, allocations: 332.4 kB / 498.7 MB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002439/0.4421, allocations: 47.94 kB / 498.7 MB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.4432, allocations: 139.8 kB / 498.9 MB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003561/0.4435, allocations: 176.2 kB / 499 MB, free: 7.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.21e-05/0.4436, allocations: 44 kB / 499.1 MB, free: 7.133 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008281/0.4444, allocations: 0.542 MB / 499.6 MB, free: 6.594 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4444, allocations: 0 / 499.6 MB, free: 6.594 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001346/0.4458, allocations: 343.9 kB / 500 MB, free: 6.258 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.006413/0.4522, allocations: 3.245 MB / 0.4914 GB, free: 2.984 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004549/0.4567, allocations: 1.883 MB / 0.4933 GB, free: 1.059 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.62e-05/0.4568, allocations: 4 kB / 0.4933 GB, free: 1.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002401/0.4592, allocations: 1.008 MB / 0.4942 GB, free: 40 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00151/0.4607, allocations: 212.5 kB / 0.4944 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0248/0.4855, allocations: 12.05 MB / 0.5062 GB, free: 3.219 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000989/0.4864, allocations: 1.182 MB / 0.5074 GB, free: 2.004 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009589/0.4874, allocations: 168.4 kB / 0.5075 GB, free: 1.836 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008795/0.4883, allocations: 0.5188 MB / 0.508 GB, free: 1.316 MB / 414.1 MB Notification: Performance of SimCode: time 8.91e-07/0.4883, allocations: 0 / 0.508 GB, free: 1.316 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.32/2.809, allocations: 30.05 MB / 0.5374 GB, free: 3.465 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.29/20.1, allocations: 2.812 kB / 0.5374 GB, free: 3.465 MB / 446.1 MB " [Timeout remaining time 640] (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 --stepSize=0.000340136 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 23.098530678078532] Failed to read output from testmodel.py, exit status != 0: ['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'] 20.260678590275347 20.281787587 19.946832103 Calling exit ...