Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001854/0.001854, allocations: 123 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002059/0.002059, allocations: 189.2 kB / 20.73 MB, free: 2.352 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.508/1.508, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_0_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_0_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.001479/0.001479, allocations: 51.91 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1025, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01156/0.1141, allocations: 9.307 MB / 427.1 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005335/0.1194, allocations: 2.287 MB / 429.4 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00145/0.1209, allocations: 43.75 kB / 429.4 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001007/0.1219, allocations: 333 kB / 429.8 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001649/0.1235, allocations: 0.4997 MB / 430.3 MB, free: 96 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001484/0.125, allocations: 0.6516 MB / 430.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003163/0.1282, allocations: 2.349 MB / 433.3 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001264/0.1295, allocations: 0.7482 MB / 434 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001436/0.1309, allocations: 0.8725 MB / 434.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001219/0.1321, allocations: 0.891 MB / 435.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003598/0.1325, allocations: 284 kB / 436 MB, free: 10.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004708/0.1329, allocations: 320 kB / 436.4 MB, free: 9.926 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004591/0.1334, allocations: 0.5103 MB / 436.9 MB, free: 9.414 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009807/0.1344, allocations: 0.9687 MB / 437.8 MB, free: 8.441 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003639/0.138, allocations: 3.356 MB / 441.2 MB, free: 5.074 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.138, allocations: 0 / 441.2 MB, free: 5.074 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.138, allocations: 4 kB / 441.2 MB, free: 5.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.45e-05/0.1381, allocations: 0 / 441.2 MB, free: 5.07 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.004528/0.1426, allocations: 1.965 MB / 443.2 MB, free: 3.047 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.094e-05/0.1427, allocations: 8.031 kB / 443.2 MB, free: 3.039 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003408/0.143, allocations: 228 kB / 443.4 MB, free: 2.805 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004053/0.1434, allocations: 199.8 kB / 443.6 MB, free: 2.609 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001594/0.145, allocations: 0.8541 MB / 444.4 MB, free: 1.715 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003198/0.1454, allocations: 232.5 kB / 444.7 MB, free: 1.469 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002541/0.1456, allocations: 163.9 kB / 444.8 MB, free: 1.309 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2075/0.3531, allocations: 1.677 MB / 446.5 MB, free: 28.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.485e-05/0.3532, allocations: 3.172 kB / 446.5 MB, free: 28.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001559/0.3533, allocations: 64.41 kB / 446.6 MB, free: 28.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.865e-05/0.3533, allocations: 38.91 kB / 446.6 MB, free: 28.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003203/0.3566, allocations: 1.559 MB / 448.2 MB, free: 28.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00875/0.3653, allocations: 5.828 MB / 454 MB, free: 26.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002025/0.3673, allocations: 0.8878 MB / 454.9 MB, free: 25.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.3685, allocations: 0.4959 MB / 455.4 MB, free: 25.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.08e-05/0.3686, allocations: 15.38 kB / 455.4 MB, free: 25.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.3698, allocations: 0.6561 MB / 456 MB, free: 25.26 MB / 366.1 MB Notification: Performance of pre-optimization done (n=90): time 2.805e-06/0.3698, allocations: 0 / 456 MB, free: 25.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.03526/0.405, allocations: 8.963 MB / 465 MB, free: 22.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.4052, allocations: 302.3 kB / 465.3 MB, free: 21.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00122/0.4064, allocations: 0.7976 MB / 466.1 MB, free: 21.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000129/0.4065, allocations: 53.86 kB / 466.2 MB, free: 21.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004495/0.4069, allocations: 0.6812 MB / 466.8 MB, free: 20.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003156/0.4073, allocations: 431.6 kB / 467.3 MB, free: 20.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004841/0.4077, allocations: 244.4 kB / 467.5 MB, free: 20.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.4079, allocations: 408.8 kB / 467.9 MB, free: 19.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001885/0.4098, allocations: 0.8063 MB / 468.7 MB, free: 19.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002045/0.4118, allocations: 1.128 MB / 469.8 MB, free: 18.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003476/0.4153, allocations: 1.651 MB / 471.5 MB, free: 17.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/0.4153, allocations: 2.656 kB / 471.5 MB, free: 17.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004666/0.42, allocations: 2.077 MB / 473.6 MB, free: 16.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.42, allocations: 9.312 kB / 473.6 MB, free: 16.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.834e-05/0.42, allocations: 5.875 kB / 473.6 MB, free: 16.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004217/0.4205, allocations: 182.8 kB / 473.8 MB, free: 16.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.4221, allocations: 351.5 kB / 474.1 MB, free: 16.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003026/0.4251, allocations: 4.812 MB / 478.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/0.4267, allocations: 165.8 kB / 479.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.4269, allocations: 50.16 kB / 479.1 MB, free: 11.46 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 (168): * Single equations (assignments): 165 * 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.0007347/0.4276, allocations: 382.4 kB / 479.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002459/0.4279, allocations: 120.2 kB / 479.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002844/0.4282, allocations: 136 kB / 479.7 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.4282, allocations: 11.94 kB / 479.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.88e-05/0.4282, allocations: 1.062 kB / 479.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.4282, allocations: 4.125 kB / 479.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006919/0.4351, allocations: 4.414 MB / 484.2 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.13e-05/0.4351, allocations: 10.5 kB / 484.2 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.4362, allocations: 267.5 kB / 484.4 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004701/0.4366, allocations: 365.2 kB / 484.8 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.484e-05/0.4367, allocations: 37.86 kB / 484.8 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00132/0.438, allocations: 2.274 MB / 487.1 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.438, allocations: 15.78 kB / 487.1 MB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004155/0.4422, allocations: 2.498 MB / 489.6 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004813/0.4427, allocations: 320.3 kB / 489.9 MB, free: 2.762 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001629/0.4428, allocations: 51.94 kB / 490 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009968/0.4438, allocations: 142.7 kB / 490.1 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000286/0.4441, allocations: 171.5 kB / 490.3 MB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.996e-05/0.4442, allocations: 40 kB / 490.3 MB, free: 2.371 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005957/0.4448, allocations: 0.5381 MB / 490.9 MB, free: 1.836 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4448, allocations: 0 / 490.9 MB, free: 1.836 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001263/0.4461, allocations: 346.4 kB / 491.2 MB, free: 1.5 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005254/0.4513, allocations: 3.114 MB / 494.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004693/0.456, allocations: 1.932 MB / 496.3 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/0.456, allocations: 8.125 kB / 496.3 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002404/0.4584, allocations: 1.016 MB / 497.3 MB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/0.4597, allocations: 192.8 kB / 497.5 MB, free: 11.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0244/0.4842, allocations: 12.22 MB / 0.4977 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001008/0.4852, allocations: 1.171 MB / 0.4989 GB, free: 13.08 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008453/0.486, allocations: 168.3 kB / 0.499 GB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009712/0.487, allocations: 0.5188 MB / 0.4996 GB, free: 12.39 MB / 398.1 MB Notification: Performance of SimCode: time 7.42e-07/0.487, allocations: 0 / 0.4996 GB, free: 12.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07938/0.5664, allocations: 29.6 MB / 0.5285 GB, free: 15.08 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.33/14.9, allocations: 9.891 kB / 0.5285 GB, free: 15.07 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.669387040659785] 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.008115149103105 15.035741362 14.892548372 Calling exit ...