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.001247/0.001247, allocations: 110 kB / 20.43 MB, free: 1.453 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.001366/0.001366, allocations: 213.5 kB / 23.74 MB, free: 4.66 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.381/1.381, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.001942/0.001942, allocations: 55.91 kB / 377.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2283/0.2302, allocations: 53.41 MB / 431.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01286/0.2431, allocations: 9.474 MB / 440.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005835/0.2489, allocations: 2.458 MB / 443.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001445/0.2504, allocations: 39.75 kB / 443.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.2516, allocations: 344.9 kB / 443.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001983/0.2535, allocations: 0.5114 MB / 444 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001485/0.255, allocations: 0.6593 MB / 444.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002996/0.258, allocations: 2.368 MB / 447 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001213/0.2592, allocations: 0.741 MB / 447.8 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001284/0.2605, allocations: 0.8919 MB / 448.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001318/0.2618, allocations: 0.9027 MB / 449.6 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004056/0.2622, allocations: 280 kB / 449.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005378/0.2628, allocations: 328 kB / 450.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004752/0.2633, allocations: 0.5065 MB / 450.7 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001077/0.2643, allocations: 0.9958 MB / 451.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003599/0.2679, allocations: 3.407 MB / 455.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.2679, allocations: 0 / 455.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.2679, allocations: 0 / 455.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.88e-05/0.268, allocations: 0 / 455.1 MB, free: 14.82 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.004236/0.2722, allocations: 1.917 MB / 457 MB, free: 12.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.2723, allocations: 15.97 kB / 457 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003239/0.2726, allocations: 224 kB / 457.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003237/0.2729, allocations: 187.8 kB / 457.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/0.2744, allocations: 0.7847 MB / 458.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004243/0.2748, allocations: 458.1 kB / 458.6 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002362/0.275, allocations: 159.9 kB / 458.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003082/0.2781, allocations: 1.671 MB / 460.5 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.425e-05/0.2782, allocations: 3.953 kB / 460.5 MB, free: 9.242 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000144/0.2783, allocations: 67.98 kB / 460.5 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.232e-05/0.2783, allocations: 40 kB / 460.6 MB, free: 9.137 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003242/0.2816, allocations: 1.527 MB / 462.1 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009131/0.2907, allocations: 5.708 MB / 467.8 MB, free: 1.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001981/0.2927, allocations: 0.8864 MB / 468.7 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009983/0.2937, allocations: 477.1 kB / 469.2 MB, free: 316 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.992e-05/0.2938, allocations: 9 kB / 469.2 MB, free: 304 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001246/0.295, allocations: 0.6451 MB / 469.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.384e-06/0.295, allocations: 4 kB / 469.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=121): time 0.03231/0.3273, allocations: 8.527 MB / 478.4 MB, free: 7.031 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001859/0.3275, allocations: 303.8 kB / 478.7 MB, free: 6.668 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/0.3287, allocations: 0.8014 MB / 479.5 MB, free: 5.852 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001514/0.3289, allocations: 53.7 kB / 479.5 MB, free: 5.793 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006486/0.3295, allocations: 0.6878 MB / 480.2 MB, free: 5.094 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004309/0.3299, allocations: 424.4 kB / 480.6 MB, free: 4.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004753/0.3304, allocations: 247.5 kB / 480.8 MB, free: 4.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002349/0.3306, allocations: 406.7 kB / 481.2 MB, free: 4.023 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001934/0.3326, allocations: 0.7926 MB / 482 MB, free: 3.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002187/0.3348, allocations: 1.111 MB / 483.1 MB, free: 2.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00357/0.3383, allocations: 1.611 MB / 484.8 MB, free: 312 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/0.3383, allocations: 0 / 484.8 MB, free: 312 kB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00474/0.3431, allocations: 2.034 MB / 486.8 MB, free: 14.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.109e-05/0.3431, allocations: 10.66 kB / 486.8 MB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.007e-05/0.3431, allocations: 8 kB / 486.8 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004996/0.3436, allocations: 222.4 kB / 487 MB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.3453, allocations: 355.4 kB / 487.4 MB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004408/0.3497, allocations: 4.532 MB / 491.9 MB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/0.3512, allocations: 167.9 kB / 492.1 MB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/0.3513, allocations: 52 kB / 492.1 MB, free: 8.57 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.0007766/0.3521, allocations: 395.1 kB / 492.5 MB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/0.3523, allocations: 107.3 kB / 492.6 MB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002814/0.3526, allocations: 134.1 kB / 492.7 MB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.3526, allocations: 12 kB / 492.8 MB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.3526, allocations: 4 kB / 492.8 MB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.3526, allocations: 7.984 kB / 492.8 MB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008078/0.3607, allocations: 4.311 MB / 497.1 MB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.395e-05/0.3607, allocations: 8 kB / 497.1 MB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.3618, allocations: 259.6 kB / 497.3 MB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005271/0.3623, allocations: 285.8 kB / 497.6 MB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-05/0.3624, allocations: 35.98 kB / 497.7 MB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001931/0.3644, allocations: 2.094 MB / 499.7 MB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.295e-05/0.3644, allocations: 15.94 kB / 499.8 MB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004792/0.3692, allocations: 2.39 MB / 0.4904 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006327/0.3698, allocations: 251.2 kB / 0.4906 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001829/0.37, allocations: 51.92 kB / 0.4907 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.371, allocations: 143.9 kB / 0.4908 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003202/0.3713, allocations: 176.2 kB / 0.491 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.091e-05/0.3714, allocations: 43.98 kB / 0.491 GB, free: 13.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007824/0.3722, allocations: 0.5459 MB / 0.4916 GB, free: 12.85 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3722, allocations: 3.938 kB / 0.4916 GB, free: 12.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001162/0.3733, allocations: 339.9 kB / 0.4919 GB, free: 12.51 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.006258/0.3796, allocations: 3.239 MB / 0.495 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004175/0.3838, allocations: 1.891 MB / 0.4969 GB, free: 7.309 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/0.3838, allocations: 3.938 kB / 0.4969 GB, free: 7.305 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002171/0.386, allocations: 1.008 MB / 0.4979 GB, free: 6.289 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.3872, allocations: 198.2 kB / 0.4981 GB, free: 6.098 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02272/0.4099, allocations: 12.06 MB / 0.5098 GB, free: 9.473 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001063/0.4109, allocations: 1.194 MB / 0.511 GB, free: 8.242 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008448/0.4118, allocations: 172.4 kB / 0.5112 GB, free: 8.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008695/0.4127, allocations: 0.5149 MB / 0.5117 GB, free: 7.555 MB / 430.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4127, allocations: 0 / 0.5117 GB, free: 7.555 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2794/0.692, allocations: 31.18 MB / 0.5421 GB, free: 102.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.73/15.42, allocations: 0 / 0.5421 GB, free: 102.5 MB / 446.1 MB " [Timeout remaining time 644] (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.04824655293487] 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.607865134021267 15.626649033 15.355074517 Calling exit ...