Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002032/0.002032, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 7.984 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_1_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_1_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.001573/0.001573, allocations: 43.92 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2378, allocations: 53.35 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01194/0.2498, allocations: 9.469 MB / 440.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004927/0.2547, allocations: 2.465 MB / 443.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001202/0.2559, allocations: 43.75 kB / 443.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009957/0.2569, allocations: 337 kB / 443.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001422/0.2583, allocations: 0.5152 MB / 444 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001223/0.2596, allocations: 0.6554 MB / 444.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002787/0.2623, allocations: 2.368 MB / 447 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001296/0.2636, allocations: 0.7449 MB / 447.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001369/0.265, allocations: 0.8919 MB / 448.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001231/0.2662, allocations: 0.8988 MB / 449.5 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003713/0.2666, allocations: 280 kB / 449.8 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004953/0.2671, allocations: 328 kB / 450.1 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000465/0.2676, allocations: 0.5182 MB / 450.6 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.2687, allocations: 0.9803 MB / 451.6 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003643/0.2723, allocations: 3.411 MB / 455 MB, free: 14.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2723, allocations: 0 / 455 MB, free: 14.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2723, allocations: 0 / 455 MB, free: 14.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.191e-05/0.2724, allocations: 0 / 455 MB, free: 14.84 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.004314/0.2767, allocations: 1.917 MB / 456.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.2767, allocations: 8.031 kB / 457 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003191/0.2771, allocations: 232 kB / 457.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003394/0.2774, allocations: 187.8 kB / 457.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001532/0.2789, allocations: 0.7964 MB / 458.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004411/0.2794, allocations: 446.1 kB / 458.6 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002508/0.2796, allocations: 156 kB / 458.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003275/0.2829, allocations: 1.675 MB / 460.4 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.065e-05/0.283, allocations: 15.95 kB / 460.4 MB, free: 9.258 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/0.2831, allocations: 60 kB / 460.5 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.897e-05/0.2832, allocations: 36 kB / 460.5 MB, free: 9.164 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003467/0.2866, allocations: 1.527 MB / 462.1 MB, free: 7.633 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01027/0.2969, allocations: 5.719 MB / 467.8 MB, free: 1.695 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00209/0.299, allocations: 0.8779 MB / 468.7 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001076/0.3001, allocations: 481.8 kB / 469.1 MB, free: 336 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.719e-05/0.3001, allocations: 13 kB / 469.1 MB, free: 320 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001316/0.3015, allocations: 0.645 MB / 469.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.695e-06/0.3015, allocations: 0 / 469.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=121): time 0.03396/0.3354, allocations: 8.532 MB / 478.3 MB, free: 7.043 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002229/0.3356, allocations: 307.7 kB / 478.6 MB, free: 6.676 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001324/0.337, allocations: 0.7975 MB / 479.4 MB, free: 5.863 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000195/0.3372, allocations: 53.7 kB / 479.5 MB, free: 5.805 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006714/0.3378, allocations: 0.68 MB / 480.1 MB, free: 5.113 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000476/0.3383, allocations: 432.4 kB / 480.6 MB, free: 4.688 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005076/0.3388, allocations: 247.5 kB / 480.8 MB, free: 4.441 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002734/0.3391, allocations: 410.8 kB / 481.2 MB, free: 4.031 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002019/0.3411, allocations: 0.7848 MB / 482 MB, free: 3.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002366/0.3435, allocations: 1.114 MB / 483.1 MB, free: 2.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003777/0.3473, allocations: 1.607 MB / 484.7 MB, free: 324 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3473, allocations: 0 / 484.7 MB, free: 324 kB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005057/0.3523, allocations: 2.034 MB / 486.8 MB, free: 14.26 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.3523, allocations: 8 kB / 486.8 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.3524, allocations: 8 kB / 486.8 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005088/0.3529, allocations: 226.4 kB / 487 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001711/0.3546, allocations: 343.5 kB / 487.3 MB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004855/0.3594, allocations: 4.536 MB / 491.9 MB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.3611, allocations: 163.9 kB / 492 MB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/0.3613, allocations: 52 kB / 492.1 MB, free: 8.586 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.0008342/0.3622, allocations: 395.3 kB / 492.5 MB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002407/0.3624, allocations: 111.3 kB / 492.6 MB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002908/0.3627, allocations: 134.1 kB / 492.7 MB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.3627, allocations: 12 kB / 492.7 MB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.3627, allocations: 4 kB / 492.7 MB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.898e-05/0.3627, allocations: 7.969 kB / 492.7 MB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00878/0.3715, allocations: 4.311 MB / 497 MB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.598e-05/0.3715, allocations: 8 kB / 497 MB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.3727, allocations: 264.1 kB / 497.3 MB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005917/0.3733, allocations: 277.5 kB / 497.6 MB, free: 2.891 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.855e-05/0.3734, allocations: 39.98 kB / 497.6 MB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/0.3755, allocations: 2.094 MB / 499.7 MB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.196e-05/0.3755, allocations: 15.94 kB / 499.7 MB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00502/0.3805, allocations: 2.397 MB / 0.4903 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006565/0.3812, allocations: 247.2 kB / 0.4906 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002053/0.3814, allocations: 55.92 kB / 0.4906 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/0.3826, allocations: 143.8 kB / 0.4908 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003425/0.3829, allocations: 168.2 kB / 0.4909 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.876e-05/0.383, allocations: 47.98 kB / 0.491 GB, free: 13.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008445/0.3839, allocations: 0.5381 MB / 0.4915 GB, free: 12.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3839, allocations: 0 / 0.4915 GB, free: 12.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001275/0.3851, allocations: 343.9 kB / 0.4918 GB, free: 12.54 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.006648/0.3918, allocations: 3.257 MB / 0.495 GB, free: 9.258 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004444/0.3962, allocations: 1.883 MB / 0.4969 GB, free: 7.336 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.104e-05/0.3963, allocations: 4.625 kB / 0.4969 GB, free: 7.332 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002308/0.3986, allocations: 1.012 MB / 0.4978 GB, free: 6.312 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001363/0.3999, allocations: 206.6 kB / 0.498 GB, free: 6.113 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03371/0.4336, allocations: 12.07 MB / 0.5098 GB, free: 9.484 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001558/0.4352, allocations: 1.186 MB / 0.511 GB, free: 8.262 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001461/0.4367, allocations: 172.4 kB / 0.5112 GB, free: 8.09 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001369/0.438, allocations: 0.5188 MB / 0.5117 GB, free: 7.57 MB / 430.1 MB Notification: Performance of SimCode: time 1.583e-06/0.438, allocations: 0 / 0.5117 GB, free: 7.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2829/0.7209, allocations: 31.18 MB / 0.5421 GB, free: 102.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.43/16.15, allocations: 7.781 kB / 0.5421 GB, free: 102.5 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.901341856999352] 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'] 16.35894799199741 16.37446646 16.099779446 Calling exit ...