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.001243/0.001243, allocations: 116.9 kB / 18.49 MB, free: 4.559 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.001349/0.001349, allocations: 217.4 kB / 21.46 MB, free: 1.605 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.43/1.43, allocations: 230.6 MB / 254.8 MB, free: 15.08 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 47.92 kB / 373.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09582/0.09726, allocations: 53.33 MB / 427 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.1822/0.2795, allocations: 9.43 MB / 436.5 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004416/0.2839, allocations: 2.441 MB / 438.9 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001248/0.2851, allocations: 39.31 kB / 438.9 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008441/0.286, allocations: 345.1 kB / 439.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001282/0.2873, allocations: 0.4989 MB / 439.8 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.2885, allocations: 0.662 MB / 440.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002343/0.2909, allocations: 2.365 MB / 442.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001036/0.2919, allocations: 0.7522 MB / 443.6 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001068/0.293, allocations: 0.8886 MB / 444.4 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000982/0.294, allocations: 0.8954 MB / 445.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004253/0.2944, allocations: 277.5 kB / 445.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005394/0.2949, allocations: 332.4 kB / 445.9 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000361/0.2953, allocations: 0.5122 MB / 446.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007072/0.296, allocations: 0.9822 MB / 447.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003523/0.2995, allocations: 3.418 MB / 450.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2995, allocations: 1.188 kB / 450.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2995, allocations: 0 / 450.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.546e-05/0.2996, allocations: 0 / 450.8 MB, free: 15.45 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.004068/0.3037, allocations: 1.991 MB / 452.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.3037, allocations: 9.875 kB / 452.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.451e-05/0.3037, allocations: 39.27 kB / 452.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002781/0.304, allocations: 229.8 kB / 453.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003331/0.3044, allocations: 189.5 kB / 453.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.3057, allocations: 0.8595 MB / 454.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002934/0.306, allocations: 238.1 kB / 454.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002421/0.3063, allocations: 163.2 kB / 454.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003131/0.3094, allocations: 1.664 MB / 456.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.818e-05/0.3094, allocations: 6.703 kB / 456.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001502/0.3096, allocations: 68.05 kB / 456.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.703e-05/0.3096, allocations: 37.12 kB / 456.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003247/0.3129, allocations: 1.529 MB / 457.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009419/0.3223, allocations: 5.854 MB / 463.7 MB, free: 6.668 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002007/0.3243, allocations: 0.8716 MB / 464.6 MB, free: 6.195 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001067/0.3254, allocations: 481.4 kB / 465 MB, free: 5.945 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.592e-05/0.3254, allocations: 13.47 kB / 465.1 MB, free: 5.941 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001271/0.3267, allocations: 0.6412 MB / 465.7 MB, free: 5.488 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.595e-06/0.3267, allocations: 0 / 465.7 MB, free: 5.488 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03433/0.361, allocations: 8.834 MB / 474.5 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002456/0.3613, allocations: 297.1 kB / 474.8 MB, free: 368 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001266/0.3626, allocations: 0.8075 MB / 475.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001417/0.3627, allocations: 53.7 kB / 475.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006151/0.3633, allocations: 0.6799 MB / 476.4 MB, free: 15.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004156/0.3637, allocations: 428.4 kB / 476.8 MB, free: 14.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005069/0.3642, allocations: 247.5 kB / 477 MB, free: 14.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002357/0.3645, allocations: 406.7 kB / 477.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002002/0.3665, allocations: 0.7926 MB / 478.2 MB, free: 13.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002272/0.3687, allocations: 1.115 MB / 479.3 MB, free: 11.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003766/0.3725, allocations: 1.599 MB / 480.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.3725, allocations: 4 kB / 480.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00491/0.3774, allocations: 2.034 MB / 483 MB, free: 8.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.3774, allocations: 8 kB / 483 MB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/0.3775, allocations: 8 kB / 483 MB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004934/0.378, allocations: 218.2 kB / 483.2 MB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001685/0.3796, allocations: 355.4 kB / 483.5 MB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00457/0.3842, allocations: 4.84 MB / 488.4 MB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/0.3859, allocations: 171.8 kB / 488.5 MB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001314/0.3861, allocations: 51.94 kB / 488.6 MB, free: 2.121 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.0007929/0.3869, allocations: 386.6 kB / 489 MB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002468/0.3871, allocations: 115.3 kB / 489.1 MB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000312/0.3874, allocations: 138.1 kB / 489.2 MB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.3874, allocations: 16 kB / 489.2 MB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/0.3875, allocations: 0 / 489.2 MB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.3875, allocations: 12.78 kB / 489.3 MB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008395/0.3959, allocations: 4.334 MB / 493.6 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.625e-05/0.3959, allocations: 12 kB / 493.6 MB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001193/0.3971, allocations: 260 kB / 493.9 MB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005506/0.3976, allocations: 281.5 kB / 494.1 MB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.841e-05/0.3977, allocations: 39.98 kB / 494.2 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002012/0.3997, allocations: 2.197 MB / 496.4 MB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.248e-05/0.3997, allocations: 15.94 kB / 496.4 MB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005091/0.4048, allocations: 2.393 MB / 498.8 MB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007008/0.4055, allocations: 336.3 kB / 499.1 MB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002172/0.4058, allocations: 47.94 kB / 499.1 MB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.4069, allocations: 139.8 kB / 499.3 MB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003825/0.4073, allocations: 168.2 kB / 499.4 MB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.527e-05/0.4073, allocations: 40 kB / 499.5 MB, free: 6.688 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008603/0.4082, allocations: 0.5536 MB / 0.4883 GB, free: 6.137 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4082, allocations: 0 / 0.4883 GB, free: 6.137 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001421/0.4096, allocations: 343.9 kB / 0.4886 GB, free: 5.801 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.006647/0.4163, allocations: 3.249 MB / 0.4918 GB, free: 2.535 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004427/0.4207, allocations: 1.879 MB / 0.4937 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/0.4207, allocations: 4 kB / 0.4937 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002325/0.423, allocations: 1.005 MB / 0.4946 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001453/0.4245, allocations: 208.5 kB / 0.4948 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02273/0.4472, allocations: 12.07 MB / 0.5066 GB, free: 2.766 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000913/0.4481, allocations: 1.179 MB / 0.5078 GB, free: 1.555 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008028/0.4489, allocations: 172.4 kB / 0.5079 GB, free: 1.383 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008692/0.4498, allocations: 0.5149 MB / 0.5084 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4498, allocations: 3.938 kB / 0.5084 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06928/0.5191, allocations: 30.1 MB / 0.5378 GB, free: 3.043 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.73/14.25, allocations: 7.797 kB / 0.5378 GB, free: 3.035 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.942675702041015] 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'] 14.469464819005225 14.487921572 14.1854785 Calling exit ...