Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001628/0.001628, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001792/0.001792, allocations: 206.6 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 230.4 MB / 254 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 67.89 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1093, allocations: 53.37 MB / 426.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.2144/0.3237, allocations: 9.427 MB / 435.8 MB, free: 6.238 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004653/0.3283, allocations: 2.444 MB / 438.2 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001463/0.3298, allocations: 40.28 kB / 438.3 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001041/0.3309, allocations: 348.7 kB / 438.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00181/0.3327, allocations: 0.5076 MB / 439.1 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001502/0.3342, allocations: 0.653 MB / 439.8 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003058/0.3372, allocations: 2.362 MB / 442.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001217/0.3384, allocations: 0.7475 MB / 442.9 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001644/0.3401, allocations: 0.8915 MB / 443.8 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001529/0.3416, allocations: 0.9002 MB / 444.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005768/0.3422, allocations: 278.6 kB / 445 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000784/0.343, allocations: 328.3 kB / 445.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004153/0.3434, allocations: 0.5114 MB / 445.8 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.3445, allocations: 0.9855 MB / 446.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005244/0.3497, allocations: 3.412 MB / 450.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.707e-06/0.3497, allocations: 0 / 450.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3497, allocations: 0 / 450.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001269/0.3499, allocations: 5.156 kB / 450.2 MB, free: 15.3 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.005787/0.3557, allocations: 1.982 MB / 452.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.3557, allocations: 10.94 kB / 452.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003968/0.3561, allocations: 233.9 kB / 452.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005202/0.3566, allocations: 189.3 kB / 452.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001754/0.3584, allocations: 0.8504 MB / 453.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003662/0.3587, allocations: 243.9 kB / 453.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003037/0.359, allocations: 170.1 kB / 453.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003836/0.3629, allocations: 1.669 MB / 455.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.457e-05/0.3629, allocations: 7.203 kB / 455.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001816/0.3631, allocations: 61.16 kB / 455.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.615e-05/0.3632, allocations: 37.78 kB / 455.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00389/0.367, allocations: 1.535 MB / 457.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01189/0.3789, allocations: 5.84 MB / 463 MB, free: 6.535 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002291/0.3812, allocations: 0.8808 MB / 463.9 MB, free: 6.051 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001199/0.3824, allocations: 478.3 kB / 464.3 MB, free: 5.797 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.994e-05/0.3825, allocations: 14.45 kB / 464.4 MB, free: 5.793 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00146/0.384, allocations: 0.6475 MB / 465 MB, free: 5.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 3.076e-06/0.384, allocations: 0 / 465 MB, free: 5.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03746/0.4214, allocations: 8.829 MB / 473.8 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001984/0.4216, allocations: 295.9 kB / 474.1 MB, free: 220 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001406/0.423, allocations: 0.8073 MB / 474.9 MB, free: 15.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001418/0.4232, allocations: 57.73 kB / 475 MB, free: 15.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006794/0.4239, allocations: 0.6761 MB / 475.7 MB, free: 14.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004225/0.4243, allocations: 444.2 kB / 476.1 MB, free: 14.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005236/0.4248, allocations: 243.5 kB / 476.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002427/0.425, allocations: 410.7 kB / 476.7 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002021/0.4271, allocations: 0.7887 MB / 477.5 MB, free: 13.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002413/0.4295, allocations: 1.103 MB / 478.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003955/0.4334, allocations: 1.607 MB / 480.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.4334, allocations: 0 / 480.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005238/0.4387, allocations: 2.038 MB / 482.3 MB, free: 8.066 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.4387, allocations: 8 kB / 482.3 MB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.4387, allocations: 8 kB / 482.3 MB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005066/0.4392, allocations: 211 kB / 482.5 MB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001754/0.441, allocations: 359.5 kB / 482.8 MB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005019/0.446, allocations: 4.838 MB / 487.7 MB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001756/0.4478, allocations: 168.1 kB / 487.8 MB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001326/0.4479, allocations: 48 kB / 487.9 MB, free: 2.016 MB / 382.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.000873/0.4488, allocations: 396 kB / 488.3 MB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002468/0.449, allocations: 115.3 kB / 488.4 MB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003436/0.4493, allocations: 138.1 kB / 488.5 MB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.4494, allocations: 12 kB / 488.5 MB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.758e-05/0.4494, allocations: 0 / 488.5 MB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.4494, allocations: 7.969 kB / 488.5 MB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008739/0.4581, allocations: 4.339 MB / 492.9 MB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/0.4581, allocations: 12.03 kB / 492.9 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001194/0.4593, allocations: 263.6 kB / 493.2 MB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005744/0.4599, allocations: 286.7 kB / 493.4 MB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.46, allocations: 39.98 kB / 493.5 MB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002084/0.4621, allocations: 2.185 MB / 495.7 MB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.247e-05/0.4621, allocations: 15.94 kB / 495.7 MB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005196/0.4673, allocations: 2.401 MB / 498.1 MB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006632/0.468, allocations: 328.3 kB / 498.4 MB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000192/0.4682, allocations: 51.92 kB / 498.4 MB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.4693, allocations: 139.8 kB / 498.6 MB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003527/0.4696, allocations: 172.2 kB / 498.7 MB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.913e-05/0.4697, allocations: 44 kB / 498.8 MB, free: 6.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008636/0.4706, allocations: 0.5459 MB / 499.3 MB, free: 6.027 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4706, allocations: 0 / 499.3 MB, free: 6.027 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001396/0.472, allocations: 343.9 kB / 499.7 MB, free: 5.691 MB / 398.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.006864/0.4788, allocations: 3.253 MB / 0.4911 GB, free: 2.406 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00472/0.4836, allocations: 1.878 MB / 0.493 GB, free: 500 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/0.4836, allocations: 0 / 0.493 GB, free: 500 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002405/0.486, allocations: 1.006 MB / 0.494 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001517/0.4875, allocations: 211.7 kB / 0.4942 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02484/0.5123, allocations: 12.06 MB / 0.5059 GB, free: 2.641 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00111/0.5135, allocations: 1.179 MB / 0.5071 GB, free: 1.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009477/0.5144, allocations: 172.4 kB / 0.5073 GB, free: 1.258 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009679/0.5154, allocations: 0.5188 MB / 0.5078 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of SimCode: time 1.763e-06/0.5154, allocations: 0 / 0.5078 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07722/0.5926, allocations: 30.06 MB / 0.5371 GB, free: 2.891 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/14.84, allocations: 13.73 kB / 0.5371 GB, free: 2.883 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.671111627016217] 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.00428335100878 15.027214831 14.673109308 Calling exit ...