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.001357/0.001357, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001668/0.001668, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.441/1.441, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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.001857/0.001857, allocations: 55.92 kB / 347.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2789, allocations: 49.17 MB / 396.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.008896/0.2877, allocations: 9.252 MB / 405.6 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005046/0.2928, allocations: 2.325 MB / 407.9 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001678/0.2945, allocations: 38.59 kB / 408 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009017/0.2954, allocations: 321.4 kB / 408.3 MB, free: 400 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001638/0.297, allocations: 0.4957 MB / 408.8 MB, free: 28 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001613/0.2986, allocations: 0.6589 MB / 409.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003789/0.3024, allocations: 2.349 MB / 411.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001344/0.3038, allocations: 0.7336 MB / 412.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00196/0.3057, allocations: 0.8776 MB / 413.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00185/0.3076, allocations: 0.8913 MB / 414.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005206/0.3081, allocations: 274.8 kB / 414.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007602/0.3088, allocations: 328.1 kB / 414.9 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005204/0.3094, allocations: 0.5087 MB / 415.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00105/0.3104, allocations: 0.977 MB / 416.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003686/0.3141, allocations: 3.354 MB / 419.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.3141, allocations: 1.125 kB / 419.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3141, allocations: 0 / 419.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.398e-05/0.3142, allocations: 0 / 419.7 MB, free: 8.938 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.004251/0.3184, allocations: 1.891 MB / 421.6 MB, free: 7.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/0.3185, allocations: 14.73 kB / 421.6 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003093/0.3188, allocations: 222.9 kB / 421.9 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003603/0.3192, allocations: 189.5 kB / 422 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001564/0.3207, allocations: 0.7889 MB / 422.8 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004691/0.3212, allocations: 450.2 kB / 423.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002649/0.3214, allocations: 161.3 kB / 423.4 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003278/0.3247, allocations: 1.68 MB / 425.1 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.633e-05/0.3248, allocations: 6.609 kB / 425.1 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001384/0.3249, allocations: 69.25 kB / 425.2 MB, free: 5.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.191e-05/0.3249, allocations: 36.59 kB / 425.2 MB, free: 5.109 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003303/0.3282, allocations: 1.562 MB / 426.8 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009533/0.3378, allocations: 5.698 MB / 432.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001963/0.3397, allocations: 0.8978 MB / 433.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.3408, allocations: 0.4969 MB / 433.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.2e-05/0.3408, allocations: 12.98 kB / 433.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001257/0.3421, allocations: 0.6567 MB / 434.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.136e-06/0.3421, allocations: 4 kB / 434.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03258/0.3747, allocations: 8.648 MB / 443.2 MB, free: 3.879 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001816/0.3749, allocations: 307.7 kB / 443.5 MB, free: 3.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.3761, allocations: 0.7934 MB / 444.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001237/0.3762, allocations: 53.7 kB / 444.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006538/0.3769, allocations: 0.6761 MB / 445 MB, free: 1.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003969/0.3773, allocations: 428.3 kB / 445.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004773/0.3778, allocations: 251.6 kB / 445.7 MB, free: 1.289 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002316/0.378, allocations: 414.6 kB / 446.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001872/0.3799, allocations: 0.8082 MB / 446.9 MB, free: 68 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002281/0.3821, allocations: 1.134 MB / 448 MB, free: 14.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003513/0.3857, allocations: 1.646 MB / 449.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.3857, allocations: 0 / 449.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004592/0.3902, allocations: 2.069 MB / 451.7 MB, free: 10.99 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3903, allocations: 12.19 kB / 451.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.3903, allocations: 8 kB / 451.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004235/0.3907, allocations: 178.5 kB / 451.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001616/0.3923, allocations: 351.5 kB / 452.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004361/0.3967, allocations: 4.504 MB / 456.8 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/0.3982, allocations: 163.9 kB / 456.9 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.3983, allocations: 55.92 kB / 457 MB, free: 5.383 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: 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.000773/0.3991, allocations: 387.3 kB / 457.4 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001923/0.3993, allocations: 115.2 kB / 457.5 MB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002829/0.3995, allocations: 138 kB / 457.6 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.3995, allocations: 15.98 kB / 457.6 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.3996, allocations: 0 / 457.6 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.3996, allocations: 3.984 kB / 457.6 MB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008078/0.4076, allocations: 4.373 MB / 462 MB, free: 172 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/0.4077, allocations: 8.969 kB / 462 MB, free: 164 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.4088, allocations: 263.6 kB / 462.3 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006172/0.4094, allocations: 373.4 kB / 462.6 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.029e-05/0.4095, allocations: 40 kB / 462.7 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001984/0.4115, allocations: 2.172 MB / 464.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-05/0.4115, allocations: 15.94 kB / 464.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004904/0.4164, allocations: 2.495 MB / 467.4 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000684/0.4171, allocations: 247.2 kB / 467.6 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002005/0.4173, allocations: 47.98 kB / 467.7 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.4183, allocations: 131.9 kB / 467.8 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003666/0.4187, allocations: 180.1 kB / 468 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.532e-05/0.4188, allocations: 48 kB / 468 MB, free: 9.883 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008176/0.4196, allocations: 0.5303 MB / 468.5 MB, free: 9.355 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4196, allocations: 4 kB / 468.5 MB, free: 9.352 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001315/0.4209, allocations: 340 kB / 468.9 MB, free: 9.02 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: 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.005492/0.4264, allocations: 3.124 MB / 472 MB, free: 5.734 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004259/0.4306, allocations: 1.926 MB / 473.9 MB, free: 3.773 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.4306, allocations: 128 / 473.9 MB, free: 3.773 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002268/0.4329, allocations: 1.031 MB / 475 MB, free: 2.727 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/0.4345, allocations: 199.2 kB / 475.1 MB, free: 2.531 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02543/0.4599, allocations: 12.19 MB / 487.3 MB, free: 5.773 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/0.4612, allocations: 1.186 MB / 488.5 MB, free: 4.559 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008912/0.4621, allocations: 176.3 kB / 488.7 MB, free: 4.383 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009344/0.463, allocations: 0.511 MB / 489.2 MB, free: 3.871 MB / 398.1 MB Notification: Performance of SimCode: time 1.533e-06/0.463, allocations: 0 / 489.2 MB, free: 3.871 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0865/0.5495, allocations: 30.7 MB / 0.5077 GB, free: 5.078 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15/15.55, allocations: 19.89 kB / 0.5077 GB, free: 5.059 MB / 430.1 MB " [Timeout remaining time 644] (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.20815384783782] 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.682711977045983 15.69893705 15.38151521 Calling exit ...