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.001899/0.001899, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002281/0.002281, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.462/1.462, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001648/0.001648, allocations: 51.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09513/0.09678, allocations: 53.34 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.1924/0.2892, allocations: 9.419 MB / 435.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004741/0.2939, allocations: 2.45 MB / 438.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001829/0.2958, allocations: 39.53 kB / 438.2 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00122/0.297, allocations: 346.5 kB / 438.6 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002108/0.2991, allocations: 0.5037 MB / 439.1 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001617/0.3007, allocations: 0.6554 MB / 439.7 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003702/0.3044, allocations: 2.366 MB / 442.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001694/0.3061, allocations: 0.7468 MB / 442.8 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001858/0.308, allocations: 0.889 MB / 443.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001674/0.3096, allocations: 0.9012 MB / 444.6 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007241/0.3104, allocations: 277.5 kB / 444.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001023/0.3114, allocations: 335.9 kB / 445.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005303/0.3119, allocations: 0.5042 MB / 445.7 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001432/0.3133, allocations: 0.9902 MB / 446.7 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004466/0.3178, allocations: 3.41 MB / 450.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3178, allocations: 1.25 kB / 450.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3178, allocations: 0 / 450.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001004/0.3179, allocations: 0 / 450.1 MB, free: 15.5 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.005426/0.3233, allocations: 1.996 MB / 452.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.3234, allocations: 8.75 kB / 452.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004224/0.3238, allocations: 224.9 kB / 452.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004784/0.3243, allocations: 193.7 kB / 452.6 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/0.326, allocations: 0.848 MB / 453.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003344/0.3264, allocations: 237.8 kB / 453.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000359/0.3267, allocations: 162.8 kB / 453.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004091/0.3308, allocations: 1.679 MB / 455.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.439e-05/0.3309, allocations: 9.094 kB / 455.5 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002159/0.3311, allocations: 65.75 kB / 455.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.229e-05/0.3311, allocations: 37.12 kB / 455.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00412/0.3353, allocations: 1.529 MB / 457.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01222/0.3475, allocations: 5.842 MB / 463 MB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002287/0.3498, allocations: 0.8797 MB / 463.8 MB, free: 6.254 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001126/0.3509, allocations: 476.2 kB / 464.3 MB, free: 6.008 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.224e-05/0.351, allocations: 14.69 kB / 464.3 MB, free: 6.004 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001368/0.3524, allocations: 0.6398 MB / 465 MB, free: 5.551 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.805e-06/0.3524, allocations: 0 / 465 MB, free: 5.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03625/0.3886, allocations: 8.841 MB / 473.8 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001909/0.3888, allocations: 297 kB / 474.1 MB, free: 428 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001433/0.3902, allocations: 0.8053 MB / 474.9 MB, free: 15.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002307/0.3905, allocations: 57.69 kB / 474.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006213/0.3911, allocations: 0.684 MB / 475.6 MB, free: 15.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000476/0.3916, allocations: 428.4 kB / 476 MB, free: 14.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005333/0.3921, allocations: 243.5 kB / 476.3 MB, free: 14.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002429/0.3923, allocations: 410.7 kB / 476.7 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0021/0.3944, allocations: 0.7887 MB / 477.5 MB, free: 13.28 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00242/0.3969, allocations: 1.107 MB / 478.6 MB, free: 12.06 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003921/0.4008, allocations: 1.606 MB / 480.2 MB, free: 10.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.639e-06/0.4008, allocations: 4 kB / 480.2 MB, free: 10.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005198/0.406, allocations: 2.034 MB / 482.2 MB, free: 8.309 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.406, allocations: 8 kB / 482.2 MB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.406, allocations: 4 kB / 482.2 MB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004989/0.4065, allocations: 222.3 kB / 482.5 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001818/0.4083, allocations: 355.5 kB / 482.8 MB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004606/0.413, allocations: 4.84 MB / 487.6 MB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001829/0.4148, allocations: 163.8 kB / 487.8 MB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001769/0.415, allocations: 52.86 kB / 487.9 MB, free: 2.254 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.0008926/0.4159, allocations: 407.3 kB / 488.2 MB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002667/0.4161, allocations: 111.3 kB / 488.4 MB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003416/0.4165, allocations: 130.1 kB / 488.5 MB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.4165, allocations: 12 kB / 488.5 MB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/0.4165, allocations: 0 / 488.5 MB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.4165, allocations: 7.984 kB / 488.5 MB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008784/0.4253, allocations: 4.339 MB / 492.8 MB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.566e-05/0.4253, allocations: 11.94 kB / 492.9 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.4265, allocations: 259.8 kB / 493.1 MB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006055/0.4271, allocations: 286.1 kB / 493.4 MB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001563/0.4273, allocations: 35.98 kB / 493.4 MB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002061/0.4293, allocations: 2.199 MB / 495.6 MB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.39e-05/0.4293, allocations: 15.94 kB / 495.6 MB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005601/0.4349, allocations: 2.397 MB / 498 MB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008874/0.4358, allocations: 328.3 kB / 498.4 MB, free: 7.207 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002913/0.4361, allocations: 51.92 kB / 498.4 MB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001247/0.4374, allocations: 135.9 kB / 498.5 MB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004175/0.4378, allocations: 168.2 kB / 498.7 MB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.5e-05/0.4379, allocations: 47.98 kB / 498.8 MB, free: 6.809 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009063/0.4388, allocations: 0.5459 MB / 499.3 MB, free: 6.266 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4388, allocations: 0 / 499.3 MB, free: 6.266 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001674/0.4405, allocations: 335.9 kB / 499.6 MB, free: 5.938 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.007376/0.4478, allocations: 3.255 MB / 0.4911 GB, free: 2.664 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004947/0.4528, allocations: 1.878 MB / 0.4929 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.518e-05/0.4528, allocations: 4 kB / 0.4929 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002498/0.4553, allocations: 1.005 MB / 0.4939 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001621/0.4569, allocations: 209 kB / 0.4941 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02592/0.4828, allocations: 12.07 MB / 0.5059 GB, free: 2.902 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001054/0.4839, allocations: 1.19 MB / 0.5071 GB, free: 1.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009782/0.4849, allocations: 176.4 kB / 0.5072 GB, free: 1.504 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/0.4859, allocations: 0.5149 MB / 0.5077 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4859, allocations: 0 / 0.5077 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07681/0.5627, allocations: 30.05 MB / 0.5371 GB, free: 3.199 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.19/14.75, allocations: 7.844 kB / 0.5371 GB, free: 3.191 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.58109516184777] 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'] 14.916309976950288 14.937090187 14.614927275 Calling exit ...