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.001307/0.001307, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001475/0.001475, allocations: 203.5 kB / 23.72 MB, free: 4.391 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.389/1.389, allocations: 230.5 MB / 257.4 MB, free: 7.734 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 67.89 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2324, allocations: 53.41 MB / 431.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01096/0.2434, allocations: 8.209 MB / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004871/0.2483, allocations: 2.407 MB / 441.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007806/0.2491, allocations: 31.88 kB / 441.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008465/0.2499, allocations: 337 kB / 442.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001141/0.251, allocations: 0.5114 MB / 442.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.2522, allocations: 0.6555 MB / 443.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002412/0.2546, allocations: 2.368 MB / 445.7 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001098/0.2557, allocations: 0.6983 MB / 446.4 MB, free: 7.125 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009784/0.2567, allocations: 0.8569 MB / 447.2 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009779/0.2576, allocations: 0.7855 MB / 448 MB, free: 5.477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003197/0.258, allocations: 280 kB / 448.3 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005941/0.2586, allocations: 355.9 kB / 448.6 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004796/0.259, allocations: 0.5181 MB / 449.1 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007864/0.2598, allocations: 0.7938 MB / 449.9 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003246/0.2631, allocations: 3.435 MB / 453.4 MB, free: 96 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.2631, allocations: 3.984 kB / 453.4 MB, free: 92 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2631, allocations: 0 / 453.4 MB, free: 92 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.25e-05/0.2631, allocations: 0 / 453.4 MB, free: 92 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.003741/0.2668, allocations: 1.932 MB / 455.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.2669, allocations: 11.98 kB / 455.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002898/0.2672, allocations: 228 kB / 455.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000379/0.2676, allocations: 191.8 kB / 455.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001395/0.269, allocations: 0.7899 MB / 456.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000426/0.2694, allocations: 454 kB / 457 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000247/0.2696, allocations: 156 kB / 457.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003363/0.273, allocations: 1.883 MB / 459 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.921e-05/0.273, allocations: 7.953 kB / 459 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/0.2732, allocations: 60 kB / 459.1 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.585e-05/0.2732, allocations: 39.98 kB / 459.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003515/0.2767, allocations: 1.531 MB / 460.6 MB, free: 8.594 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009248/0.286, allocations: 5.185 MB / 465.8 MB, free: 3.199 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00225/0.2882, allocations: 0.8996 MB / 466.7 MB, free: 2.277 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001126/0.2894, allocations: 481.1 kB / 467.2 MB, free: 1.805 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.563e-05/0.2894, allocations: 9 kB / 467.2 MB, free: 1.797 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00149/0.2909, allocations: 0.8575 MB / 468 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 2.996e-06/0.2909, allocations: 4 kB / 468.1 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.03484/0.3257, allocations: 8.561 MB / 476.6 MB, free: 8.238 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001913/0.3259, allocations: 303.7 kB / 476.9 MB, free: 7.871 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/0.3272, allocations: 0.8286 MB / 477.7 MB, free: 7.027 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.3273, allocations: 57.69 kB / 477.8 MB, free: 6.965 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006315/0.3279, allocations: 0.6839 MB / 478.5 MB, free: 6.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003949/0.3283, allocations: 432.4 kB / 478.9 MB, free: 5.844 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004953/0.3288, allocations: 247.5 kB / 479.1 MB, free: 5.598 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002365/0.3291, allocations: 406.7 kB / 479.5 MB, free: 5.191 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002045/0.3311, allocations: 0.7965 MB / 480.3 MB, free: 4.395 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002442/0.3336, allocations: 1.319 MB / 481.7 MB, free: 2.914 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003925/0.3375, allocations: 1.615 MB / 483.3 MB, free: 1.207 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.3375, allocations: 4 kB / 483.3 MB, free: 1.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005041/0.3425, allocations: 2.053 MB / 485.3 MB, free: 15.13 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.3425, allocations: 8 kB / 485.3 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.3426, allocations: 8 kB / 485.3 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004765/0.343, allocations: 218.4 kB / 485.6 MB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/0.3448, allocations: 355.5 kB / 485.9 MB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004589/0.3493, allocations: 4.501 MB / 490.4 MB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.3509, allocations: 163.9 kB / 490.6 MB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001273/0.351, allocations: 59.92 kB / 490.6 MB, free: 9.488 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.0007138/0.3517, allocations: 391.4 kB / 491 MB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000213/0.3519, allocations: 111.3 kB / 491.1 MB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002776/0.3522, allocations: 142.1 kB / 491.3 MB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/0.3522, allocations: 12 kB / 491.3 MB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3522, allocations: 0 / 491.3 MB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.829e-06/0.3522, allocations: 3.984 kB / 491.3 MB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008288/0.3605, allocations: 3.999 MB / 495.3 MB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.576e-05/0.3605, allocations: 12 kB / 495.3 MB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.3617, allocations: 268.4 kB / 495.5 MB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005252/0.3622, allocations: 277.5 kB / 495.8 MB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.928e-05/0.3623, allocations: 39.98 kB / 495.9 MB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002006/0.3643, allocations: 2.086 MB / 497.9 MB, free: 1.828 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.065e-05/0.3643, allocations: 11.94 kB / 498 MB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005475/0.3698, allocations: 2.417 MB / 0.4886 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006254/0.3704, allocations: 255.2 kB / 0.4889 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000196/0.3706, allocations: 51.92 kB / 0.4889 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.3717, allocations: 139.9 kB / 0.4891 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003611/0.3721, allocations: 180.1 kB / 0.4892 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.739e-05/0.3722, allocations: 43.98 kB / 0.4893 GB, free: 14.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000824/0.373, allocations: 0.5537 MB / 0.4898 GB, free: 14.04 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.373, allocations: 0 / 0.4898 GB, free: 14.04 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001177/0.3742, allocations: 343.9 kB / 0.4901 GB, free: 13.71 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.006949/0.3811, allocations: 3.297 MB / 0.4934 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004531/0.3856, allocations: 1.902 MB / 0.4952 GB, free: 8.438 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.3856, allocations: 0 / 0.4952 GB, free: 8.438 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002365/0.388, allocations: 1.016 MB / 0.4962 GB, free: 7.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.3892, allocations: 198.1 kB / 0.4964 GB, free: 7.223 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0243/0.4136, allocations: 12.21 MB / 0.5083 GB, free: 10.45 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008115/0.4144, allocations: 0.5942 MB / 0.5089 GB, free: 9.816 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000838/0.4152, allocations: 168.5 kB / 0.5091 GB, free: 9.648 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009216/0.4161, allocations: 0.5188 MB / 0.5096 GB, free: 9.129 MB / 430.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4161, allocations: 0 / 0.5096 GB, free: 9.129 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2431/0.6592, allocations: 31.34 MB / 0.5402 GB, free: 105.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/14.88, allocations: 8.984 kB / 0.5402 GB, free: 105.3 MB / 446.1 MB " [Timeout remaining time 645] (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: 19.62359582213685] 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.065273423679173 15.080502408 14.814386237 Calling exit ...