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.0008602/0.0008602, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008054/0.0008054, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8703/0.8703, allocations: 173.3 MB / 200.4 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] 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 2.215e-06/2.215e-06, allocations: 0 / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.272e-05/2.494e-05, allocations: 5.516 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007141/0.007166, allocations: 8.091 MB / 326.5 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004014/0.01118, allocations: 2.251 MB / 328.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005816/0.01176, allocations: 31.88 kB / 328.8 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005616/0.01232, allocations: 329 kB / 329.1 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007833/0.01311, allocations: 0.5305 MB / 329.7 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008396/0.01395, allocations: 0.6669 MB / 330.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001337/0.01528, allocations: 2.422 MB / 332.8 MB, free: 7.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008951/0.01618, allocations: 0.6905 MB / 333.5 MB, free: 7.238 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008511/0.01703, allocations: 1.31 MB / 334.8 MB, free: 5.926 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005165/0.01754, allocations: 0.67 MB / 335.4 MB, free: 5.254 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001826/0.01773, allocations: 280 kB / 335.7 MB, free: 4.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003237/0.01805, allocations: 339.9 kB / 336 MB, free: 4.648 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002776/0.01833, allocations: 0.5141 MB / 336.6 MB, free: 4.133 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004034/0.01873, allocations: 0.6822 MB / 337.2 MB, free: 3.449 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002227/0.02096, allocations: 3.49 MB / 340.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.02096, allocations: 0 / 340.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.02097, allocations: 0 / 340.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.643e-05/0.02098, allocations: 0 / 340.7 MB, free: 15.94 MB / 314.7 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.002113/0.0231, allocations: 1.885 MB / 342.6 MB, free: 14.02 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.02314, allocations: 12.91 kB / 342.6 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001933/0.02333, allocations: 228 kB / 342.8 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002356/0.02356, allocations: 191.8 kB / 343 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008568/0.02442, allocations: 0.7853 MB / 343.8 MB, free: 12.78 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002366/0.02466, allocations: 446.3 kB / 344.3 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.02481, allocations: 156.3 kB / 344.4 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00201/0.02682, allocations: 1.899 MB / 346.3 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.616e-05/0.02685, allocations: 7.953 kB / 346.3 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.734e-05/0.02695, allocations: 64 kB / 346.4 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/0.02698, allocations: 40 kB / 346.4 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002175/0.02915, allocations: 1.562 MB / 348 MB, free: 8.469 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005275/0.03443, allocations: 5.178 MB / 353.2 MB, free: 3.078 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.03566, allocations: 0.9037 MB / 354.1 MB, free: 2.152 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007574/0.03642, allocations: 0.4933 MB / 354.5 MB, free: 1.652 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.571e-05/0.03647, allocations: 12.94 kB / 354.6 MB, free: 1.641 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000796/0.03726, allocations: 0.8654 MB / 355.4 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of pre-optimization done (n=91): time 2.014e-06/0.03726, allocations: 4 kB / 355.4 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.01712/0.05438, allocations: 8.705 MB / 364.1 MB, free: 7.922 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.05449, allocations: 299.8 kB / 364.4 MB, free: 7.559 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007427/0.05524, allocations: 0.8246 MB / 365.3 MB, free: 6.727 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.204e-05/0.05531, allocations: 53.7 kB / 365.3 MB, free: 6.668 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000355/0.05566, allocations: 0.6721 MB / 366 MB, free: 5.984 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000218/0.05588, allocations: 424.4 kB / 366.4 MB, free: 5.566 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002882/0.05617, allocations: 239.5 kB / 366.6 MB, free: 5.328 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.0563, allocations: 414.7 kB / 367 MB, free: 4.914 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001108/0.05741, allocations: 0.8198 MB / 367.9 MB, free: 4.094 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001432/0.05884, allocations: 1.335 MB / 369.2 MB, free: 2.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002045/0.06089, allocations: 1.67 MB / 370.9 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.06089, allocations: 4 kB / 370.9 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00263/0.06352, allocations: 2.081 MB / 372.9 MB, free: 14.72 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.06355, allocations: 10.97 kB / 373 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.06356, allocations: 12.02 kB / 373 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002771/0.06383, allocations: 186.5 kB / 373.1 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008183/0.06465, allocations: 355.4 kB / 373.5 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002664/0.06732, allocations: 4.465 MB / 378 MB, free: 9.359 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006957/0.06801, allocations: 167.9 kB / 378.1 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.11e-05/0.06808, allocations: 52 kB / 378.2 MB, free: 9.145 MB / 346.7 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.0004903/0.06857, allocations: 391.6 kB / 378.6 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.06868, allocations: 107.3 kB / 378.7 MB, free: 8.648 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.0688, allocations: 134 kB / 378.8 MB, free: 8.512 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.06881, allocations: 15.94 kB / 378.8 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.06882, allocations: 0 / 378.8 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.06882, allocations: 11.97 kB / 378.8 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004771/0.07359, allocations: 4.058 MB / 382.9 MB, free: 4.242 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.0736, allocations: 12 kB / 382.9 MB, free: 4.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005533/0.07415, allocations: 264.5 kB / 383.1 MB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003387/0.07449, allocations: 369.5 kB / 383.5 MB, free: 3.605 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.349e-05/0.07455, allocations: 36 kB / 383.5 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.07558, allocations: 2.164 MB / 385.7 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.07559, allocations: 11.94 kB / 385.7 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002795/0.07838, allocations: 2.51 MB / 388.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003319/0.07872, allocations: 255.2 kB / 388.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.558e-05/0.07881, allocations: 43.98 kB / 388.5 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005265/0.07934, allocations: 143.8 kB / 388.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/0.07956, allocations: 172.2 kB / 388.8 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-05/0.07961, allocations: 43.98 kB / 388.9 MB, free: 13.95 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004691/0.08008, allocations: 0.5459 MB / 389.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.08008, allocations: 0 / 389.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001029/0.08111, allocations: 351.9 kB / 389.8 MB, free: 13.07 MB / 362.7 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.003253/0.08436, allocations: 3.132 MB / 392.9 MB, free: 9.777 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002386/0.08675, allocations: 1.932 MB / 394.8 MB, free: 7.805 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.08675, allocations: 5.75 kB / 394.8 MB, free: 7.801 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001294/0.08804, allocations: 1.031 MB / 395.9 MB, free: 6.758 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006945/0.08874, allocations: 198.5 kB / 396.1 MB, free: 6.566 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/0.1028, allocations: 12.21 MB / 408.3 MB, free: 9.781 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004334/0.1032, allocations: 0.5903 MB / 408.9 MB, free: 9.156 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004777/0.1037, allocations: 172.3 kB / 409 MB, free: 8.984 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005501/0.1042, allocations: 0.5159 MB / 409.5 MB, free: 8.469 MB / 378.7 MB Notification: Performance of SimCode: time 1.313e-06/0.1042, allocations: 0 / 409.5 MB, free: 8.469 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04398/0.1482, allocations: 30.9 MB / 440.4 MB, free: 9.887 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.54/8.689, allocations: 0 / 440.4 MB, free: 9.887 MB / 410.7 MB " [Timeout remaining time 651] (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: 10.597985927015543] 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'] 8.793727816082537 8.935593654 8.912977055 Calling exit ...