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.001716/0.001716, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.002259/0.002259, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.476/1.476, allocations: 230.6 MB / 258.3 MB, free: 8.074 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.002004/0.002004, allocations: 69 kB / 378.6 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.262, allocations: 53.36 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01331/0.2753, allocations: 9.472 MB / 441.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005977/0.2813, allocations: 2.465 MB / 443.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001786/0.2831, allocations: 39.75 kB / 443.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001555/0.2846, allocations: 344.9 kB / 444.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002504/0.2871, allocations: 0.5075 MB / 444.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001919/0.289, allocations: 0.6516 MB / 445.4 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004/0.293, allocations: 2.368 MB / 447.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001673/0.2947, allocations: 0.7488 MB / 448.5 MB, free: 6.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001675/0.2964, allocations: 0.8918 MB / 449.4 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001371/0.2978, allocations: 0.8988 MB / 450.3 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005454/0.2983, allocations: 276 kB / 450.6 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006433/0.2989, allocations: 340 kB / 450.9 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005637/0.2995, allocations: 0.5104 MB / 451.4 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001257/0.3008, allocations: 0.9803 MB / 452.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004141/0.3049, allocations: 3.411 MB / 455.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3049, allocations: 0 / 455.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.3049, allocations: 4 kB / 455.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.243e-05/0.305, allocations: 0 / 455.8 MB, free: 14.87 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.004482/0.3095, allocations: 1.913 MB / 457.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.3095, allocations: 8.031 kB / 457.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003934/0.3099, allocations: 236 kB / 458 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003973/0.3103, allocations: 191.8 kB / 458.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001714/0.312, allocations: 0.7808 MB / 458.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00049/0.3125, allocations: 450.1 kB / 459.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004043/0.3129, allocations: 160 kB / 459.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004298/0.3172, allocations: 1.675 MB / 461.2 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.337e-05/0.3173, allocations: 7.953 kB / 461.2 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002243/0.3175, allocations: 64 kB / 461.3 MB, free: 9.242 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.561e-05/0.3175, allocations: 40 kB / 461.3 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004164/0.3217, allocations: 1.523 MB / 462.8 MB, free: 7.676 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01141/0.3331, allocations: 5.719 MB / 468.6 MB, free: 1.738 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002223/0.3353, allocations: 0.8818 MB / 469.4 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001116/0.3365, allocations: 481.1 kB / 469.9 MB, free: 376 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.209e-05/0.3365, allocations: 9 kB / 469.9 MB, free: 364 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/0.338, allocations: 0.645 MB / 470.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.665e-06/0.338, allocations: 0 / 470.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=121): time 0.03411/0.3721, allocations: 8.532 MB / 479.1 MB, free: 7.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001868/0.3723, allocations: 295.7 kB / 479.4 MB, free: 6.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/0.3736, allocations: 0.8092 MB / 480.2 MB, free: 5.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002086/0.3738, allocations: 53.7 kB / 480.2 MB, free: 5.852 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006252/0.3744, allocations: 0.68 MB / 480.9 MB, free: 5.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000456/0.3749, allocations: 428.4 kB / 481.3 MB, free: 4.738 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005074/0.3754, allocations: 247.5 kB / 481.6 MB, free: 4.492 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002458/0.3756, allocations: 410.8 kB / 482 MB, free: 4.082 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002034/0.3776, allocations: 0.7887 MB / 482.8 MB, free: 3.293 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002358/0.38, allocations: 1.111 MB / 483.9 MB, free: 2.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003795/0.3838, allocations: 1.607 MB / 485.5 MB, free: 376 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/0.3838, allocations: 7.938 kB / 485.5 MB, free: 368 kB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005084/0.3889, allocations: 2.03 MB / 487.5 MB, free: 14.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.3889, allocations: 8 kB / 487.5 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.3889, allocations: 12 kB / 487.5 MB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005202/0.3895, allocations: 218.5 kB / 487.8 MB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001829/0.3913, allocations: 351.4 kB / 488.1 MB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007157/0.3984, allocations: 4.539 MB / 492.6 MB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002605/0.4011, allocations: 163.9 kB / 492.8 MB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000302/0.4014, allocations: 51.98 kB / 492.9 MB, free: 8.629 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.00126/0.4026, allocations: 387.1 kB / 493.2 MB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003106/0.4029, allocations: 107.3 kB / 493.3 MB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000368/0.4033, allocations: 142.2 kB / 493.5 MB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-05/0.4033, allocations: 15.98 kB / 493.5 MB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.4033, allocations: 0 / 493.5 MB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.4033, allocations: 3.984 kB / 493.5 MB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01382/0.4172, allocations: 4.311 MB / 497.8 MB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.217e-05/0.4172, allocations: 16 kB / 497.8 MB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001796/0.419, allocations: 260.3 kB / 498.1 MB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001/0.42, allocations: 281.5 kB / 498.4 MB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002616/0.4203, allocations: 44 kB / 498.4 MB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002924/0.4232, allocations: 2.086 MB / 0.4888 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.046e-05/0.4232, allocations: 15.94 kB / 0.4888 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008222/0.4314, allocations: 2.397 MB / 0.4911 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/0.4326, allocations: 251.2 kB / 0.4913 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004678/0.4331, allocations: 47.94 kB / 0.4914 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00165/0.4347, allocations: 139.8 kB / 0.4915 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004782/0.4352, allocations: 176.2 kB / 0.4917 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.4353, allocations: 44 kB / 0.4917 GB, free: 13.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009236/0.4363, allocations: 0.5381 MB / 0.4923 GB, free: 12.92 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4363, allocations: 0 / 0.4923 GB, free: 12.92 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001523/0.4378, allocations: 347.9 kB / 0.4926 GB, free: 12.58 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.007391/0.4452, allocations: 3.248 MB / 0.4958 GB, free: 9.305 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005078/0.4502, allocations: 1.891 MB / 0.4976 GB, free: 7.375 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/0.4503, allocations: 4.25 kB / 0.4976 GB, free: 7.371 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002598/0.4529, allocations: 1.008 MB / 0.4986 GB, free: 6.355 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001647/0.4545, allocations: 205.2 kB / 0.4988 GB, free: 6.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0264/0.4809, allocations: 12.07 MB / 0.5106 GB, free: 9.531 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001249/0.4821, allocations: 1.178 MB / 0.5117 GB, free: 8.316 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009474/0.4831, allocations: 176.4 kB / 0.5119 GB, free: 8.141 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009769/0.4841, allocations: 0.5149 MB / 0.5124 GB, free: 7.625 MB / 430.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4841, allocations: 4 kB / 0.5124 GB, free: 7.621 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.279/0.763, allocations: 31.16 MB / 0.5428 GB, free: 102.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.8/15.56, allocations: 14.42 kB / 0.5429 GB, free: 102.7 MB / 446.1 MB " [Timeout remaining time 644] (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: 18.173627268057317] 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.745670483913273 15.761377722 15.453535293 Calling exit ...