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.0008862/0.0008862, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008804/0.0008804, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8792/0.8792, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 1.553e-06/1.553e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.881e-05/2.036e-05, allocations: 2.281 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007143/0.007163, allocations: 8.229 MB / 332.8 MB, free: 7.602 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003144/0.01031, allocations: 2.399 MB / 335.2 MB, free: 5.195 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005019/0.01081, allocations: 31.88 kB / 335.2 MB, free: 5.164 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000592/0.0114, allocations: 336.9 kB / 335.5 MB, free: 4.832 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007647/0.01217, allocations: 0.5383 MB / 336.1 MB, free: 4.289 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006742/0.01284, allocations: 0.6661 MB / 336.7 MB, free: 3.625 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001376/0.01422, allocations: 2.437 MB / 339.2 MB, free: 1.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007355/0.01495, allocations: 0.6944 MB / 339.9 MB, free: 448 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001177/0.01613, allocations: 1.314 MB / 341.2 MB, free: 15.12 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005185/0.01665, allocations: 0.6778 MB / 341.8 MB, free: 14.44 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001833/0.01683, allocations: 280 kB / 342.1 MB, free: 14.17 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003639/0.01719, allocations: 355.9 kB / 342.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002797/0.01747, allocations: 0.5219 MB / 343 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003979/0.01787, allocations: 0.69 MB / 343.7 MB, free: 12.61 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001983/0.01986, allocations: 3.537 MB / 347.2 MB, free: 9.059 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.01986, allocations: 4 kB / 347.2 MB, free: 9.055 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.021e-06/0.01986, allocations: 0 / 347.2 MB, free: 9.055 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.231e-05/0.01988, allocations: 0 / 347.2 MB, free: 9.055 MB / 314.7 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.002404/0.02229, allocations: 1.917 MB / 349.1 MB, free: 7.098 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.02232, allocations: 11.98 kB / 349.1 MB, free: 7.086 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001928/0.02252, allocations: 228 kB / 349.4 MB, free: 6.852 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000253/0.02277, allocations: 191.8 kB / 349.6 MB, free: 6.664 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009026/0.02367, allocations: 0.7853 MB / 350.3 MB, free: 5.852 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002833/0.02396, allocations: 446.3 kB / 350.8 MB, free: 5.348 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001603/0.02412, allocations: 160.3 kB / 350.9 MB, free: 5.191 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001945/0.02606, allocations: 1.883 MB / 352.8 MB, free: 3.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.701e-05/0.0261, allocations: 7.953 kB / 352.8 MB, free: 3.223 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.863e-05/0.0262, allocations: 64 kB / 352.9 MB, free: 3.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.23e-05/0.02622, allocations: 36 kB / 352.9 MB, free: 3.125 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002288/0.02851, allocations: 1.534 MB / 354.5 MB, free: 1.586 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005399/0.0339, allocations: 5.193 MB / 359.6 MB, free: 12.18 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.03515, allocations: 0.8875 MB / 360.5 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006003/0.03575, allocations: 0.4891 MB / 361 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.311e-05/0.03579, allocations: 9 kB / 361 MB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001097/0.03689, allocations: 0.8575 MB / 361.9 MB, free: 9.812 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 2.295e-06/0.03689, allocations: 0 / 361.9 MB, free: 9.812 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01733/0.05421, allocations: 8.558 MB / 370.5 MB, free: 1.207 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.05432, allocations: 299.7 kB / 370.7 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007507/0.05507, allocations: 0.8325 MB / 371.6 MB, free: 0 / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.049e-05/0.05515, allocations: 53.7 kB / 371.6 MB, free: 15.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003516/0.0555, allocations: 0.6839 MB / 372.3 MB, free: 15.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002157/0.05571, allocations: 428.4 kB / 372.7 MB, free: 14.82 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002946/0.05601, allocations: 247.5 kB / 373 MB, free: 14.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.05614, allocations: 406.7 kB / 373.4 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.05722, allocations: 0.7965 MB / 374.2 MB, free: 13.37 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001541/0.05876, allocations: 1.319 MB / 375.5 MB, free: 11.89 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001991/0.06075, allocations: 1.619 MB / 377.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.06075, allocations: 0 / 377.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002572/0.06332, allocations: 2.045 MB / 379.1 MB, free: 8.121 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.06334, allocations: 8 kB / 379.2 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.06335, allocations: 4.125 kB / 379.2 MB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002896/0.06364, allocations: 230.4 kB / 379.4 MB, free: 7.875 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008015/0.06444, allocations: 347.5 kB / 379.7 MB, free: 7.535 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002618/0.06706, allocations: 4.501 MB / 384.2 MB, free: 2.695 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000666/0.06773, allocations: 167.8 kB / 384.4 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.031e-05/0.0678, allocations: 51.98 kB / 384.4 MB, free: 2.48 MB / 346.7 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.0004594/0.06826, allocations: 395.4 kB / 384.8 MB, free: 2.082 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.06837, allocations: 111.3 kB / 384.9 MB, free: 1.973 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/0.06849, allocations: 134.1 kB / 385.1 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.0685, allocations: 12 kB / 385.1 MB, free: 1.828 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.06851, allocations: 8 kB / 385.1 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.06851, allocations: 3.984 kB / 385.1 MB, free: 1.816 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004891/0.0734, allocations: 4 MB / 389.1 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.07341, allocations: 8 kB / 389.1 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000557/0.07397, allocations: 264 kB / 389.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002935/0.07426, allocations: 277.5 kB / 389.6 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.466e-05/0.07431, allocations: 35.98 kB / 389.7 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/0.07533, allocations: 2.09 MB / 391.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/0.07533, allocations: 15.94 kB / 391.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002796/0.07813, allocations: 2.394 MB / 394.2 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003403/0.07847, allocations: 255.2 kB / 394.4 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.682e-05/0.07857, allocations: 48 kB / 394.5 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005247/0.07909, allocations: 147.8 kB / 394.6 MB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002266/0.07932, allocations: 180.1 kB / 394.8 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-05/0.07937, allocations: 47.98 kB / 394.8 MB, free: 7.598 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004738/0.07984, allocations: 0.5537 MB / 395.4 MB, free: 7.043 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.07984, allocations: 0 / 395.4 MB, free: 7.043 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007567/0.0806, allocations: 339.9 kB / 395.7 MB, free: 6.711 MB / 362.7 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.003934/0.08453, allocations: 3.27 MB / 399 MB, free: 3.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002395/0.08693, allocations: 1.897 MB / 400.9 MB, free: 1.477 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.08693, allocations: 5.812 kB / 400.9 MB, free: 1.473 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001297/0.08823, allocations: 1.016 MB / 401.9 MB, free: 456 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007066/0.08893, allocations: 206 kB / 402.1 MB, free: 252 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01444/0.1034, allocations: 12.08 MB / 414.2 MB, free: 3.602 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004443/0.1038, allocations: 0.5981 MB / 414.8 MB, free: 2.969 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004604/0.1043, allocations: 172.4 kB / 414.9 MB, free: 2.797 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005672/0.1048, allocations: 0.5199 MB / 415.5 MB, free: 2.277 MB / 378.7 MB Notification: Performance of SimCode: time 8.42e-07/0.1048, allocations: 0 / 415.5 MB, free: 2.277 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04354/0.1484, allocations: 31.45 MB / 446.9 MB, free: 2.973 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.659/8.807, allocations: 11.44 kB / 446.9 MB, free: 2.965 MB / 410.7 MB " [Timeout remaining time 651] (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: 10.875396383926272] 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'] 8.933058719150722 9.09332285 9.072122504 Calling exit ...