Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_0_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_0_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.001481/0.001481, allocations: 51.92 kB / 371.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2283, allocations: 52.19 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01072/0.239, allocations: 9.352 MB / 432.8 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004269/0.2433, allocations: 2.302 MB / 435.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006278/0.2439, allocations: 39.75 kB / 435.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007849/0.2447, allocations: 325 kB / 435.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001086/0.2458, allocations: 0.4958 MB / 435.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001187/0.247, allocations: 0.6555 MB / 436.6 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002719/0.2497, allocations: 2.356 MB / 438.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001124/0.2508, allocations: 0.7409 MB / 439.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001155/0.252, allocations: 0.8802 MB / 440.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.2531, allocations: 0.8949 MB / 441.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003181/0.2534, allocations: 276 kB / 441.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004556/0.2539, allocations: 332 kB / 442.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004525/0.2543, allocations: 0.5064 MB / 442.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008785/0.2552, allocations: 0.9687 MB / 443.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003296/0.2585, allocations: 3.357 MB / 446.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2585, allocations: 0 / 446.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2585, allocations: 0 / 446.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.389e-05/0.2585, allocations: 0 / 446.9 MB, free: 7.008 MB / 350.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.003503/0.262, allocations: 1.893 MB / 448.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2621, allocations: 8.031 kB / 448.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.397e-05/0.2621, allocations: 39.12 kB / 448.8 MB, free: 5.027 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002667/0.2624, allocations: 232 kB / 449.1 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000277/0.2627, allocations: 187.8 kB / 449.2 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.2639, allocations: 0.7769 MB / 450 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003913/0.2643, allocations: 453.9 kB / 450.5 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002231/0.2645, allocations: 163.9 kB / 450.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003041/0.2675, allocations: 1.682 MB / 452.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.006e-05/0.2676, allocations: 4 kB / 452.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000136/0.2677, allocations: 60 kB / 452.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.007e-05/0.2678, allocations: 36 kB / 452.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003335/0.2711, allocations: 1.566 MB / 454 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009081/0.2802, allocations: 5.708 MB / 459.7 MB, free: 9.824 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001981/0.2822, allocations: 0.8852 MB / 460.6 MB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.2832, allocations: 0.4924 MB / 461 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.988e-05/0.2832, allocations: 9 kB / 461.1 MB, free: 8.418 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001263/0.2845, allocations: 0.6567 MB / 461.7 MB, free: 7.723 MB / 366.1 MB Notification: Performance of pre-optimization done (n=90): time 2.214e-06/0.2845, allocations: 3.938 kB / 461.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.0341/0.3186, allocations: 8.657 MB / 470.4 MB, free: 15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001905/0.3188, allocations: 303.7 kB / 470.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001189/0.32, allocations: 0.7973 MB / 471.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001129/0.3201, allocations: 53.7 kB / 471.5 MB, free: 13.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005462/0.3206, allocations: 0.68 MB / 472.2 MB, free: 13.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003889/0.321, allocations: 428.3 kB / 472.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004771/0.3215, allocations: 243.5 kB / 472.9 MB, free: 12.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002186/0.3217, allocations: 406.7 kB / 473.3 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001979/0.3237, allocations: 0.816 MB / 474.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002254/0.326, allocations: 1.122 MB / 475.2 MB, free: 9.957 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003648/0.3296, allocations: 1.65 MB / 476.8 MB, free: 8.215 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/0.3296, allocations: 4 kB / 476.8 MB, free: 8.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004817/0.3344, allocations: 2.077 MB / 478.9 MB, free: 6.117 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.3345, allocations: 8 kB / 478.9 MB, free: 6.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.3345, allocations: 8 kB / 478.9 MB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004122/0.3349, allocations: 178.5 kB / 479.1 MB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001624/0.3365, allocations: 363.4 kB / 479.5 MB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004413/0.3409, allocations: 4.497 MB / 484 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.3425, allocations: 163.9 kB / 484.1 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.3426, allocations: 48 kB / 484.2 MB, free: 0.5117 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 (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.0007595/0.3434, allocations: 395.3 kB / 484.6 MB, free: 116 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001951/0.3436, allocations: 111.3 kB / 484.7 MB, free: 4 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002924/0.3439, allocations: 134 kB / 484.8 MB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.3439, allocations: 12 kB / 484.8 MB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.3439, allocations: 7.938 kB / 484.8 MB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.3439, allocations: 3.984 kB / 484.8 MB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008079/0.352, allocations: 4.382 MB / 489.2 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.352, allocations: 12.06 kB / 489.2 MB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.3531, allocations: 259.6 kB / 489.5 MB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005931/0.3537, allocations: 365.5 kB / 489.8 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.935e-05/0.3538, allocations: 43.97 kB / 489.9 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00197/0.3557, allocations: 2.176 MB / 492 MB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.237e-05/0.3558, allocations: 11.94 kB / 492.1 MB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004971/0.3607, allocations: 2.498 MB / 494.6 MB, free: 5.641 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005286/0.3613, allocations: 251.2 kB / 494.8 MB, free: 5.395 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001804/0.3614, allocations: 43.98 kB / 494.8 MB, free: 5.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.3624, allocations: 135.9 kB / 495 MB, free: 5.219 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003301/0.3628, allocations: 180.2 kB / 495.2 MB, free: 5.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.243e-05/0.3629, allocations: 47.92 kB / 495.2 MB, free: 4.996 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007389/0.3636, allocations: 0.5303 MB / 495.7 MB, free: 4.469 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3636, allocations: 0 / 495.7 MB, free: 4.469 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001113/0.3647, allocations: 355.9 kB / 496.1 MB, free: 4.121 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005365/0.3701, allocations: 3.103 MB / 499.2 MB, free: 0.8594 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004077/0.3742, allocations: 1.922 MB / 0.4894 GB, free: 14.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3742, allocations: 0 / 0.4894 GB, free: 14.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00216/0.3763, allocations: 1.032 MB / 0.4904 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.3774, allocations: 178.9 kB / 0.4905 GB, free: 13.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02222/0.3996, allocations: 12.22 MB / 0.5025 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009225/0.4005, allocations: 1.178 MB / 0.5036 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007432/0.4013, allocations: 168.4 kB / 0.5038 GB, free: 15.51 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008445/0.4021, allocations: 0.5188 MB / 0.5043 GB, free: 14.99 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4021, allocations: 0 / 0.5043 GB, free: 14.99 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07144/0.4736, allocations: 30.72 MB / 0.5343 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/14.7, allocations: 11.86 kB / 0.5343 GB, free: 0.543 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --stepSize=0.000340136 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.615762259985786] 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.063434989016969 15.074012734 14.813304147 Calling exit ...