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.001548/0.001548, allocations: 121.8 kB / 18.51 MB, free: 4.547 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.001894/0.001894, allocations: 211.3 kB / 21.45 MB, free: 1.602 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.444/1.444, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.001994/0.001994, allocations: 71.83 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1043, allocations: 53.33 MB / 427 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.2094/0.3137, allocations: 9.424 MB / 436.4 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005038/0.3188, allocations: 2.442 MB / 438.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001754/0.3205, allocations: 35.22 kB / 438.9 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001197/0.3217, allocations: 347.6 kB / 439.3 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002297/0.324, allocations: 0.512 MB / 439.8 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00165/0.3257, allocations: 0.6517 MB / 440.4 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003816/0.3295, allocations: 2.362 MB / 442.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001528/0.331, allocations: 0.7505 MB / 443.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001931/0.333, allocations: 0.8838 MB / 444.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001722/0.3347, allocations: 0.9097 MB / 445.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006383/0.3353, allocations: 277.7 kB / 445.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008556/0.3362, allocations: 332.7 kB / 445.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004696/0.3366, allocations: 0.5046 MB / 446.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001217/0.3379, allocations: 0.9859 MB / 447.4 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00514/0.343, allocations: 3.416 MB / 450.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.343, allocations: 0 / 450.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.343, allocations: 0 / 450.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000117/0.3431, allocations: 0 / 450.8 MB, free: 15.52 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.005929/0.3491, allocations: 1.99 MB / 452.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.3491, allocations: 8.469 kB / 452.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004421/0.3496, allocations: 229 kB / 453 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005709/0.3501, allocations: 190.7 kB / 453.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002023/0.3521, allocations: 0.8604 MB / 454.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003821/0.3525, allocations: 237.5 kB / 454.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003735/0.3529, allocations: 163.3 kB / 454.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00422/0.3571, allocations: 1.672 MB / 456.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.048e-05/0.3572, allocations: 14.16 kB / 456.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000183/0.3574, allocations: 61.75 kB / 456.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.622e-05/0.3574, allocations: 38.84 kB / 456.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004022/0.3614, allocations: 1.528 MB / 457.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01081/0.3722, allocations: 5.851 MB / 463.6 MB, free: 6.762 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002079/0.3743, allocations: 0.8701 MB / 464.5 MB, free: 6.289 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001062/0.3754, allocations: 479.5 kB / 465 MB, free: 6.039 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.556e-05/0.3755, allocations: 13.27 kB / 465 MB, free: 6.035 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00136/0.3768, allocations: 0.6438 MB / 465.6 MB, free: 5.578 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 4.198e-06/0.3768, allocations: 2.828 kB / 465.6 MB, free: 5.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03567/0.4125, allocations: 8.821 MB / 474.5 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001891/0.4127, allocations: 309.4 kB / 474.8 MB, free: 460 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001385/0.4141, allocations: 0.8019 MB / 475.6 MB, free: 15.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002226/0.4143, allocations: 53.7 kB / 475.6 MB, free: 15.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006444/0.4149, allocations: 0.68 MB / 476.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004626/0.4154, allocations: 436.3 kB / 476.7 MB, free: 14.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005193/0.4159, allocations: 247.5 kB / 477 MB, free: 14.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002303/0.4162, allocations: 410.8 kB / 477.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002074/0.4182, allocations: 0.7848 MB / 478.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002365/0.4206, allocations: 1.111 MB / 479.3 MB, free: 12.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00391/0.4245, allocations: 1.6 MB / 480.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.4245, allocations: 4 kB / 480.9 MB, free: 10.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005236/0.4297, allocations: 2.03 MB / 482.9 MB, free: 8.336 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/0.4298, allocations: 8.625 kB / 482.9 MB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.4298, allocations: 12.03 kB / 482.9 MB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000517/0.4303, allocations: 218.5 kB / 483.1 MB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/0.4321, allocations: 355.5 kB / 483.5 MB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004735/0.4368, allocations: 4.84 MB / 488.3 MB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001828/0.4386, allocations: 168.8 kB / 488.5 MB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001971/0.4388, allocations: 48 kB / 488.5 MB, free: 2.277 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.0009557/0.4398, allocations: 399.1 kB / 488.9 MB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003034/0.4401, allocations: 111.3 kB / 489 MB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003497/0.4405, allocations: 134.1 kB / 489.2 MB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.4405, allocations: 12 kB / 489.2 MB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.133e-05/0.4405, allocations: 3.984 kB / 489.2 MB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.4405, allocations: 7.984 kB / 489.2 MB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008973/0.4495, allocations: 4.338 MB / 493.5 MB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.628e-05/0.4495, allocations: 8 kB / 493.5 MB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.4507, allocations: 272.2 kB / 493.8 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006/0.4513, allocations: 277.5 kB / 494.1 MB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001309/0.4514, allocations: 43.98 kB / 494.1 MB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002026/0.4534, allocations: 2.192 MB / 496.3 MB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.556e-05/0.4534, allocations: 23.86 kB / 496.3 MB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005304/0.4587, allocations: 2.397 MB / 498.7 MB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007653/0.4595, allocations: 332.3 kB / 499 MB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000234/0.4597, allocations: 43.94 kB / 499.1 MB, free: 7.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.4609, allocations: 139.8 kB / 499.2 MB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003955/0.4613, allocations: 168.2 kB / 499.4 MB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.739e-05/0.4614, allocations: 51.98 kB / 499.4 MB, free: 6.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009018/0.4623, allocations: 0.542 MB / 500 MB, free: 6.281 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4623, allocations: 0 / 500 MB, free: 6.281 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001522/0.4638, allocations: 339.9 kB / 0.4886 GB, free: 5.949 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.006827/0.4706, allocations: 3.253 MB / 0.4918 GB, free: 2.684 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004435/0.4751, allocations: 1.875 MB / 0.4936 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/0.4751, allocations: 8.188 kB / 0.4936 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002338/0.4774, allocations: 1.008 MB / 0.4946 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/0.4789, allocations: 203.1 kB / 0.4948 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02424/0.5031, allocations: 12.06 MB / 0.5066 GB, free: 2.922 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/0.5041, allocations: 1.186 MB / 0.5077 GB, free: 1.703 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009626/0.5051, allocations: 176.4 kB / 0.5079 GB, free: 1.527 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009573/0.506, allocations: 0.5149 MB / 0.5084 GB, free: 1.012 MB / 414.1 MB Notification: Performance of SimCode: time 1.352e-06/0.506, allocations: 4 kB / 0.5084 GB, free: 1.008 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07859/0.5846, allocations: 30.08 MB / 0.5378 GB, free: 3.223 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.57/15.15, allocations: 3.984 kB / 0.5378 GB, free: 3.219 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.692481114063412] 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.318364994134754 15.334390389 14.988367893 Calling exit ...