Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002071/0.002071, allocations: 217.2 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.476/1.476, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 43.94 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2619, allocations: 53.36 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01242/0.2744, allocations: 9.475 MB / 440.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005611/0.28, allocations: 2.458 MB / 443.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001611/0.2816, allocations: 43.75 kB / 443.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001383/0.283, allocations: 344.9 kB / 443.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002242/0.2852, allocations: 0.5075 MB / 444 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001693/0.2869, allocations: 0.6554 MB / 444.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003358/0.2903, allocations: 2.368 MB / 447 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001387/0.2916, allocations: 0.741 MB / 447.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001397/0.293, allocations: 0.8958 MB / 448.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001163/0.2942, allocations: 0.8988 MB / 449.5 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003684/0.2946, allocations: 276 kB / 449.8 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005076/0.2951, allocations: 336 kB / 450.1 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004632/0.2955, allocations: 0.5103 MB / 450.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001016/0.2966, allocations: 0.9881 MB / 451.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003652/0.3002, allocations: 3.403 MB / 455 MB, free: 14.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3002, allocations: 0 / 455 MB, free: 14.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3002, allocations: 0 / 455 MB, free: 14.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.341e-05/0.3003, allocations: 0 / 455 MB, free: 14.84 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.003924/0.3042, allocations: 1.924 MB / 456.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.3042, allocations: 12.02 kB / 457 MB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002905/0.3045, allocations: 228 kB / 457.2 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003219/0.3049, allocations: 191.8 kB / 457.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001408/0.3063, allocations: 0.7924 MB / 458.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000403/0.3067, allocations: 450.1 kB / 458.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002462/0.3069, allocations: 163.9 kB / 458.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003134/0.3101, allocations: 1.663 MB / 460.4 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.195e-05/0.3101, allocations: 7.953 kB / 460.4 MB, free: 9.262 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001414/0.3102, allocations: 68 kB / 460.5 MB, free: 9.195 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.752e-05/0.3103, allocations: 40 kB / 460.5 MB, free: 9.156 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003299/0.3136, allocations: 1.523 MB / 462.1 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009896/0.3235, allocations: 5.719 MB / 467.8 MB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002137/0.3256, allocations: 0.874 MB / 468.7 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.3267, allocations: 477.8 kB / 469.1 MB, free: 340 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.249e-05/0.3267, allocations: 17 kB / 469.1 MB, free: 320 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001334/0.3281, allocations: 0.6411 MB / 469.8 MB, free: 15.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.755e-06/0.3281, allocations: 0 / 469.8 MB, free: 15.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=121): time 0.03368/0.3618, allocations: 8.533 MB / 478.3 MB, free: 7.047 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000195/0.362, allocations: 295.7 kB / 478.6 MB, free: 6.691 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001336/0.3633, allocations: 0.8053 MB / 479.4 MB, free: 5.871 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002041/0.3635, allocations: 53.7 kB / 479.5 MB, free: 5.812 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007075/0.3642, allocations: 0.6839 MB / 480.1 MB, free: 5.117 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005457/0.3648, allocations: 432.4 kB / 480.6 MB, free: 4.691 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005113/0.3653, allocations: 239.5 kB / 480.8 MB, free: 4.453 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002491/0.3655, allocations: 410.7 kB / 481.2 MB, free: 4.043 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001974/0.3675, allocations: 0.7964 MB / 482 MB, free: 3.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002349/0.3698, allocations: 1.111 MB / 483.1 MB, free: 2.023 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003742/0.3736, allocations: 1.603 MB / 484.7 MB, free: 332 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.3736, allocations: 8 kB / 484.7 MB, free: 324 kB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00514/0.3787, allocations: 2.026 MB / 486.7 MB, free: 14.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.3788, allocations: 8 kB / 486.8 MB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/0.3788, allocations: 8 kB / 486.8 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005204/0.3793, allocations: 222.4 kB / 487 MB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/0.3811, allocations: 351.5 kB / 487.3 MB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005058/0.3862, allocations: 4.544 MB / 491.9 MB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001728/0.3879, allocations: 163.9 kB / 492 MB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001742/0.3881, allocations: 51.97 kB / 492.1 MB, free: 8.582 MB / 398.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.0009479/0.389, allocations: 391.1 kB / 492.5 MB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002523/0.3893, allocations: 107.3 kB / 492.6 MB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003054/0.3896, allocations: 138.1 kB / 492.7 MB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/0.3896, allocations: 16 kB / 492.7 MB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.3896, allocations: 3.938 kB / 492.7 MB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.3896, allocations: 7.922 kB / 492.7 MB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008668/0.3983, allocations: 4.311 MB / 497 MB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.666e-05/0.3983, allocations: 8 kB / 497 MB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.3994, allocations: 264.1 kB / 497.3 MB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005767/0.4, allocations: 281.5 kB / 497.6 MB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/0.4002, allocations: 39.98 kB / 497.6 MB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002173/0.4023, allocations: 2.094 MB / 499.7 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/0.4023, allocations: 11.94 kB / 499.7 MB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005124/0.4075, allocations: 2.393 MB / 0.4903 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000813/0.4083, allocations: 255.2 kB / 0.4906 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002255/0.4085, allocations: 51.92 kB / 0.4906 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.4096, allocations: 135.9 kB / 0.4908 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003719/0.4099, allocations: 176.2 kB / 0.4909 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.832e-05/0.41, allocations: 43.98 kB / 0.491 GB, free: 13.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008696/0.4109, allocations: 0.542 MB / 0.4915 GB, free: 12.87 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4109, allocations: 0 / 0.4915 GB, free: 12.87 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001387/0.4123, allocations: 339.9 kB / 0.4918 GB, free: 12.54 MB / 414.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.006758/0.419, allocations: 3.255 MB / 0.495 GB, free: 9.258 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004738/0.4238, allocations: 1.887 MB / 0.4969 GB, free: 7.332 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-05/0.4238, allocations: 4.5 kB / 0.4969 GB, free: 7.328 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002427/0.4262, allocations: 1.008 MB / 0.4978 GB, free: 6.312 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001458/0.4277, allocations: 199.1 kB / 0.498 GB, free: 6.117 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02433/0.452, allocations: 12.07 MB / 0.5098 GB, free: 9.484 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/0.4531, allocations: 1.186 MB / 0.511 GB, free: 8.262 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009202/0.454, allocations: 168.5 kB / 0.5111 GB, free: 8.094 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009124/0.4549, allocations: 0.5149 MB / 0.5116 GB, free: 7.578 MB / 430.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4549, allocations: 0 / 0.5116 GB, free: 7.578 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2752/0.7301, allocations: 31.2 MB / 0.5421 GB, free: 102.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.04/15.77, allocations: 7.688 kB / 0.5421 GB, free: 102.4 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --stepSize=0.000340136 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.55479597300291] 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'] 15.964686083840206 15.981947196 15.677717059 Calling exit ...