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.0008678/0.0008678, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008236/0.0008236, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8676/0.8676, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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 1.834e-06/1.834e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.528e-05/1.711e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.006395/0.006412, allocations: 8.087 MB / 326.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00396/0.01037, allocations: 2.263 MB / 328.8 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000881/0.01125, allocations: 31.88 kB / 328.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006463/0.0119, allocations: 325 kB / 329.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001117/0.01302, allocations: 0.5266 MB / 329.7 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009409/0.01396, allocations: 0.663 MB / 330.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001943/0.0159, allocations: 2.422 MB / 332.8 MB, free: 7.965 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009196/0.01682, allocations: 0.6944 MB / 333.5 MB, free: 7.219 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001336/0.01816, allocations: 1.306 MB / 334.8 MB, free: 5.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006051/0.01876, allocations: 0.6739 MB / 335.4 MB, free: 5.234 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002085/0.01897, allocations: 280 kB / 335.7 MB, free: 4.961 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003371/0.01931, allocations: 335.9 kB / 336 MB, free: 4.633 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002749/0.01958, allocations: 0.5141 MB / 336.5 MB, free: 4.117 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000474/0.02005, allocations: 0.6822 MB / 337.2 MB, free: 3.434 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002123/0.02218, allocations: 3.49 MB / 340.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.02218, allocations: 0 / 340.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.02218, allocations: 0 / 340.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.984e-05/0.02222, allocations: 8 kB / 340.7 MB, free: 15.92 MB / 314.7 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.002319/0.02454, allocations: 1.881 MB / 342.6 MB, free: 14 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.02458, allocations: 8.922 kB / 342.6 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001857/0.02477, allocations: 228 kB / 342.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002333/0.025, allocations: 199.8 kB / 343 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008368/0.02584, allocations: 0.7775 MB / 343.8 MB, free: 12.76 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000225/0.02606, allocations: 442.3 kB / 344.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.02622, allocations: 160.3 kB / 344.4 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/0.02814, allocations: 1.899 MB / 346.3 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.321e-05/0.02817, allocations: 11.95 kB / 346.3 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.18e-05/0.02826, allocations: 60 kB / 346.4 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.149e-05/0.02829, allocations: 39.98 kB / 346.4 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001957/0.03024, allocations: 1.562 MB / 348 MB, free: 8.453 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004976/0.03522, allocations: 5.178 MB / 353.1 MB, free: 3.062 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/0.03643, allocations: 0.9076 MB / 354.1 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005992/0.03703, allocations: 0.4894 MB / 354.5 MB, free: 1.637 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.757e-05/0.03708, allocations: 12.94 kB / 354.6 MB, free: 1.625 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008045/0.03788, allocations: 0.8732 MB / 355.4 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of pre-optimization done (n=91): time 2.294e-06/0.03789, allocations: 0 / 355.4 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.01697/0.05486, allocations: 8.702 MB / 364.1 MB, free: 7.906 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001365/0.055, allocations: 303.7 kB / 364.4 MB, free: 7.539 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008217/0.05582, allocations: 0.8168 MB / 365.2 MB, free: 6.715 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.583e-05/0.05589, allocations: 53.7 kB / 365.3 MB, free: 6.656 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003699/0.05626, allocations: 0.676 MB / 366 MB, free: 5.969 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002238/0.05649, allocations: 424.4 kB / 366.4 MB, free: 5.551 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002895/0.05678, allocations: 247.5 kB / 366.6 MB, free: 5.305 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.05691, allocations: 406.7 kB / 367 MB, free: 4.898 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001108/0.05801, allocations: 0.8238 MB / 367.9 MB, free: 4.074 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001338/0.05935, allocations: 1.339 MB / 369.2 MB, free: 2.57 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002126/0.06148, allocations: 1.658 MB / 370.8 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.06148, allocations: 0 / 370.8 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.002698/0.06418, allocations: 2.088 MB / 372.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.0642, allocations: 8 kB / 372.9 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.06422, allocations: 12.02 kB / 373 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002814/0.0645, allocations: 178.5 kB / 373.1 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008641/0.06536, allocations: 359.4 kB / 373.5 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002568/0.06793, allocations: 4.473 MB / 378 MB, free: 9.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007013/0.06863, allocations: 167.9 kB / 378.1 MB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.177e-05/0.0687, allocations: 48 kB / 378.2 MB, free: 9.137 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,pathPlanning.path.motion_ref,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.0005117/0.06921, allocations: 391.5 kB / 378.5 MB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.06932, allocations: 103.3 kB / 378.6 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.06945, allocations: 138.1 kB / 378.8 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.06946, allocations: 19.92 kB / 378.8 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.06946, allocations: 0 / 378.8 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.06947, allocations: 3.984 kB / 378.8 MB, free: 8.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004759/0.07423, allocations: 4.066 MB / 382.9 MB, free: 4.227 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.07424, allocations: 12 kB / 382.9 MB, free: 4.215 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005657/0.0748, allocations: 263.6 kB / 383.1 MB, free: 3.957 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003539/0.07516, allocations: 365.5 kB / 383.5 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.511e-05/0.07521, allocations: 39.98 kB / 383.5 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.07626, allocations: 2.164 MB / 385.7 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.07626, allocations: 15.94 kB / 385.7 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003162/0.07943, allocations: 2.507 MB / 388.2 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003607/0.07979, allocations: 255.1 kB / 388.5 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.07989, allocations: 43.98 kB / 388.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005314/0.08042, allocations: 135.9 kB / 388.6 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002271/0.08065, allocations: 176.2 kB / 388.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.208e-05/0.0807, allocations: 51.98 kB / 388.9 MB, free: 13.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004827/0.08118, allocations: 0.5381 MB / 389.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.08118, allocations: 4 kB / 389.4 MB, free: 13.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008153/0.082, allocations: 351.9 kB / 389.8 MB, free: 13.05 MB / 362.7 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: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,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 (113): * Single equations (assignments): 111 * 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.003506/0.0855, allocations: 3.125 MB / 392.9 MB, free: 9.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002474/0.08798, allocations: 1.934 MB / 394.8 MB, free: 7.797 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.08798, allocations: 4 kB / 394.8 MB, free: 7.793 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.08934, allocations: 1.032 MB / 395.9 MB, free: 6.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007172/0.09006, allocations: 205.2 kB / 396.1 MB, free: 6.555 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01395/0.104, allocations: 12.22 MB / 408.3 MB, free: 9.766 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004414/0.1045, allocations: 0.5903 MB / 408.9 MB, free: 9.141 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005014/0.105, allocations: 172.3 kB / 409 MB, free: 8.969 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005403/0.1055, allocations: 0.5159 MB / 409.5 MB, free: 8.453 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/0.1055, allocations: 0 / 409.5 MB, free: 8.453 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04801/0.1535, allocations: 30.9 MB / 440.4 MB, free: 9.871 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.936/9.09, allocations: 4 kB / 440.5 MB, free: 9.867 MB / 410.7 MB " [Timeout remaining time 651] (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: 11.055848397314548] 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'] 9.196186088956892 9.342752601 9.318827893 Calling exit ...