Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001921/0.001928, allocations: 118.2 kB / 18.45 MB, free: 4.613 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.002312/0.002312, allocations: 211.3 kB / 21.41 MB, free: 1.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.447/1.447, allocations: 227.7 MB / 251.9 MB, free: 15.84 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-beta.om/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_4_1_0-beta_om_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-beta_om_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 71.83 kB / 365.2 MB, free: 172 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1056, allocations: 50.54 MB / 415.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01135/0.117, allocations: 9.393 MB / 425.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005428/0.1225, allocations: 2.434 MB / 427.6 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00154/0.1241, allocations: 35.81 kB / 427.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001281/0.1254, allocations: 344.9 kB / 428 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002206/0.1277, allocations: 499.7 kB / 428.5 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0017/0.1294, allocations: 0.6554 MB / 429.1 MB, free: 184 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003742/0.1331, allocations: 2.364 MB / 431.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002312/0.1355, allocations: 1.123 MB / 432.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001857/0.1374, allocations: 0.8607 MB / 433.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001682/0.1391, allocations: 0.8949 MB / 434.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007637/0.1399, allocations: 280 kB / 434.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009418/0.1408, allocations: 332 kB / 435 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008068/0.1416, allocations: 0.5065 MB / 435.5 MB, free: 9.766 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001394/0.143, allocations: 0.9842 MB / 436.4 MB, free: 8.777 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004216/0.1473, allocations: 3.402 MB / 439.8 MB, free: 5.363 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.1473, allocations: 0 / 439.8 MB, free: 5.363 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1473, allocations: 4 kB / 439.9 MB, free: 5.359 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.014e-05/0.1474, allocations: 0 / 439.9 MB, free: 5.359 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.004188/0.1516, allocations: 1.994 MB / 441.8 MB, free: 3.309 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.1517, allocations: 12.03 kB / 441.9 MB, free: 3.297 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000301/0.152, allocations: 224 kB / 442.1 MB, free: 3.066 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003239/0.1523, allocations: 195.8 kB / 442.3 MB, free: 2.875 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00132/0.1536, allocations: 0.8541 MB / 443.1 MB, free: 1.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003101/0.1539, allocations: 244.5 kB / 443.4 MB, free: 1.723 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002418/0.1542, allocations: 156 kB / 443.5 MB, free: 1.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1866/0.3408, allocations: 1.668 MB / 445.2 MB, free: 28.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.291e-05/0.3409, allocations: 4.172 kB / 445.2 MB, free: 28.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001841/0.3411, allocations: 63.75 kB / 445.2 MB, free: 28.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.851e-05/0.3412, allocations: 36.16 kB / 445.3 MB, free: 28.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003344/0.3445, allocations: 1.529 MB / 446.8 MB, free: 28.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008584/0.3531, allocations: 5.836 MB / 452.6 MB, free: 26.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00202/0.3552, allocations: 0.9324 MB / 453.6 MB, free: 26.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.3562, allocations: 0.5086 MB / 454.1 MB, free: 26.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.705e-05/0.3563, allocations: 11.84 kB / 454.1 MB, free: 26.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001319/0.3576, allocations: 0.6421 MB / 454.7 MB, free: 26.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 3.086e-06/0.3577, allocations: 0.5 kB / 454.7 MB, free: 26.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.034/0.3917, allocations: 8.842 MB / 463.6 MB, free: 23.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.169e-05/0.3918, allocations: 300.6 kB / 463.9 MB, free: 22.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.3928, allocations: 0.7993 MB / 464.7 MB, free: 22.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001078/0.3929, allocations: 54.02 kB / 464.7 MB, free: 22.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003839/0.3933, allocations: 0.6818 MB / 465.4 MB, free: 21.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002518/0.3936, allocations: 440.4 kB / 465.8 MB, free: 21.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004388/0.394, allocations: 251.6 kB / 466.1 MB, free: 21.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.3942, allocations: 405.2 kB / 466.5 MB, free: 21.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00181/0.396, allocations: 0.7854 MB / 467.3 MB, free: 20.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001967/0.398, allocations: 1.115 MB / 468.4 MB, free: 19.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003338/0.4013, allocations: 1.602 MB / 470 MB, free: 18.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.4013, allocations: 3.281 kB / 470 MB, free: 18.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004555/0.4059, allocations: 2.036 MB / 472 MB, free: 17.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.545e-05/0.406, allocations: 8.594 kB / 472 MB, free: 17.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/0.406, allocations: 10.16 kB / 472 MB, free: 17.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004942/0.4065, allocations: 221.1 kB / 472.3 MB, free: 17.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001674/0.4082, allocations: 356.9 kB / 472.6 MB, free: 17.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003072/0.4113, allocations: 4.828 MB / 477.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/0.413, allocations: 166.6 kB / 477.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/0.4131, allocations: 58.78 kB / 477.7 MB, free: 12.71 MB / 366.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.0006945/0.4138, allocations: 387.8 kB / 478 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002112/0.414, allocations: 115.5 kB / 478.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002391/0.4143, allocations: 132.1 kB / 478.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.4143, allocations: 16.36 kB / 478.3 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-05/0.4143, allocations: 1.375 kB / 478.3 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.4143, allocations: 6.328 kB / 478.3 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007099/0.4214, allocations: 4.35 MB / 482.6 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.4215, allocations: 7.875 kB / 482.7 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/0.4226, allocations: 265.6 kB / 482.9 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004652/0.423, allocations: 286.1 kB / 483.2 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.752e-05/0.4232, allocations: 35.77 kB / 483.2 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001277/0.4244, allocations: 2.197 MB / 485.4 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.764e-06/0.4245, allocations: 15.81 kB / 485.4 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004377/0.4288, allocations: 2.399 MB / 487.8 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006546/0.4295, allocations: 333.1 kB / 488.2 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003333/0.4299, allocations: 45.66 kB / 488.2 MB, free: 4.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.4312, allocations: 141.6 kB / 488.4 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003471/0.4315, allocations: 172.2 kB / 488.5 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.4317, allocations: 46.89 kB / 488.6 MB, free: 4.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008877/0.4326, allocations: 0.5396 MB / 489.1 MB, free: 4.305 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4326, allocations: 0 / 489.1 MB, free: 4.305 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001637/0.4342, allocations: 336 kB / 489.4 MB, free: 3.977 MB / 366.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.005974/0.4402, allocations: 3.259 MB / 492.7 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005199/0.4454, allocations: 2.012 MB / 494.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/0.4455, allocations: 4.125 kB / 494.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002743/0.4483, allocations: 1.039 MB / 495.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002/0.4503, allocations: 205.6 kB / 495.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02785/0.4782, allocations: 12.08 MB / 0.4961 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001412/0.4796, allocations: 1.182 MB / 0.4973 GB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001064/0.4807, allocations: 168.4 kB / 0.4974 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001071/0.4818, allocations: 0.5188 MB / 0.4979 GB, free: 14.88 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4818, allocations: 4 kB / 0.4979 GB, free: 14.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08315/0.565, allocations: 29.86 MB / 0.5271 GB, free: 1.348 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.26/14.82, allocations: 0 / 0.5271 GB, free: 1.348 MB / 414.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.csv --start-time 0 --stop-time 1.6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000340136 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.41173738602083] 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.988251555012539 15.01340858 14.861972071 Calling exit ...