Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001871/0.001871, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002288/0.002288, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.429/1.429, allocations: 230.6 MB / 258.3 MB, free: 8.02 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_1_0-beta_om_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-beta_om_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 68.77 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2709, allocations: 53.37 MB / 431.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01246/0.2834, allocations: 9.471 MB / 441.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005527/0.2889, allocations: 2.454 MB / 443.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001088/0.29, allocations: 39.75 kB / 443.9 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009853/0.291, allocations: 348.9 kB / 444.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001435/0.2924, allocations: 0.5036 MB / 444.7 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.2937, allocations: 0.6593 MB / 445.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003132/0.2969, allocations: 2.368 MB / 447.8 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001353/0.2982, allocations: 0.7449 MB / 448.5 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001426/0.2997, allocations: 0.8919 MB / 449.4 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001175/0.3008, allocations: 0.9027 MB / 450.3 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003404/0.3012, allocations: 276 kB / 450.6 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004886/0.3017, allocations: 336 kB / 450.9 MB, free: 3.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004764/0.3021, allocations: 0.5104 MB / 451.4 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009983/0.3031, allocations: 0.9803 MB / 452.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003775/0.3069, allocations: 3.415 MB / 455.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.3069, allocations: 0 / 455.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3069, allocations: 0 / 455.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.881e-05/0.307, allocations: 4 kB / 455.8 MB, free: 14.83 MB / 366.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.004092/0.3111, allocations: 1.92 MB / 457.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.3111, allocations: 8.031 kB / 457.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002919/0.3114, allocations: 228 kB / 458 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003254/0.3117, allocations: 195.8 kB / 458.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001422/0.3132, allocations: 0.7769 MB / 458.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004339/0.3136, allocations: 450.1 kB / 459.4 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002539/0.3139, allocations: 163.9 kB / 459.5 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003207/0.3171, allocations: 1.671 MB / 461.2 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.384e-05/0.3171, allocations: 15.94 kB / 461.2 MB, free: 9.254 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001536/0.3173, allocations: 60 kB / 461.3 MB, free: 9.195 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-05/0.3173, allocations: 40 kB / 461.3 MB, free: 9.156 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003288/0.3206, allocations: 1.527 MB / 462.8 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009964/0.3306, allocations: 5.712 MB / 468.6 MB, free: 1.695 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002035/0.3326, allocations: 0.8819 MB / 469.4 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.3336, allocations: 477.1 kB / 469.9 MB, free: 336 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.633e-05/0.3337, allocations: 16.92 kB / 469.9 MB, free: 316 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001297/0.335, allocations: 0.645 MB / 470.6 MB, free: 15.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.885e-06/0.335, allocations: 0 / 470.6 MB, free: 15.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=121): time 0.03246/0.3674, allocations: 8.532 MB / 479.1 MB, free: 7.043 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001954/0.3676, allocations: 299.7 kB / 479.4 MB, free: 6.684 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001219/0.3689, allocations: 0.8053 MB / 480.2 MB, free: 5.863 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001434/0.369, allocations: 53.7 kB / 480.2 MB, free: 5.805 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006248/0.3696, allocations: 0.6839 MB / 480.9 MB, free: 5.109 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004188/0.37, allocations: 432.4 kB / 481.4 MB, free: 4.684 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005011/0.3705, allocations: 247.5 kB / 481.6 MB, free: 4.438 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002357/0.3708, allocations: 406.7 kB / 482 MB, free: 4.031 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00193/0.3727, allocations: 0.7887 MB / 482.8 MB, free: 3.242 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002245/0.375, allocations: 1.111 MB / 483.9 MB, free: 2.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003536/0.3785, allocations: 1.607 MB / 485.5 MB, free: 324 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.348e-06/0.3785, allocations: 4 kB / 485.5 MB, free: 320 kB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004724/0.3832, allocations: 2.034 MB / 487.5 MB, free: 14.26 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.982e-05/0.3833, allocations: 8 kB / 487.5 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.3833, allocations: 4 kB / 487.5 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005179/0.3838, allocations: 222.4 kB / 487.8 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001649/0.3854, allocations: 351.5 kB / 488.1 MB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004717/0.3902, allocations: 4.536 MB / 492.6 MB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/0.3917, allocations: 171.8 kB / 492.8 MB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001939/0.3919, allocations: 48 kB / 492.9 MB, free: 8.582 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: 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 (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.0009498/0.3929, allocations: 391.2 kB / 493.2 MB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003157/0.3932, allocations: 107.3 kB / 493.3 MB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003478/0.3936, allocations: 138.1 kB / 493.5 MB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.3936, allocations: 12 kB / 493.5 MB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.3936, allocations: 3.938 kB / 493.5 MB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.3936, allocations: 7.969 kB / 493.5 MB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008903/0.4025, allocations: 4.307 MB / 497.8 MB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-05/0.4025, allocations: 12 kB / 497.8 MB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/0.4037, allocations: 263.8 kB / 498.1 MB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005646/0.4042, allocations: 277.5 kB / 498.4 MB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.4043, allocations: 43.98 kB / 498.4 MB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002052/0.4064, allocations: 2.094 MB / 0.4888 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/0.4064, allocations: 11.94 kB / 0.4888 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00493/0.4113, allocations: 2.401 MB / 0.4911 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007133/0.412, allocations: 243.2 kB / 0.4913 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001909/0.4122, allocations: 55.92 kB / 0.4914 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/0.4132, allocations: 135.9 kB / 0.4915 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003498/0.4136, allocations: 180.2 kB / 0.4917 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.321e-05/0.4137, allocations: 43.98 kB / 0.4917 GB, free: 13.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008699/0.4145, allocations: 0.542 MB / 0.4923 GB, free: 12.87 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4145, allocations: 0 / 0.4923 GB, free: 12.87 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001291/0.4158, allocations: 343.9 kB / 0.4926 GB, free: 12.53 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: 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006465/0.4223, allocations: 3.245 MB / 0.4958 GB, free: 9.258 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004327/0.4266, allocations: 1.882 MB / 0.4976 GB, free: 7.336 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/0.4266, allocations: 4 kB / 0.4976 GB, free: 7.332 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002232/0.4289, allocations: 1.008 MB / 0.4986 GB, free: 6.316 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001347/0.4302, allocations: 207.7 kB / 0.4988 GB, free: 6.113 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02296/0.4532, allocations: 12.06 MB / 0.5106 GB, free: 9.488 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001014/0.4542, allocations: 1.186 MB / 0.5117 GB, free: 8.266 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008526/0.455, allocations: 172.5 kB / 0.5119 GB, free: 8.094 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008798/0.4559, allocations: 0.5188 MB / 0.5124 GB, free: 7.574 MB / 430.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4559, allocations: 0 / 0.5124 GB, free: 7.574 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3111/0.767, allocations: 31.17 MB / 0.5428 GB, free: 102.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.67/15.44, allocations: 2.688 kB / 0.5428 GB, free: 102.8 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_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-beta_om_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.944748234003782] 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.624028058722615 15.640808446 15.33049292 Calling exit ...