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.001366/0.001366, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001566/0.001566, allocations: 214.8 kB / 24.47 MB, free: 3.777 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.33/1.33, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 179] 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="me",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="me",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.001903/0.001903, allocations: 55.91 kB / 347.2 MB, free: 9.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2319, allocations: 49.16 MB / 396.4 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.008074/0.24, allocations: 8.009 MB / 404.4 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004939/0.2449, allocations: 2.279 MB / 406.7 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001732/0.2467, allocations: 35.19 kB / 406.7 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008865/0.2476, allocations: 318.9 kB / 407 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001584/0.2491, allocations: 0.5042 MB / 407.5 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001206/0.2503, allocations: 0.6537 MB / 408.2 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002581/0.2529, allocations: 2.347 MB / 410.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001178/0.2541, allocations: 0.6906 MB / 411.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001313/0.2554, allocations: 0.8415 MB / 412 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001265/0.2567, allocations: 0.7831 MB / 412.8 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003307/0.257, allocations: 276.4 kB / 413.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006132/0.2576, allocations: 337.5 kB / 413.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004381/0.2581, allocations: 0.5067 MB / 413.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008199/0.2589, allocations: 0.7939 MB / 414.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003334/0.2622, allocations: 3.386 MB / 418.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2622, allocations: 3.938 kB / 418.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2622, allocations: 0 / 418.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.326e-05/0.2623, allocations: 0 / 418.1 MB, free: 10.53 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.004163/0.2665, allocations: 1.899 MB / 420 MB, free: 9.168 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.2665, allocations: 13.14 kB / 420 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003164/0.2668, allocations: 227.8 kB / 420.2 MB, free: 8.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004575/0.2673, allocations: 191 kB / 420.4 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001546/0.2688, allocations: 0.778 MB / 421.2 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004134/0.2692, allocations: 446.1 kB / 421.6 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002536/0.2695, allocations: 166.1 kB / 421.8 MB, free: 7.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003325/0.2728, allocations: 1.89 MB / 423.7 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.218e-05/0.2729, allocations: 11.61 kB / 423.7 MB, free: 6.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.273, allocations: 60.59 kB / 423.8 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.788e-05/0.273, allocations: 36.91 kB / 423.8 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003386/0.2764, allocations: 1.563 MB / 425.4 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009529/0.2859, allocations: 5.185 MB / 430.5 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/0.2881, allocations: 0.9062 MB / 431.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/0.2892, allocations: 0.5085 MB / 432 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.534e-05/0.2892, allocations: 12.94 kB / 432 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001419/0.2907, allocations: 0.8692 MB / 432.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.675e-06/0.2907, allocations: 0 / 432.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=121): time 0.03406/0.3247, allocations: 8.693 MB / 441.5 MB, free: 5.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002266/0.325, allocations: 295.7 kB / 441.8 MB, free: 4.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001267/0.3262, allocations: 0.8245 MB / 442.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001827/0.3264, allocations: 53.7 kB / 442.7 MB, free: 3.996 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006111/0.327, allocations: 0.6722 MB / 443.4 MB, free: 3.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004478/0.3275, allocations: 432.3 kB / 443.8 MB, free: 2.887 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005049/0.328, allocations: 251.5 kB / 444 MB, free: 2.633 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002353/0.3282, allocations: 414.6 kB / 444.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001982/0.3302, allocations: 0.8121 MB / 445.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002359/0.3325, allocations: 1.343 MB / 446.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003698/0.3362, allocations: 1.654 MB / 448.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.3362, allocations: 4 kB / 448.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004835/0.3411, allocations: 2.088 MB / 450.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.3411, allocations: 8 kB / 450.4 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.3411, allocations: 4 kB / 450.4 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004578/0.3416, allocations: 182.5 kB / 450.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001634/0.3432, allocations: 355.4 kB / 450.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0041/0.3473, allocations: 4.473 MB / 455.4 MB, free: 6.672 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/0.3489, allocations: 168 kB / 455.5 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.349, allocations: 48 kB / 455.6 MB, free: 6.461 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: 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 (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.0007049/0.3497, allocations: 387.5 kB / 455.9 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.3499, allocations: 115.2 kB / 456.1 MB, free: 5.957 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002679/0.3502, allocations: 134 kB / 456.2 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/0.3502, allocations: 12 kB / 456.2 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.3502, allocations: 4 kB / 456.2 MB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.3502, allocations: 7.969 kB / 456.2 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00819/0.3584, allocations: 4.074 MB / 460.3 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/0.3584, allocations: 15.88 kB / 460.3 MB, free: 1.531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.3596, allocations: 259.6 kB / 460.6 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005885/0.3602, allocations: 361.8 kB / 460.9 MB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.154e-05/0.3603, allocations: 39.98 kB / 460.9 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001894/0.3622, allocations: 2.176 MB / 463.1 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/0.3622, allocations: 11.94 kB / 463.1 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005245/0.3674, allocations: 2.514 MB / 465.7 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000689/0.3681, allocations: 259.2 kB / 465.9 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/0.3683, allocations: 47.98 kB / 466 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.3693, allocations: 136 kB / 466.1 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003437/0.3697, allocations: 180.1 kB / 466.3 MB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.671e-05/0.3698, allocations: 43.98 kB / 466.3 MB, free: 11.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008243/0.3706, allocations: 0.5459 MB / 466.8 MB, free: 10.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3706, allocations: 0 / 466.8 MB, free: 10.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001224/0.3718, allocations: 344 kB / 467.2 MB, free: 10.36 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: 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005609/0.3774, allocations: 3.139 MB / 470.3 MB, free: 7.059 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004368/0.3818, allocations: 1.945 MB / 472.3 MB, free: 5.074 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/0.3818, allocations: 0 / 472.3 MB, free: 5.074 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002346/0.3842, allocations: 1.036 MB / 473.3 MB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.3855, allocations: 187.3 kB / 473.5 MB, free: 3.852 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02377/0.4092, allocations: 12.34 MB / 485.8 MB, free: 6.934 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000699/0.4099, allocations: 0.5942 MB / 486.4 MB, free: 6.309 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000812/0.4107, allocations: 172.3 kB / 486.6 MB, free: 6.137 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008798/0.4116, allocations: 0.511 MB / 487.1 MB, free: 5.625 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4116, allocations: 0 / 487.1 MB, free: 5.625 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07533/0.4869, allocations: 30.85 MB / 0.5058 GB, free: 6.641 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/15.09, allocations: 15.88 kB / 0.5058 GB, free: 6.625 MB / 430.1 MB " [Timeout remaining time 645] (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: 18.21522706421092] 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.244330384768546 15.269743891 15.002745926 Calling exit ...