Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001497/0.001497, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001706/0.001706, allocations: 207.7 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.375/1.375, allocations: 230.6 MB / 257.5 MB, free: 7.789 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+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_4_1_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_1_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.002031/0.002031, allocations: 47.92 kB / 377.7 MB, free: 2.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2491, allocations: 53.35 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01088/0.26, allocations: 8.217 MB / 439.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004926/0.2649, allocations: 2.399 MB / 441.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009533/0.2659, allocations: 35.88 kB / 441.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008509/0.2667, allocations: 344.9 kB / 442.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001211/0.2679, allocations: 0.5075 MB / 442.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.2691, allocations: 0.6554 MB / 443.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002501/0.2716, allocations: 2.372 MB / 445.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001174/0.2727, allocations: 0.7336 MB / 446.3 MB, free: 7.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001113/0.2738, allocations: 0.8568 MB / 447.2 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001137/0.275, allocations: 0.9144 MB / 448.1 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003215/0.2753, allocations: 280 kB / 448.4 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006012/0.2759, allocations: 351.9 kB / 448.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004813/0.2764, allocations: 0.5182 MB / 449.2 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007977/0.2772, allocations: 0.8015 MB / 450 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003394/0.2806, allocations: 3.443 MB / 453.5 MB, free: 96 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2806, allocations: 0 / 453.5 MB, free: 96 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2806, allocations: 0 / 453.5 MB, free: 96 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.409e-05/0.2806, allocations: 0 / 453.5 MB, free: 96 kB / 350.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.00394/0.2846, allocations: 1.932 MB / 455.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.2846, allocations: 8.031 kB / 455.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002909/0.2849, allocations: 224 kB / 455.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000399/0.2853, allocations: 195.8 kB / 455.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001444/0.2867, allocations: 0.7822 MB / 456.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004207/0.2872, allocations: 450.1 kB / 457.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002463/0.2874, allocations: 156 kB / 457.2 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00338/0.2908, allocations: 1.883 MB / 459.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.132e-05/0.2908, allocations: 11.94 kB / 459.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001426/0.291, allocations: 60 kB / 459.2 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.205e-05/0.291, allocations: 36 kB / 459.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003424/0.2944, allocations: 1.535 MB / 460.7 MB, free: 8.617 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009973/0.3044, allocations: 5.181 MB / 465.9 MB, free: 3.223 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002144/0.3066, allocations: 0.8988 MB / 466.8 MB, free: 2.301 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.3076, allocations: 493.8 kB / 467.3 MB, free: 1.816 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.122e-05/0.3077, allocations: 9 kB / 467.3 MB, free: 1.809 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001448/0.3091, allocations: 0.8536 MB / 468.2 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 2.565e-06/0.3091, allocations: 0 / 468.2 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.03516/0.3443, allocations: 8.559 MB / 476.7 MB, free: 8.254 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001884/0.3445, allocations: 299.7 kB / 477 MB, free: 7.891 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001278/0.3457, allocations: 0.8325 MB / 477.8 MB, free: 7.043 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/0.3459, allocations: 53.7 kB / 477.9 MB, free: 6.984 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006217/0.3465, allocations: 0.68 MB / 478.6 MB, free: 6.293 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004171/0.3469, allocations: 440.3 kB / 479 MB, free: 5.859 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005193/0.3474, allocations: 239.5 kB / 479.2 MB, free: 5.621 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000247/0.3477, allocations: 414.8 kB / 479.7 MB, free: 5.207 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001967/0.3496, allocations: 0.7926 MB / 480.4 MB, free: 4.414 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00237/0.352, allocations: 1.323 MB / 481.8 MB, free: 2.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003648/0.3557, allocations: 1.607 MB / 483.4 MB, free: 1.227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.3557, allocations: 8 kB / 483.4 MB, free: 1.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004903/0.3606, allocations: 2.049 MB / 485.4 MB, free: 15.15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.3606, allocations: 8 kB / 485.4 MB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/0.3606, allocations: 8 kB / 485.4 MB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004859/0.3611, allocations: 222.4 kB / 485.7 MB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001723/0.3628, allocations: 343.5 kB / 486 MB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004686/0.3675, allocations: 4.512 MB / 490.5 MB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00171/0.3692, allocations: 164 kB / 490.7 MB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/0.3694, allocations: 56 kB / 490.7 MB, free: 9.508 MB / 398.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 (170): * Single equations (assignments): 167 * 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.00079/0.3701, allocations: 395.3 kB / 491.1 MB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002424/0.3704, allocations: 111.3 kB / 491.2 MB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002776/0.3707, allocations: 138.1 kB / 491.4 MB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.3707, allocations: 12 kB / 491.4 MB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.3707, allocations: 4 kB / 491.4 MB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.3707, allocations: 7.969 kB / 491.4 MB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009023/0.3797, allocations: 4 MB / 495.4 MB, free: 4.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.058e-05/0.3797, allocations: 8 kB / 495.4 MB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001246/0.381, allocations: 263.6 kB / 495.6 MB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000579/0.3816, allocations: 285.7 kB / 495.9 MB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.3817, allocations: 36 kB / 496 MB, free: 4.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002047/0.3837, allocations: 2.09 MB / 498 MB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-05/0.3837, allocations: 16.06 kB / 498.1 MB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005045/0.3888, allocations: 2.405 MB / 0.4887 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000687/0.3895, allocations: 255.2 kB / 0.489 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002037/0.3897, allocations: 51.92 kB / 0.489 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.3908, allocations: 143.8 kB / 0.4892 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003515/0.3912, allocations: 176.2 kB / 0.4893 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.948e-05/0.3912, allocations: 43.98 kB / 0.4894 GB, free: 14.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008133/0.3921, allocations: 0.5537 MB / 0.4899 GB, free: 14.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3921, allocations: 0 / 0.4899 GB, free: 14.06 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001211/0.3933, allocations: 347.9 kB / 0.4903 GB, free: 13.72 MB / 414.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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006619/0.3999, allocations: 3.302 MB / 0.4935 GB, free: 10.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004335/0.4042, allocations: 1.906 MB / 0.4953 GB, free: 8.477 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/0.4042, allocations: 0 / 0.4953 GB, free: 8.477 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002361/0.4066, allocations: 1.013 MB / 0.4963 GB, free: 7.453 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00135/0.4079, allocations: 194.3 kB / 0.4965 GB, free: 7.266 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02456/0.4325, allocations: 12.21 MB / 0.5084 GB, free: 10.49 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008378/0.4333, allocations: 0.5903 MB / 0.509 GB, free: 9.863 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009605/0.4343, allocations: 176.4 kB / 0.5092 GB, free: 9.688 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009104/0.4352, allocations: 0.5149 MB / 0.5097 GB, free: 9.172 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4352, allocations: 3.938 kB / 0.5097 GB, free: 9.168 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2514/0.6866, allocations: 31.81 MB / 0.5408 GB, free: 105.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.79, allocations: 2.656 kB / 0.5408 GB, free: 105.6 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_4_1_0_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_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.46246820501983] 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'] 13.977691296982812 13.987038852 13.704171479 Calling exit ...