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.001431/0.001431, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002796/0.002796, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.485/1.485, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.001716/0.001716, allocations: 47.92 kB / 377.7 MB, free: 2.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2757, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.0121/0.2878, allocations: 8.21 MB / 439.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005741/0.2936, allocations: 2.399 MB / 441.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0016/0.2952, allocations: 31.88 kB / 441.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001459/0.2966, allocations: 340.9 kB / 442.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002473/0.2991, allocations: 0.5152 MB / 442.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001905/0.301, allocations: 0.6477 MB / 443.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003779/0.3048, allocations: 2.368 MB / 445.6 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001828/0.3066, allocations: 0.6983 MB / 446.3 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001614/0.3082, allocations: 0.8569 MB / 447.2 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001559/0.3098, allocations: 0.7894 MB / 447.9 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004305/0.3102, allocations: 280 kB / 448.2 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007901/0.311, allocations: 348 kB / 448.6 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005008/0.3115, allocations: 0.5181 MB / 449.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001001/0.3125, allocations: 0.7977 MB / 449.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003723/0.3162, allocations: 3.435 MB / 453.3 MB, free: 296 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.406e-06/0.3162, allocations: 4 kB / 453.3 MB, free: 292 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3162, allocations: 0 / 453.3 MB, free: 292 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.801e-05/0.3163, allocations: 0 / 453.3 MB, free: 292 kB / 350.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.004223/0.3205, allocations: 1.932 MB / 455.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/0.3206, allocations: 8.031 kB / 455.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002964/0.3209, allocations: 228 kB / 455.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004157/0.3213, allocations: 191.8 kB / 455.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.3227, allocations: 0.7899 MB / 456.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000425/0.3232, allocations: 446.1 kB / 456.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002505/0.3234, allocations: 163.9 kB / 457.1 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003368/0.3268, allocations: 1.879 MB / 458.9 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.656e-05/0.3268, allocations: 7.953 kB / 458.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001414/0.327, allocations: 60 kB / 459 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.439e-05/0.327, allocations: 36 kB / 459 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0035/0.3305, allocations: 1.534 MB / 460.6 MB, free: 8.801 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009551/0.3401, allocations: 5.189 MB / 465.8 MB, free: 3.402 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/0.3424, allocations: 0.9028 MB / 466.7 MB, free: 2.477 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.3435, allocations: 477.8 kB / 467.1 MB, free: 2.004 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.289e-05/0.3436, allocations: 13 kB / 467.1 MB, free: 1.992 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001478/0.3451, allocations: 0.8575 MB / 468 MB, free: 1.043 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 3.316e-06/0.3451, allocations: 7.938 kB / 468 MB, free: 1.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.03479/0.3799, allocations: 8.554 MB / 476.6 MB, free: 8.434 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001822/0.38, allocations: 299.7 kB / 476.9 MB, free: 8.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/0.3813, allocations: 0.8286 MB / 477.7 MB, free: 7.227 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001459/0.3815, allocations: 57.73 kB / 477.7 MB, free: 7.164 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006452/0.3821, allocations: 0.6839 MB / 478.4 MB, free: 6.469 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004232/0.3826, allocations: 436.3 kB / 478.8 MB, free: 6.039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004895/0.3831, allocations: 251.5 kB / 479.1 MB, free: 5.789 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002488/0.3833, allocations: 406.7 kB / 479.5 MB, free: 5.383 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002047/0.3853, allocations: 0.7965 MB / 480.3 MB, free: 4.586 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002414/0.3878, allocations: 1.319 MB / 481.6 MB, free: 3.105 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003864/0.3916, allocations: 1.611 MB / 483.2 MB, free: 1.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.839e-06/0.3916, allocations: 4 kB / 483.2 MB, free: 1.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005099/0.3967, allocations: 2.049 MB / 485.3 MB, free: 15.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.716e-05/0.3968, allocations: 8 kB / 485.3 MB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.3968, allocations: 8 kB / 485.3 MB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005026/0.3973, allocations: 214.4 kB / 485.5 MB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001697/0.399, allocations: 363.4 kB / 485.8 MB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004421/0.4034, allocations: 4.5 MB / 490.3 MB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.405, allocations: 160 kB / 490.5 MB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.4051, allocations: 51.98 kB / 490.6 MB, free: 9.688 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: 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 (170): * Single equations (assignments): 167 * 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.0007499/0.4059, allocations: 391.4 kB / 490.9 MB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002132/0.4061, allocations: 111.3 kB / 491 MB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002825/0.4064, allocations: 142.1 kB / 491.2 MB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.4064, allocations: 12.14 kB / 491.2 MB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.4064, allocations: 4 kB / 491.2 MB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.4064, allocations: 11.91 kB / 491.2 MB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008536/0.4149, allocations: 4.003 MB / 495.2 MB, free: 4.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-05/0.4149, allocations: 12 kB / 495.2 MB, free: 4.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.4161, allocations: 260.3 kB / 495.5 MB, free: 4.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005788/0.4167, allocations: 273.5 kB / 495.7 MB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.85e-05/0.4168, allocations: 43.98 kB / 495.8 MB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002005/0.4188, allocations: 2.09 MB / 497.9 MB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.234e-05/0.4188, allocations: 11.94 kB / 497.9 MB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005479/0.4243, allocations: 2.421 MB / 0.4886 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008141/0.4251, allocations: 247.2 kB / 0.4888 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002185/0.4253, allocations: 51.94 kB / 0.4889 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.4264, allocations: 139.8 kB / 0.489 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003765/0.4268, allocations: 176.2 kB / 0.4892 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.902e-05/0.4269, allocations: 43.98 kB / 0.4892 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008772/0.4278, allocations: 0.5537 MB / 0.4898 GB, free: 14.24 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4278, allocations: 0 / 0.4898 GB, free: 14.24 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001373/0.4292, allocations: 343.9 kB / 0.4901 GB, free: 13.91 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: 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007156/0.4363, allocations: 3.316 MB / 0.4933 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004816/0.4411, allocations: 1.899 MB / 0.4952 GB, free: 8.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.897e-05/0.4411, allocations: 4 kB / 0.4952 GB, free: 8.656 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002477/0.4436, allocations: 1.012 MB / 0.4962 GB, free: 7.633 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001413/0.445, allocations: 203.1 kB / 0.4964 GB, free: 7.434 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02475/0.4698, allocations: 12.2 MB / 0.5083 GB, free: 10.67 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007887/0.4706, allocations: 0.5942 MB / 0.5089 GB, free: 10.04 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008531/0.4714, allocations: 172.4 kB / 0.509 GB, free: 9.867 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009348/0.4724, allocations: 0.5227 MB / 0.5095 GB, free: 9.344 MB / 430.1 MB Notification: Performance of SimCode: time 1.011e-06/0.4724, allocations: 0 / 0.5095 GB, free: 9.344 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2787/0.7511, allocations: 31.36 MB / 0.5402 GB, free: 106.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.2/14.95, allocations: 13.23 kB / 0.5402 GB, free: 106.5 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.748296526726335] 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.147077201865613 15.165000702 14.845191924 Calling exit ...