Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001535/0.001535, allocations: 121.4 kB / 19.17 MB, free: 3.898 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.001436/0.001436, allocations: 203.9 kB / 22.12 MB, free: 0.9609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.348/1.348, allocations: 207.6 MB / 232.5 MB, free: 11.52 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001693/0.001693, allocations: 59.91 kB / 343 MB, free: 12.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2496, allocations: 49.11 MB / 392.1 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.008111/0.2577, allocations: 9.227 MB / 401.3 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004457/0.2621, allocations: 2.324 MB / 403.7 MB, free: 328 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001039/0.2632, allocations: 40.19 kB / 403.7 MB, free: 312 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007045/0.2639, allocations: 322 kB / 404 MB, free: 124 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001249/0.2651, allocations: 0.4968 MB / 404.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001339/0.2665, allocations: 0.6523 MB / 405.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003116/0.2696, allocations: 2.343 MB / 407.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.2709, allocations: 0.7462 MB / 408.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001548/0.2724, allocations: 0.8723 MB / 409.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001277/0.2737, allocations: 0.8941 MB / 410 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004021/0.2741, allocations: 274.9 kB / 410.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005819/0.2747, allocations: 328.2 kB / 410.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005273/0.2752, allocations: 0.5003 MB / 411.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001046/0.2762, allocations: 0.9726 MB / 412.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003885/0.2801, allocations: 3.358 MB / 415.5 MB, free: 9.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2801, allocations: 0 / 415.5 MB, free: 9.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2801, allocations: 0 / 415.5 MB, free: 9.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.76e-05/0.2802, allocations: 1.156 kB / 415.5 MB, free: 9.059 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.004197/0.2844, allocations: 1.966 MB / 417.4 MB, free: 7.609 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.2844, allocations: 9.969 kB / 417.4 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.694e-05/0.2845, allocations: 42.41 kB / 417.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002887/0.2848, allocations: 228.5 kB / 417.7 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003004/0.2851, allocations: 184.6 kB / 417.9 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001307/0.2864, allocations: 0.8517 MB / 418.7 MB, free: 6.594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002769/0.2866, allocations: 233.2 kB / 419 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002315/0.2869, allocations: 157.5 kB / 419.1 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003153/0.29, allocations: 1.691 MB / 420.8 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.626e-05/0.2901, allocations: 7.234 kB / 420.8 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000144/0.2902, allocations: 61.12 kB / 420.9 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.511e-05/0.2903, allocations: 36.78 kB / 420.9 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003355/0.2936, allocations: 1.563 MB / 422.5 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009118/0.3027, allocations: 5.839 MB / 428.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002003/0.3047, allocations: 0.8904 MB / 429.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.3057, allocations: 0.4887 MB / 429.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.715e-05/0.3058, allocations: 9 kB / 429.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001252/0.3071, allocations: 0.6606 MB / 430.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.234e-06/0.3071, allocations: 3.938 kB / 430.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03419/0.3413, allocations: 8.961 MB / 439.3 MB, free: 4.496 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001811/0.3414, allocations: 295.7 kB / 439.6 MB, free: 4.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/0.3426, allocations: 0.8012 MB / 440.4 MB, free: 3.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001291/0.3427, allocations: 57.69 kB / 440.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005709/0.3433, allocations: 0.6761 MB / 441.1 MB, free: 2.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003867/0.3437, allocations: 424.4 kB / 441.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005053/0.3442, allocations: 247.5 kB / 441.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000213/0.3444, allocations: 406.7 kB / 442.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001963/0.3464, allocations: 0.8082 MB / 443 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002271/0.3487, allocations: 1.138 MB / 444.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003733/0.3524, allocations: 1.646 MB / 445.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/0.3524, allocations: 4 kB / 445.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004859/0.3573, allocations: 2.077 MB / 447.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.3573, allocations: 8 kB / 447.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.3573, allocations: 4 kB / 447.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004651/0.3578, allocations: 182.5 kB / 448.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001676/0.3594, allocations: 351.5 kB / 448.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004555/0.364, allocations: 4.819 MB / 453.2 MB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002021/0.366, allocations: 167.8 kB / 453.4 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.3661, allocations: 55.92 kB / 453.4 MB, free: 5.609 MB / 366.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 (168): * Single equations (assignments): 165 * 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.0009437/0.3671, allocations: 387.2 kB / 453.8 MB, free: 5.223 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000221/0.3673, allocations: 115.2 kB / 453.9 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003326/0.3676, allocations: 134 kB / 454.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.188e-05/0.3676, allocations: 12 kB / 454.1 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/0.3677, allocations: 4 kB / 454.1 MB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.3677, allocations: 3.984 kB / 454.1 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008058/0.3757, allocations: 4.405 MB / 458.5 MB, free: 364 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/0.3757, allocations: 8 kB / 458.5 MB, free: 356 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.3769, allocations: 263.6 kB / 458.7 MB, free: 92 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006088/0.3775, allocations: 369.8 kB / 459.1 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.89e-05/0.3776, allocations: 35.98 kB / 459.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00194/0.3795, allocations: 2.275 MB / 461.4 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.39e-05/0.3795, allocations: 20 kB / 461.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004922/0.3845, allocations: 2.491 MB / 463.9 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005676/0.385, allocations: 332.4 kB / 464.3 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.3852, allocations: 51.97 kB / 464.3 MB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.3862, allocations: 135.9 kB / 464.4 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003317/0.3866, allocations: 164.2 kB / 464.6 MB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.815e-05/0.3867, allocations: 51.98 kB / 464.6 MB, free: 9.844 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007633/0.3874, allocations: 0.5303 MB / 465.2 MB, free: 9.316 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3874, allocations: 3.938 kB / 465.2 MB, free: 9.312 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001245/0.3887, allocations: 347.9 kB / 465.5 MB, free: 8.973 MB / 382.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005392/0.3941, allocations: 3.112 MB / 468.6 MB, free: 5.703 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004194/0.3982, allocations: 1.917 MB / 470.5 MB, free: 3.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/0.3983, allocations: 4 kB / 470.6 MB, free: 3.746 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002193/0.4005, allocations: 1.025 MB / 471.6 MB, free: 2.711 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.4016, allocations: 207.8 kB / 471.8 MB, free: 2.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02165/0.4233, allocations: 12.21 MB / 484 MB, free: 5.734 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008852/0.4242, allocations: 1.182 MB / 485.2 MB, free: 4.523 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007435/0.4249, allocations: 168.4 kB / 485.3 MB, free: 4.355 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008291/0.4258, allocations: 0.511 MB / 485.8 MB, free: 3.844 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4258, allocations: 0 / 485.8 MB, free: 3.844 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0672/0.493, allocations: 29.66 MB / 0.5034 GB, free: 6.086 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14.04, allocations: 4 kB / 0.5034 GB, free: 6.082 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis_fmu --startTime=0 --stopTime=1.6 --stepSize=0.000340136 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.495640576002188] 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.201316781982314 14.215348047 13.932323104 Calling exit ...