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.001334/0.001334, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001412/0.001412, allocations: 216.5 kB / 24.53 MB, free: 4.012 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.378/1.378, allocations: 230.5 MB / 258.2 MB, free: 8.02 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 71.89 kB / 378.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2171, allocations: 53.4 MB / 432 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01082/0.228, allocations: 9.471 MB / 441.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004234/0.2322, allocations: 2.454 MB / 443.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007194/0.2329, allocations: 39.75 kB / 443.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007757/0.2337, allocations: 344.9 kB / 444.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001131/0.2348, allocations: 0.5153 MB / 444.8 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.2359, allocations: 0.6554 MB / 445.4 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002368/0.2383, allocations: 2.368 MB / 447.8 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.2394, allocations: 0.7527 MB / 448.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001146/0.2406, allocations: 0.8802 MB / 449.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001114/0.2417, allocations: 0.9027 MB / 450.4 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003349/0.242, allocations: 280 kB / 450.6 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004606/0.2425, allocations: 332 kB / 451 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004408/0.2429, allocations: 0.5103 MB / 451.5 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009022/0.2438, allocations: 0.9881 MB / 452.4 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003219/0.247, allocations: 3.407 MB / 455.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.247, allocations: 0 / 455.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.247, allocations: 4 kB / 455.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.147e-05/0.2471, allocations: 3.938 kB / 455.9 MB, free: 14.68 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.003681/0.2508, allocations: 1.905 MB / 457.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.2508, allocations: 12.03 kB / 457.8 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.025e-05/0.2509, allocations: 47.08 kB / 457.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002684/0.2511, allocations: 228 kB / 458 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000298/0.2514, allocations: 187.8 kB / 458.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.2527, allocations: 0.7963 MB / 459 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003869/0.2531, allocations: 449.9 kB / 459.5 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002232/0.2533, allocations: 156 kB / 459.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003024/0.2563, allocations: 1.671 MB / 461.3 MB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.501e-05/0.2564, allocations: 11.95 kB / 461.3 MB, free: 9.062 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/0.2565, allocations: 60 kB / 461.4 MB, free: 9.004 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.184e-05/0.2566, allocations: 40 kB / 461.4 MB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003204/0.2598, allocations: 1.531 MB / 462.9 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008965/0.2687, allocations: 5.719 MB / 468.7 MB, free: 1.492 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002022/0.2708, allocations: 0.8787 MB / 469.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001005/0.2718, allocations: 475.6 kB / 470 MB, free: 136 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.038e-05/0.2718, allocations: 17 kB / 470 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001271/0.2731, allocations: 0.6373 MB / 470.6 MB, free: 15.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.404e-06/0.2731, allocations: 4 kB / 470.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=121): time 0.03352/0.3066, allocations: 8.533 MB / 479.2 MB, free: 6.855 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000164/0.3068, allocations: 303.8 kB / 479.5 MB, free: 6.492 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001114/0.3079, allocations: 0.7975 MB / 480.3 MB, free: 5.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001176/0.308, allocations: 61.62 kB / 480.3 MB, free: 5.613 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005481/0.3086, allocations: 0.6877 MB / 481 MB, free: 4.914 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003668/0.3089, allocations: 428.4 kB / 481.4 MB, free: 4.492 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000482/0.3094, allocations: 247.5 kB / 481.7 MB, free: 4.246 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.3096, allocations: 406.7 kB / 482.1 MB, free: 3.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001927/0.3115, allocations: 0.7926 MB / 482.9 MB, free: 3.047 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002205/0.3137, allocations: 1.107 MB / 484 MB, free: 1.828 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00358/0.3173, allocations: 1.603 MB / 485.6 MB, free: 136 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3173, allocations: 0 / 485.6 MB, free: 136 kB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004706/0.322, allocations: 2.042 MB / 487.6 MB, free: 14.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.3221, allocations: 8 kB / 487.6 MB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.3221, allocations: 8 kB / 487.6 MB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004646/0.3225, allocations: 218.4 kB / 487.9 MB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001639/0.3242, allocations: 351.5 kB / 488.2 MB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004175/0.3284, allocations: 4.532 MB / 492.7 MB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/0.3298, allocations: 171.9 kB / 492.9 MB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.3299, allocations: 59.92 kB / 493 MB, free: 8.387 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.0006855/0.3306, allocations: 383.2 kB / 493.3 MB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001981/0.3308, allocations: 111.3 kB / 493.4 MB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002679/0.3311, allocations: 126.1 kB / 493.6 MB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.3311, allocations: 15.98 kB / 493.6 MB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.3311, allocations: 8 kB / 493.6 MB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.3311, allocations: 3.984 kB / 493.6 MB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007924/0.3391, allocations: 4.311 MB / 497.9 MB, free: 3.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.3391, allocations: 8 kB / 497.9 MB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.3402, allocations: 263.6 kB / 498.2 MB, free: 2.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005217/0.3407, allocations: 281.9 kB / 498.4 MB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.834e-05/0.3408, allocations: 35.98 kB / 498.5 MB, free: 2.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001883/0.3427, allocations: 2.102 MB / 0.4888 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-05/0.3427, allocations: 19.92 kB / 0.4889 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00487/0.3476, allocations: 2.393 MB / 0.4912 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005636/0.3481, allocations: 247.2 kB / 0.4914 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001824/0.3483, allocations: 51.94 kB / 0.4915 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.3494, allocations: 143.8 kB / 0.4916 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003366/0.3497, allocations: 176.1 kB / 0.4918 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.483e-05/0.3498, allocations: 44 kB / 0.4918 GB, free: 13.21 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000785/0.3506, allocations: 0.5381 MB / 0.4924 GB, free: 12.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3506, allocations: 0 / 0.4924 GB, free: 12.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001186/0.3517, allocations: 339.9 kB / 0.4927 GB, free: 12.34 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.006451/0.3582, allocations: 3.239 MB / 0.4958 GB, free: 9.066 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004299/0.3625, allocations: 1.887 MB / 0.4977 GB, free: 7.137 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.3625, allocations: 3.938 kB / 0.4977 GB, free: 7.133 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002314/0.3648, allocations: 1.008 MB / 0.4987 GB, free: 6.117 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001328/0.3661, allocations: 209.3 kB / 0.4989 GB, free: 5.918 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02439/0.3905, allocations: 12.07 MB / 0.5107 GB, free: 9.285 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001209/0.3917, allocations: 1.186 MB / 0.5118 GB, free: 8.062 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009057/0.3926, allocations: 180.4 kB / 0.512 GB, free: 7.883 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001/0.3936, allocations: 0.5149 MB / 0.5125 GB, free: 7.367 MB / 430.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3936, allocations: 0 / 0.5125 GB, free: 7.367 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2782/0.6718, allocations: 31.2 MB / 0.543 GB, free: 102.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.54/15.21, allocations: 7.672 kB / 0.543 GB, free: 102.3 MB / 446.1 MB " [Timeout remaining time 645] (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: 18.016792389040347] 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.446114744001534 15.455419938 15.206217434 Calling exit ...