Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 181.7 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_0_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_0_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.001551/0.001551, allocations: 51.92 kB / 370.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2242, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.0115/0.2357, allocations: 9.349 MB / 432 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004511/0.2402, allocations: 2.298 MB / 434.3 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001271/0.2415, allocations: 39.75 kB / 434.3 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.2426, allocations: 325 kB / 434.6 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001646/0.2442, allocations: 0.4958 MB / 435.1 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001262/0.2455, allocations: 0.6594 MB / 435.8 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002583/0.2481, allocations: 2.352 MB / 438.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00116/0.2492, allocations: 0.7499 MB / 438.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001111/0.2503, allocations: 0.8724 MB / 439.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001071/0.2514, allocations: 0.8988 MB / 440.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003104/0.2517, allocations: 272 kB / 440.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004331/0.2522, allocations: 331.9 kB / 441.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004509/0.2526, allocations: 0.5065 MB / 441.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009154/0.2535, allocations: 0.9687 MB / 442.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003387/0.2569, allocations: 3.363 MB / 446.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2569, allocations: 0 / 446.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2569, allocations: 0 / 446.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.984e-05/0.257, allocations: 4 kB / 446.1 MB, free: 6.988 MB / 350.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.003496/0.2605, allocations: 1.886 MB / 448 MB, free: 5.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.2605, allocations: 8.031 kB / 448 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002688/0.2608, allocations: 228 kB / 448.2 MB, free: 4.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002717/0.261, allocations: 187.8 kB / 448.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001266/0.2623, allocations: 0.7885 MB / 449.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003855/0.2627, allocations: 446.1 kB / 449.6 MB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000227/0.2629, allocations: 164 kB / 449.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002961/0.2659, allocations: 1.674 MB / 451.5 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.894e-05/0.2659, allocations: 11.98 kB / 451.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001301/0.266, allocations: 60 kB / 451.5 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.751e-05/0.2661, allocations: 40 kB / 451.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003226/0.2693, allocations: 1.566 MB / 453.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008982/0.2783, allocations: 5.708 MB / 458.8 MB, free: 9.848 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001931/0.2802, allocations: 0.8814 MB / 459.7 MB, free: 8.957 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.2812, allocations: 0.4924 MB / 460.2 MB, free: 8.457 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.664e-05/0.2813, allocations: 9 kB / 460.2 MB, free: 8.445 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001283/0.2826, allocations: 0.6606 MB / 460.9 MB, free: 7.746 MB / 366.1 MB Notification: Performance of pre-optimization done (n=90): time 3.086e-06/0.2826, allocations: 0 / 460.9 MB, free: 7.746 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.03183/0.3144, allocations: 8.657 MB / 469.5 MB, free: 15.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001747/0.3146, allocations: 303.8 kB / 469.8 MB, free: 14.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/0.3157, allocations: 0.7934 MB / 470.6 MB, free: 13.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.3158, allocations: 53.7 kB / 470.7 MB, free: 13.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005726/0.3164, allocations: 0.68 MB / 471.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003705/0.3168, allocations: 428.3 kB / 471.8 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004592/0.3172, allocations: 247.5 kB / 472 MB, free: 12.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002157/0.3174, allocations: 402.7 kB / 472.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001878/0.3193, allocations: 0.8121 MB / 473.2 MB, free: 11.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002217/0.3215, allocations: 1.126 MB / 474.4 MB, free: 9.988 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003535/0.3251, allocations: 1.654 MB / 476 MB, free: 8.242 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3251, allocations: 4 kB / 476 MB, free: 8.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004486/0.3295, allocations: 2.077 MB / 478.1 MB, free: 6.145 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.3296, allocations: 8 kB / 478.1 MB, free: 6.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.3296, allocations: 8 kB / 478.1 MB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004102/0.33, allocations: 190.4 kB / 478.3 MB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/0.3316, allocations: 347.5 kB / 478.6 MB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004203/0.3358, allocations: 4.505 MB / 483.1 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.3372, allocations: 167.9 kB / 483.3 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.3373, allocations: 52 kB / 483.4 MB, free: 0.5273 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 (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.0006623/0.3379, allocations: 381 kB / 483.7 MB, free: 148 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.3381, allocations: 119.2 kB / 483.8 MB, free: 28 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002768/0.3384, allocations: 134 kB / 484 MB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.196e-06/0.3384, allocations: 12 kB / 484 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3384, allocations: 4 kB / 484 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.3384, allocations: 3.984 kB / 484 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00762/0.346, allocations: 4.385 MB / 488.4 MB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/0.346, allocations: 8 kB / 488.4 MB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.3471, allocations: 264 kB / 488.6 MB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005589/0.3477, allocations: 369.5 kB / 489 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-05/0.3478, allocations: 35.98 kB / 489 MB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001912/0.3497, allocations: 2.168 MB / 491.2 MB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.167e-05/0.3497, allocations: 20 kB / 491.2 MB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004754/0.3544, allocations: 2.498 MB / 493.7 MB, free: 5.668 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005229/0.355, allocations: 251.2 kB / 494 MB, free: 5.422 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001661/0.3551, allocations: 47.98 kB / 494 MB, free: 5.375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009834/0.3561, allocations: 139.8 kB / 494.2 MB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003138/0.3564, allocations: 172.2 kB / 494.3 MB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.106e-05/0.3565, allocations: 43.98 kB / 494.4 MB, free: 5.027 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007404/0.3573, allocations: 0.5303 MB / 494.9 MB, free: 4.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3573, allocations: 0 / 494.9 MB, free: 4.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001132/0.3584, allocations: 348 kB / 495.2 MB, free: 4.16 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005262/0.3636, allocations: 3.113 MB / 498.4 MB, free: 0.8867 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003999/0.3676, allocations: 1.917 MB / 0.4885 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.3677, allocations: 1.812 kB / 0.4885 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002127/0.3698, allocations: 1.031 MB / 0.4896 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.3709, allocations: 190.8 kB / 0.4897 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02167/0.3926, allocations: 12.21 MB / 0.5017 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009983/0.3935, allocations: 1.186 MB / 0.5028 GB, free: 15.71 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007737/0.3943, allocations: 168.3 kB / 0.503 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008367/0.3952, allocations: 0.511 MB / 0.5035 GB, free: 15.04 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3952, allocations: 0 / 0.5035 GB, free: 15.04 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07334/0.4685, allocations: 30.71 MB / 0.5335 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.6/15.07, allocations: 0 / 0.5335 GB, free: 0.5898 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --stepSize=0.000340136 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.828195198904723] 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.396764072123915 15.408715198 15.149377533000001 Calling exit ...