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.001345/0.001345, allocations: 116.5 kB / 18.5 MB, free: 4.434 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.001625/0.001625, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.446/1.446, allocations: 230.5 MB / 254.7 MB, free: 15 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.002153/0.002153, allocations: 63.89 kB / 373.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1055, allocations: 53.32 MB / 426.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.2047/0.3103, allocations: 9.422 MB / 436.3 MB, free: 6.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004748/0.315, allocations: 2.449 MB / 438.8 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00142/0.3164, allocations: 31.5 kB / 438.8 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001085/0.3175, allocations: 344.2 kB / 439.1 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001959/0.3195, allocations: 0.5042 MB / 439.6 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001613/0.3211, allocations: 0.6562 MB / 440.3 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003365/0.3245, allocations: 2.365 MB / 442.7 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001394/0.3258, allocations: 0.7494 MB / 443.4 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001606/0.3275, allocations: 0.8709 MB / 444.3 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001641/0.3291, allocations: 0.9038 MB / 445.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000742/0.3298, allocations: 278 kB / 445.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00106/0.3309, allocations: 328.7 kB / 445.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006496/0.3315, allocations: 0.508 MB / 446.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001899/0.3334, allocations: 0.9898 MB / 447.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005154/0.3386, allocations: 3.406 MB / 450.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/0.3386, allocations: 7.547 kB / 450.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.3386, allocations: 0 / 450.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001116/0.3387, allocations: 0 / 450.7 MB, free: 15.57 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.005698/0.3444, allocations: 1.991 MB / 452.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.3445, allocations: 12.27 kB / 452.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003651/0.3448, allocations: 226.4 kB / 452.9 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004543/0.3453, allocations: 189.6 kB / 453.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.3471, allocations: 0.854 MB / 453.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003222/0.3474, allocations: 244.5 kB / 454.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003015/0.3477, allocations: 171.3 kB / 454.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003589/0.3513, allocations: 1.665 MB / 456 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.047e-05/0.3513, allocations: 6.703 kB / 456 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001671/0.3515, allocations: 62.41 kB / 456.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.154e-05/0.3515, allocations: 36.53 kB / 456.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003594/0.3551, allocations: 1.533 MB / 457.7 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01015/0.3653, allocations: 5.841 MB / 463.5 MB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.3672, allocations: 0.882 MB / 464.4 MB, free: 6.324 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009966/0.3682, allocations: 480.8 kB / 464.8 MB, free: 6.074 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.894e-05/0.3683, allocations: 10.19 kB / 464.9 MB, free: 6.074 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001225/0.3695, allocations: 0.6404 MB / 465.5 MB, free: 5.625 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.605e-06/0.3695, allocations: 4 kB / 465.5 MB, free: 5.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03382/0.4033, allocations: 8.819 MB / 474.3 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001809/0.4035, allocations: 305.5 kB / 474.6 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.4049, allocations: 0.806 MB / 475.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002161/0.4051, allocations: 53.7 kB / 475.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000612/0.4058, allocations: 0.676 MB / 476.2 MB, free: 15.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000467/0.4062, allocations: 440.3 kB / 476.6 MB, free: 14.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005124/0.4067, allocations: 243.5 kB / 476.8 MB, free: 14.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002311/0.407, allocations: 406.7 kB / 477.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001971/0.4089, allocations: 0.7926 MB / 478 MB, free: 13.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002265/0.4112, allocations: 1.103 MB / 479.1 MB, free: 12.13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003631/0.4148, allocations: 1.607 MB / 480.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.225e-06/0.4148, allocations: 0 / 480.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004933/0.4198, allocations: 2.038 MB / 482.8 MB, free: 8.375 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.4198, allocations: 8 kB / 482.8 MB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.4198, allocations: 8 kB / 482.8 MB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005056/0.4203, allocations: 214.1 kB / 483 MB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/0.422, allocations: 359.4 kB / 483.3 MB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004605/0.4267, allocations: 4.834 MB / 488.2 MB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001871/0.4285, allocations: 171.9 kB / 488.3 MB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002155/0.4287, allocations: 51.94 kB / 488.4 MB, free: 2.32 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.0009282/0.4297, allocations: 387.1 kB / 488.8 MB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000298/0.43, allocations: 111.3 kB / 488.9 MB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003109/0.4303, allocations: 138.2 kB / 489 MB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.737e-05/0.4303, allocations: 17.11 kB / 489 MB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-05/0.4303, allocations: 0 / 489 MB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.4303, allocations: 11.97 kB / 489 MB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00885/0.4392, allocations: 4.35 MB / 493.4 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/0.4392, allocations: 8.875 kB / 493.4 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001188/0.4404, allocations: 263.6 kB / 493.7 MB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005842/0.441, allocations: 277.8 kB / 493.9 MB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001383/0.4411, allocations: 39.98 kB / 494 MB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002042/0.4431, allocations: 2.195 MB / 496.2 MB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.287e-05/0.4432, allocations: 20.06 kB / 496.2 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005205/0.4484, allocations: 2.393 MB / 498.6 MB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008924/0.4493, allocations: 332.3 kB / 498.9 MB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002936/0.4495, allocations: 47.94 kB / 498.9 MB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/0.4507, allocations: 143.8 kB / 499.1 MB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003866/0.4511, allocations: 168.2 kB / 499.2 MB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.814e-05/0.4512, allocations: 44 kB / 499.3 MB, free: 6.875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008872/0.4521, allocations: 0.542 MB / 499.8 MB, free: 6.336 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4521, allocations: 0 / 499.8 MB, free: 6.336 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001571/0.4536, allocations: 343.9 kB / 0.4884 GB, free: 6 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.006679/0.4603, allocations: 3.253 MB / 0.4916 GB, free: 2.738 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004532/0.4649, allocations: 1.883 MB / 0.4935 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/0.4649, allocations: 4 kB / 0.4935 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002334/0.4672, allocations: 1.012 MB / 0.4945 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.4688, allocations: 211.6 kB / 0.4947 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02458/0.4934, allocations: 12.06 MB / 0.5064 GB, free: 2.969 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009886/0.4944, allocations: 1.182 MB / 0.5076 GB, free: 1.754 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009413/0.4953, allocations: 168.4 kB / 0.5077 GB, free: 1.586 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008807/0.4962, allocations: 0.5227 MB / 0.5083 GB, free: 1.062 MB / 414.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4962, allocations: 0 / 0.5083 GB, free: 1.062 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07573/0.5719, allocations: 30.08 MB / 0.5376 GB, free: 3.273 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.17/14.74, allocations: 7.234 kB / 0.5376 GB, free: 3.27 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --stepSize=0.000340136 --timeout=50 --tolerance=1e-06 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.183293948415667] 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.901433988008648 14.915325991 14.573607827 Calling exit ...