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.001411/0.001411, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001589/0.001589, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.376/1.376, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.001454/0.001454, allocations: 43.94 kB / 378.5 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2396, allocations: 53.36 MB / 431.9 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01083/0.2504, allocations: 8.194 MB / 440.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004663/0.2551, allocations: 2.391 MB / 442.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001257/0.2563, allocations: 31.81 kB / 442.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.2575, allocations: 348.9 kB / 442.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001664/0.2591, allocations: 0.5114 MB / 443.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001271/0.2604, allocations: 0.6671 MB / 444 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002726/0.2631, allocations: 2.364 MB / 446.4 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001141/0.2643, allocations: 0.7413 MB / 447.1 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009665/0.2652, allocations: 0.8569 MB / 448 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00105/0.2663, allocations: 0.9066 MB / 448.9 MB, free: 5.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003269/0.2666, allocations: 280 kB / 449.1 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006253/0.2672, allocations: 355.9 kB / 449.5 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004809/0.2677, allocations: 0.5142 MB / 450 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008301/0.2685, allocations: 0.7976 MB / 450.8 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003235/0.2718, allocations: 3.436 MB / 454.2 MB, free: 172 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2718, allocations: 4 kB / 454.2 MB, free: 168 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2718, allocations: 0 / 454.2 MB, free: 168 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.66e-05/0.2718, allocations: 3.938 kB / 454.2 MB, free: 164 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.003589/0.2754, allocations: 1.92 MB / 456.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.2754, allocations: 20.02 kB / 456.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.662e-05/0.2755, allocations: 39.14 kB / 456.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002754/0.2758, allocations: 228 kB / 456.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003728/0.2761, allocations: 191.8 kB / 456.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001266/0.2774, allocations: 0.7821 MB / 457.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003903/0.2778, allocations: 449.9 kB / 457.9 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002424/0.278, allocations: 159.9 kB / 458 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003256/0.2813, allocations: 1.879 MB / 459.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.424e-05/0.2813, allocations: 7.953 kB / 459.9 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/0.2815, allocations: 67.94 kB / 460 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.974e-05/0.2815, allocations: 36 kB / 460 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003251/0.2848, allocations: 1.546 MB / 461.6 MB, free: 8.629 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008765/0.2935, allocations: 5.189 MB / 466.7 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002029/0.2956, allocations: 0.8989 MB / 467.6 MB, free: 2.305 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.2966, allocations: 485.8 kB / 468.1 MB, free: 1.828 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-05/0.2966, allocations: 13 kB / 468.1 MB, free: 1.816 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001388/0.298, allocations: 0.8575 MB / 469 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 2.565e-06/0.298, allocations: 0 / 469 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.03315/0.3312, allocations: 8.554 MB / 477.5 MB, free: 8.266 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001693/0.3313, allocations: 303.7 kB / 477.8 MB, free: 7.898 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.3325, allocations: 0.817 MB / 478.7 MB, free: 7.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001458/0.3327, allocations: 53.7 kB / 478.7 MB, free: 7.008 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005802/0.3333, allocations: 0.6723 MB / 479.4 MB, free: 6.324 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004152/0.3337, allocations: 440.3 kB / 479.8 MB, free: 5.891 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005099/0.3342, allocations: 255.5 kB / 480.1 MB, free: 5.637 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002224/0.3344, allocations: 406.7 kB / 480.5 MB, free: 5.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001915/0.3363, allocations: 0.8003 MB / 481.3 MB, free: 4.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002315/0.3386, allocations: 1.323 MB / 482.6 MB, free: 2.945 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003537/0.3422, allocations: 1.615 MB / 484.2 MB, free: 1.234 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.81e-06/0.3422, allocations: 0 / 484.2 MB, free: 1.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004553/0.3467, allocations: 2.049 MB / 486.2 MB, free: 15.17 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.3468, allocations: 8 kB / 486.2 MB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.3468, allocations: 8 kB / 486.3 MB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000454/0.3472, allocations: 210.4 kB / 486.5 MB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001587/0.3488, allocations: 363.4 kB / 486.8 MB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004197/0.353, allocations: 4.493 MB / 491.3 MB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.3544, allocations: 164 kB / 491.5 MB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.3546, allocations: 55.98 kB / 491.5 MB, free: 9.535 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.0006991/0.3553, allocations: 399.4 kB / 491.9 MB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002049/0.3555, allocations: 111.3 kB / 492 MB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002613/0.3557, allocations: 138.1 kB / 492.2 MB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.3557, allocations: 12 kB / 492.2 MB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.3557, allocations: 0 / 492.2 MB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.3558, allocations: 3.984 kB / 492.2 MB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007522/0.3633, allocations: 3.996 MB / 496.2 MB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.447e-05/0.3633, allocations: 16.02 kB / 496.2 MB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.3644, allocations: 263.6 kB / 496.4 MB, free: 4.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005151/0.3649, allocations: 281.5 kB / 496.7 MB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.091e-05/0.365, allocations: 35.98 kB / 496.8 MB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001801/0.3668, allocations: 2.086 MB / 498.8 MB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.245e-05/0.3668, allocations: 15.94 kB / 498.9 MB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004743/0.3716, allocations: 2.417 MB / 0.4895 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005713/0.3721, allocations: 263.1 kB / 0.4898 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001853/0.3723, allocations: 44 kB / 0.4898 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.3734, allocations: 151.7 kB / 0.49 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003388/0.3737, allocations: 176.2 kB / 0.4901 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.712e-05/0.3738, allocations: 47.98 kB / 0.4902 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007718/0.3746, allocations: 0.5576 MB / 0.4907 GB, free: 14.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3746, allocations: 0 / 0.4907 GB, free: 14.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001146/0.3757, allocations: 340 kB / 0.491 GB, free: 13.74 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.006337/0.3821, allocations: 3.291 MB / 0.4943 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004167/0.3862, allocations: 1.902 MB / 0.4961 GB, free: 8.508 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.3862, allocations: 0 / 0.4961 GB, free: 8.508 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002203/0.3884, allocations: 1.016 MB / 0.4971 GB, free: 7.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.3897, allocations: 200.8 kB / 0.4973 GB, free: 7.285 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02214/0.4118, allocations: 12.21 MB / 0.5092 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007316/0.4125, allocations: 0.5982 MB / 0.5098 GB, free: 9.879 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008191/0.4134, allocations: 176.4 kB / 0.51 GB, free: 9.703 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008646/0.4142, allocations: 0.5149 MB / 0.5105 GB, free: 9.188 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4142, allocations: 0 / 0.5105 GB, free: 9.188 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2489/0.6631, allocations: 31.4 MB / 0.5411 GB, free: 105.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.5/15.17, allocations: 7.391 kB / 0.5411 GB, free: 105.5 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.95327849406749] 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.406781629077159 15.415772397 15.14193926 Calling exit ...