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.001312/0.001312, allocations: 119.8 kB / 17.73 MB, free: 5.301 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.001276/0.001276, allocations: 185.3 kB / 20.68 MB, free: 2.367 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.397/1.397, allocations: 222.9 MB / 246.4 MB, free: 4.223 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.001514/0.001514, allocations: 55.91 kB / 357.5 MB, free: 8.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.1007, allocations: 49.44 MB / 406.9 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01116/0.1119, allocations: 9.27 MB / 416.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00515/0.1171, allocations: 2.283 MB / 418.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001112/0.1183, allocations: 31.88 kB / 418.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008759/0.1192, allocations: 329 kB / 418.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001398/0.1206, allocations: 495.7 kB / 419.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.1219, allocations: 0.6516 MB / 420 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002802/0.1247, allocations: 2.345 MB / 422.3 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001594/0.1263, allocations: 1.119 MB / 423.4 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.1277, allocations: 0.849 MB / 424.3 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001149/0.1288, allocations: 0.8871 MB / 425.2 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003685/0.1292, allocations: 276 kB / 425.5 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005077/0.1297, allocations: 327.9 kB / 425.8 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004522/0.1302, allocations: 0.4909 MB / 426.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001016/0.1312, allocations: 0.9804 MB / 427.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2162/0.3474, allocations: 3.36 MB / 430.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.188e-06/0.3474, allocations: 2.594 kB / 430.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.3475, allocations: 0 / 430.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001155/0.3476, allocations: 0 / 430.6 MB, free: 10.5 MB / 350.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.004182/0.3518, allocations: 1.951 MB / 432.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.3518, allocations: 12.81 kB / 432.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002724/0.3521, allocations: 229.6 kB / 432.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002984/0.3524, allocations: 189.2 kB / 433 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00132/0.3537, allocations: 0.8417 MB / 433.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002755/0.354, allocations: 234.8 kB / 434 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002192/0.3543, allocations: 165.1 kB / 434.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00316/0.3574, allocations: 1.687 MB / 435.9 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.574e-05/0.3575, allocations: 4.828 kB / 435.9 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001507/0.3577, allocations: 61.78 kB / 436 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.979e-05/0.3577, allocations: 36.91 kB / 436 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003658/0.3614, allocations: 1.562 MB / 437.6 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009266/0.3707, allocations: 5.833 MB / 443.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002018/0.3727, allocations: 0.9458 MB / 444.3 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001071/0.3738, allocations: 0.5326 MB / 444.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.497e-05/0.3739, allocations: 13.94 kB / 444.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001245/0.3752, allocations: 0.6606 MB / 445.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 5.039e-06/0.3752, allocations: 6.391 kB / 445.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03391/0.4091, allocations: 8.963 MB / 454.5 MB, free: 4.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.464e-05/0.4093, allocations: 300.6 kB / 454.8 MB, free: 4.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001077/0.4103, allocations: 0.788 MB / 455.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001489/0.4105, allocations: 53.3 kB / 455.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004507/0.411, allocations: 0.6803 MB / 456.3 MB, free: 2.938 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002719/0.4112, allocations: 432.9 kB / 456.8 MB, free: 2.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004548/0.4117, allocations: 242.1 kB / 457 MB, free: 2.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4118, allocations: 408.3 kB / 457.4 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/0.4136, allocations: 0.8114 MB / 458.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00191/0.4155, allocations: 1.134 MB / 459.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003582/0.4191, allocations: 1.654 MB / 461 MB, free: 15.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.366e-05/0.4191, allocations: 3.156 kB / 461 MB, free: 15.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005188/0.4243, allocations: 2.076 MB / 463.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.373e-05/0.4244, allocations: 7.688 kB / 463.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.4244, allocations: 8.5 kB / 463.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004536/0.4249, allocations: 188.5 kB / 463.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/0.4265, allocations: 346.6 kB / 463.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004638/0.4312, allocations: 4.81 MB / 468.4 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001881/0.4331, allocations: 171.8 kB / 468.6 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.4333, allocations: 48 kB / 468.6 MB, free: 9.156 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.0009091/0.4342, allocations: 383.6 kB / 469 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002495/0.4344, allocations: 111.3 kB / 469.1 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002842/0.4347, allocations: 135.9 kB / 469.2 MB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/0.4348, allocations: 12 kB / 469.3 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-05/0.4348, allocations: 4 kB / 469.3 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.4348, allocations: 3.984 kB / 469.3 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008779/0.4436, allocations: 4.417 MB / 473.7 MB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.921e-05/0.4437, allocations: 12 kB / 473.7 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.4448, allocations: 267.6 kB / 474 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006493/0.4455, allocations: 369.7 kB / 474.3 MB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.4456, allocations: 35.98 kB / 474.3 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002046/0.4477, allocations: 2.277 MB / 476.6 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.327e-05/0.4477, allocations: 15.66 kB / 476.6 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005329/0.4531, allocations: 2.507 MB / 479.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007028/0.4538, allocations: 330.4 kB / 479.5 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002051/0.454, allocations: 48 kB / 479.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.4551, allocations: 135.8 kB / 479.7 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003624/0.4555, allocations: 170.2 kB / 479.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.084e-05/0.4556, allocations: 40 kB / 479.9 MB, free: 13.58 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008431/0.4564, allocations: 0.5342 MB / 480.4 MB, free: 13.05 MB / 382.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4564, allocations: 4 kB / 480.4 MB, free: 13.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001416/0.4579, allocations: 340 kB / 480.7 MB, free: 12.71 MB / 382.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.005747/0.4636, allocations: 3.124 MB / 483.9 MB, free: 9.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004689/0.4684, allocations: 2.045 MB / 485.9 MB, free: 7.414 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/0.4684, allocations: 5.969 kB / 485.9 MB, free: 7.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002519/0.4709, allocations: 1.057 MB / 487 MB, free: 6.383 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/0.4727, allocations: 195.7 kB / 487.1 MB, free: 6.203 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02713/0.4998, allocations: 12.21 MB / 499.4 MB, free: 9.523 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001401/0.5013, allocations: 1.178 MB / 0.4888 GB, free: 8.316 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001023/0.5023, allocations: 164.4 kB / 0.489 GB, free: 8.152 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001024/0.5034, allocations: 0.5149 MB / 0.4895 GB, free: 7.637 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5034, allocations: 2.812 kB / 0.4895 GB, free: 7.637 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07496/0.5783, allocations: 29.41 MB / 0.5182 GB, free: 10.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.04/14.61, allocations: 14.2 kB / 0.5182 GB, free: 10.53 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: 18.18700424407143] 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.724842769908719 14.749308272 14.397459923 Calling exit ...