Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001534/0.001534, allocations: 120 kB / 18.49 MB, free: 4.566 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.001644/0.001644, allocations: 218.3 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 230.5 MB / 254.7 MB, free: 15.2 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001741, allocations: 63.91 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09513/0.09687, allocations: 53.38 MB / 427.1 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01136/0.1082, allocations: 9.44 MB / 436.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004699/0.1129, allocations: 2.446 MB / 439 MB, free: 8.777 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001011/0.1139, allocations: 43.75 kB / 439 MB, free: 8.734 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009317/0.1149, allocations: 340.9 kB / 439.3 MB, free: 8.398 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001453/0.1163, allocations: 0.5075 MB / 439.8 MB, free: 7.887 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.1176, allocations: 0.6515 MB / 440.5 MB, free: 7.234 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002682/0.1203, allocations: 2.368 MB / 442.9 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001271/0.1215, allocations: 0.7484 MB / 443.6 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001272/0.1228, allocations: 0.888 MB / 444.5 MB, free: 3.168 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001121/0.1239, allocations: 0.9027 MB / 445.4 MB, free: 2.262 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003661/0.1243, allocations: 276 kB / 445.7 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004966/0.1248, allocations: 336 kB / 446 MB, free: 1.664 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004617/0.1253, allocations: 0.5065 MB / 446.5 MB, free: 1.156 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009882/0.1262, allocations: 0.9841 MB / 447.5 MB, free: 172 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1912/0.3174, allocations: 3.403 MB / 450.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.3174, allocations: 0 / 450.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3174, allocations: 0 / 450.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.655e-05/0.3175, allocations: 1.156 kB / 450.9 MB, free: 12.26 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.00383/0.3213, allocations: 1.995 MB / 452.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3214, allocations: 10.36 kB / 452.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.195e-05/0.3214, allocations: 40.05 kB / 452.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002729/0.3217, allocations: 230.5 kB / 453.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003326/0.322, allocations: 189.5 kB / 453.3 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.3232, allocations: 0.8551 MB / 454.2 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002525/0.3235, allocations: 232.5 kB / 454.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002649/0.3237, allocations: 163.9 kB / 454.6 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00315/0.3269, allocations: 1.674 MB / 456.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.366e-05/0.327, allocations: 12.44 kB / 456.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001524/0.3271, allocations: 61.62 kB / 456.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.936e-05/0.3271, allocations: 38.03 kB / 456.4 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003283/0.3304, allocations: 1.532 MB / 457.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008991/0.3394, allocations: 5.838 MB / 463.7 MB, free: 7.332 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/0.3413, allocations: 0.8818 MB / 464.6 MB, free: 6.953 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009554/0.3422, allocations: 480.3 kB / 465.1 MB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.085e-05/0.3423, allocations: 10.88 kB / 465.1 MB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001143/0.3434, allocations: 0.6386 MB / 465.7 MB, free: 6.422 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.485e-06/0.3434, allocations: 0 / 465.7 MB, free: 6.422 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03387/0.3773, allocations: 8.83 MB / 474.6 MB, free: 2.102 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.048e-05/0.3774, allocations: 301.3 kB / 474.9 MB, free: 1.754 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.3786, allocations: 0.8057 MB / 475.7 MB, free: 1.277 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002324/0.3788, allocations: 54.61 kB / 475.7 MB, free: 1.227 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004126/0.3792, allocations: 0.6824 MB / 476.4 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003486/0.3796, allocations: 430.3 kB / 476.8 MB, free: 260 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005097/0.3801, allocations: 248.1 kB / 477.1 MB, free: 112 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002411/0.3803, allocations: 409.2 kB / 477.5 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002208/0.3825, allocations: 0.7898 MB / 478.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002549/0.3851, allocations: 1.113 MB / 479.4 MB, free: 14.51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004019/0.3891, allocations: 1.603 MB / 481 MB, free: 13.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.305e-05/0.3891, allocations: 2.438 kB / 481 MB, free: 13.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.0053/0.3944, allocations: 2.032 MB / 483 MB, free: 12.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.3944, allocations: 8.219 kB / 483 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.3944, allocations: 9.031 kB / 483 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004812/0.3949, allocations: 229.4 kB / 483.2 MB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001771/0.3967, allocations: 346.1 kB / 483.6 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004553/0.4013, allocations: 4.835 MB / 488.4 MB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00186/0.4031, allocations: 164 kB / 488.6 MB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001819/0.4033, allocations: 62.23 kB / 488.6 MB, free: 7.406 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 (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.0009471/0.4042, allocations: 393.5 kB / 489 MB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002832/0.4045, allocations: 110.9 kB / 489.1 MB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003322/0.4049, allocations: 136.2 kB / 489.3 MB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.4049, allocations: 12.44 kB / 489.3 MB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.732e-05/0.4049, allocations: 1.125 kB / 489.3 MB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.4049, allocations: 7.984 kB / 489.3 MB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008245/0.4131, allocations: 4.342 MB / 493.6 MB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/0.4132, allocations: 12.38 kB / 493.6 MB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.4143, allocations: 261.6 kB / 493.9 MB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006155/0.4149, allocations: 282.2 kB / 494.2 MB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001351/0.4151, allocations: 39.89 kB / 494.2 MB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002094/0.4172, allocations: 2.2 MB / 496.4 MB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/0.4172, allocations: 15.5 kB / 496.4 MB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005244/0.4224, allocations: 2.394 MB / 498.8 MB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007505/0.4232, allocations: 324.3 kB / 499.1 MB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002291/0.4234, allocations: 55.98 kB / 499.2 MB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/0.4246, allocations: 139.8 kB / 499.3 MB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003639/0.4249, allocations: 172.4 kB / 499.5 MB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.486e-05/0.425, allocations: 43.98 kB / 499.5 MB, free: 14.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008256/0.4258, allocations: 0.5459 MB / 0.4884 GB, free: 13.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4258, allocations: 0 / 0.4884 GB, free: 13.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001469/0.4273, allocations: 339.9 kB / 0.4887 GB, free: 13.6 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006638/0.4339, allocations: 3.251 MB / 0.4919 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004464/0.4384, allocations: 1.876 MB / 0.4937 GB, free: 8.496 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.4384, allocations: 0 / 0.4937 GB, free: 8.496 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00229/0.4407, allocations: 1.013 MB / 0.4947 GB, free: 7.512 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00137/0.4421, allocations: 203 kB / 0.4949 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02531/0.4674, allocations: 12.08 MB / 0.5067 GB, free: 10.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001144/0.4685, allocations: 1.182 MB / 0.5078 GB, free: 9.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009608/0.4695, allocations: 172.4 kB / 0.508 GB, free: 9.398 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009467/0.4704, allocations: 0.5227 MB / 0.5085 GB, free: 8.875 MB / 414.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4704, allocations: 0 / 0.5085 GB, free: 8.875 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7384/1.209, allocations: 30.09 MB / 0.5379 GB, free: 11.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.52/15.73, allocations: 4.062 kB / 0.5379 GB, free: 11.04 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --stepSize=0.000340136 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.42312980798306] 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.947495427972171 15.960703503 15.640454253 Calling exit ...