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.00139/0.00139, 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.001527/0.001527, allocations: 207.2 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.424/1.424, allocations: 230.5 MB / 257.4 MB, free: 7.742 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.002941/0.002941, allocations: 59.91 kB / 377.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2759, allocations: 53.41 MB / 431.2 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01145/0.2874, allocations: 8.202 MB / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00566/0.2931, allocations: 2.399 MB / 441.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.2946, allocations: 31.88 kB / 441.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001189/0.2958, allocations: 344.9 kB / 442.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002029/0.2978, allocations: 0.5152 MB / 442.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001533/0.2994, allocations: 0.6516 MB / 443.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003419/0.3028, allocations: 2.368 MB / 445.7 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001419/0.3042, allocations: 0.6906 MB / 446.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001468/0.3057, allocations: 0.8647 MB / 447.2 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001513/0.3072, allocations: 0.7893 MB / 448 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004307/0.3076, allocations: 280 kB / 448.3 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008642/0.3085, allocations: 344 kB / 448.6 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005609/0.309, allocations: 0.5181 MB / 449.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001026/0.3101, allocations: 0.8016 MB / 449.9 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004172/0.3142, allocations: 3.439 MB / 453.4 MB, free: 88 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3143, allocations: 0 / 453.4 MB, free: 88 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3143, allocations: 0 / 453.4 MB, free: 88 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.998e-05/0.3143, allocations: 0 / 453.4 MB, free: 88 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.00467/0.319, allocations: 1.928 MB / 455.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.319, allocations: 11.98 kB / 455.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003075/0.3193, allocations: 228 kB / 455.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004738/0.3198, allocations: 199.8 kB / 455.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001617/0.3214, allocations: 0.7821 MB / 456.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004443/0.3219, allocations: 446.1 kB / 456.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000273/0.3222, allocations: 163.9 kB / 457.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003711/0.3259, allocations: 1.879 MB / 459 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.353e-05/0.3259, allocations: 7.953 kB / 459 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001595/0.3261, allocations: 64 kB / 459.1 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.649e-05/0.3261, allocations: 40 kB / 459.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003706/0.3298, allocations: 1.527 MB / 460.6 MB, free: 8.602 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01092/0.3407, allocations: 5.197 MB / 465.8 MB, free: 3.191 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002238/0.343, allocations: 0.8957 MB / 466.7 MB, free: 2.273 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.344, allocations: 481.1 kB / 467.2 MB, free: 1.801 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.345e-05/0.3441, allocations: 13 kB / 467.2 MB, free: 1.789 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001505/0.3456, allocations: 0.8575 MB / 468.1 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 3.126e-06/0.3456, allocations: 4 kB / 468.1 MB, free: 0.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.03447/0.3801, allocations: 8.569 MB / 476.6 MB, free: 8.227 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001891/0.3803, allocations: 295.7 kB / 476.9 MB, free: 7.867 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001257/0.3815, allocations: 0.8363 MB / 477.8 MB, free: 7.016 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001451/0.3817, allocations: 57.7 kB / 477.8 MB, free: 6.953 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006471/0.3823, allocations: 0.68 MB / 478.5 MB, free: 6.262 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004355/0.3828, allocations: 432.3 kB / 478.9 MB, free: 5.836 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004884/0.3832, allocations: 247.5 kB / 479.2 MB, free: 5.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002369/0.3835, allocations: 410.7 kB / 479.6 MB, free: 5.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002026/0.3855, allocations: 0.8004 MB / 480.4 MB, free: 4.379 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002473/0.388, allocations: 1.315 MB / 481.7 MB, free: 2.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003893/0.3919, allocations: 1.611 MB / 483.3 MB, free: 1.199 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.3919, allocations: 4 kB / 483.3 MB, free: 1.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005149/0.397, allocations: 2.049 MB / 485.3 MB, free: 15.13 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.3971, allocations: 8 kB / 485.3 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.3971, allocations: 8 kB / 485.3 MB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004941/0.3976, allocations: 218.4 kB / 485.6 MB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/0.3992, allocations: 363.4 kB / 485.9 MB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004568/0.4038, allocations: 4.485 MB / 490.4 MB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001714/0.4055, allocations: 167.9 kB / 490.6 MB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001435/0.4057, allocations: 51.92 kB / 490.6 MB, free: 9.496 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.0009146/0.4066, allocations: 399.4 kB / 491 MB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002714/0.4068, allocations: 115.4 kB / 491.1 MB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003161/0.4072, allocations: 138.1 kB / 491.3 MB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.4072, allocations: 12 kB / 491.3 MB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.4072, allocations: 3.938 kB / 491.3 MB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.4072, allocations: 7.984 kB / 491.3 MB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008543/0.4157, allocations: 3.995 MB / 495.3 MB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.795e-05/0.4158, allocations: 15.98 kB / 495.3 MB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.4169, allocations: 264.5 kB / 495.5 MB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005397/0.4175, allocations: 273.5 kB / 495.8 MB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.205e-05/0.4176, allocations: 39.98 kB / 495.9 MB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001871/0.4194, allocations: 2.09 MB / 497.9 MB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.337e-05/0.4194, allocations: 15.94 kB / 498 MB, free: 1.809 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005004/0.4244, allocations: 2.417 MB / 0.4886 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007202/0.4252, allocations: 247.2 kB / 0.4889 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001938/0.4254, allocations: 51.94 kB / 0.4889 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.4264, allocations: 143.8 kB / 0.4891 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003614/0.4268, allocations: 176.2 kB / 0.4892 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.312e-05/0.4269, allocations: 51.98 kB / 0.4893 GB, free: 14.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008938/0.4278, allocations: 0.5459 MB / 0.4898 GB, free: 14.04 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4278, allocations: 0 / 0.4898 GB, free: 14.04 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001264/0.429, 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.006824/0.4359, allocations: 3.295 MB / 0.4934 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004558/0.4404, allocations: 1.898 MB / 0.4952 GB, free: 8.441 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/0.4404, allocations: 4.562 kB / 0.4952 GB, free: 8.438 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002427/0.4429, 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.001631/0.4445, allocations: 205.5 kB / 0.4964 GB, free: 7.215 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02479/0.4693, 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.0007867/0.4701, allocations: 0.5943 MB / 0.5089 GB, free: 9.816 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008938/0.471, allocations: 176.4 kB / 0.5091 GB, free: 9.641 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009201/0.4719, allocations: 0.5188 MB / 0.5096 GB, free: 9.121 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4719, allocations: 0 / 0.5096 GB, free: 9.121 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2627/0.7346, allocations: 31.34 MB / 0.5402 GB, free: 105.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/14.71, allocations: 13.98 kB / 0.5402 GB, free: 105.2 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.csv --start-time 0 --stop-time 1.6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000340136 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: 17.423846849706024] 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.908989815972745 14.919943342 14.602928182 Calling exit ...